classifyMDR: Classify the multi-drug resistance

Description Usage Arguments Value Examples

View source: R/classifyMDR.R

Description

A function that classify the multi-drug resistance given the sample ID and drug resistance information from RGI prediction.

Usage

1
classifyMDR(drug_resistance, sample_ID, antimicrobial_agents)

Arguments

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.

Value

Returns the category of the given sample's multi-drug resistance.

Examples

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

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