colour_point_amr_data.Rd
Takes a dataframe with point AMR prediction data and converts it into columms for microreact colouring
colour_point_amr_data( point_amr_data, present_colour = "#ff6b6b", absent_colour = "#efefef" )
point_amr_data | A dataframe of point AMR data where there is a assembled column for each gene and then 0 or more mutations for each assembled gene - for each sample the latter will have a value of 'yes' or 'no' |
---|---|
absent_color | the html colour to use when a gene is absent |
absence_characters | the character to use when a gene is absent |
A dataframe where for each mutation there will be 2 columns. One with the mutation name and a value of 'yes' or 'no' Another with the mutation name and the suffix '__colour'. This will be 'red' or 'lime' for 'yes' and 'no' respectively