R/run_Fisher_tests.R
encodePhenotype.Rd
encodePhenotype
encodePhenotype( df, susceptible_label = "Susceptible", resistant_label = "Resistant" )
A tibble with AMR column genome_drug.resistant_phenotype
genome_drug.resistant_phenotype
Label for "Susceptible" phenotype
Label for "Resistant" phenotype
A list with:
df: the input data with AMR phenotype now encoded as integer
df
target: a binarized vector of the encoded AMR phenotypes
target