classifyAllMDR: Classify the multi-drug resistance for multiple samples

Description Usage Arguments Value Examples

View source: R/classifyMDR.R

Description

A function that classify the multi-drug resistances of all samples in the csv file given the all drug resistances information from RGI prediction.

Usage

1
classifyAllMDR(drug_resistance, antimicrobial_agents)

Arguments

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.

Value

Returns a dataframe with each row name representing the sample ID and its column representing the MDR category.

Examples

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

ClorisZhou2000/MDRClassifier documentation built on Dec. 17, 2021, 2:06 p.m.