Description Usage Arguments Value Examples
A function that predict multi-drug resistance by principle component analysis (PCA) to show the new sample's in the original cluster.
1 | predictAMR(dataframe, new_data)
|
dataframe |
A dataframe with rownames representing the sample ID and each column is one of sample's antimicrobial features. If the value equals to 1, the sample has this antimicrobial feature. If the value equals to 0, the sample does not have this antimicrobial feature. |
new_data |
The new data of dataframe must contain columns (variables) with the same names and in the same order as the data used to compute PCA. |
Returns the PCA result of the new sample.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.