Description Usage Arguments Value Examples
A function that classify the multi-drug resistance given the sample ID and drug resistance information from RGI prediction.
1 | classifyMDR(drug_resistance, sample_ID, antimicrobial_agents)
|
drug_resistance |
A list with each key representing the sample ID and its value is the string of the drugs that the sample resistant. |
sample_ID |
The string of sample ID that used for classifying multi-drug resistance. |
antimicrobial_agents |
The string of the column name specifying sample's antimicrobial agents. |
Returns the category of the given sample's multi-drug resistance.
1 2 3 4 5 6 7 8 9 | # Example 1
# Using DrugResistance dataset available with package
dim(DrugResistance)
colnames(DrugResistance)
resultsExample1 <- classifyMDR(drug_resistance = DrugResistance,
sample_ID = "GFBCEDDN_00939",
antimicrobial_agents = "Antimicrobial.Agent")
# To obtain value from results
resultsExample1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.