Description Usage Arguments Value Examples
A function that classify the multi-drug resistances of all samples in the csv file given the all drug resistances information from RGI prediction.
1 | classifyAllMDR(drug_resistance, antimicrobial_agents)
|
drug_resistance |
A list with each row representing each sample IDs and one of the columns is the string of drugs that the sample resistant. |
antimicrobial_agents |
The string of the column name specifying sample's antimicrobial agents. |
Returns a dataframe with each row name representing the sample ID and its column representing the MDR category.
1 2 3 4 5 6 7 8 9 | # Example 2
# Using DrugResistance dataset available with package
dim(DrugResistance)
#classify the category of all samples' multi-drug resistance
resultsExample2 <- classifyAllMDR(drug_resistance = DrugResistance,
antimicrobial_agents = 'Antimicrobial.Agent')
# To obtain value from results
resultsExample2
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.