Description Usage Arguments Value Examples
looPA is a permutation based method, which can account for phylogenetic relatedness between taxonomic features and identify important features for further investigation.
1 2 |
otutable |
OTU table. Rows correspond to OTUs while columns correspond to samples. Row names (OTU names) and column names(sample names) must be provided. |
taxonomy |
Taxonomy table. Rows correspond to OTUs while columns correspond to the taxonomic levels. Row names (OTU names) must match the row names of the OTU table. |
sampleInfo |
Patient information. Rows correspond to samples while columns correspond to covariates. Row names (sample names) must match the column names of the OTU table. |
outcomeVar |
The outcome of interest. For now we only accept single covariate. |
numRep |
Number of repeated PERMANOVA test for each feature. Default is 200. |
useMoreCores |
Shall we use more cores of the computer for this job? If you select TRUE (recommended), the number of cores used will be the number of cores of the computer -1. If you give an integer value, looPA will use it as the number of cores you want to use. |
tree |
The phylogenetic information correspond to OTU table. |
distanceMetric |
The distance metric used in PERMANOVA test. We offer three choices, "Bray Curtis" (the default), "Unweighted UniFrac"(requires tree information), and "Weighted UniFrac"(requires tree information). |
looPAresult |
A dataframe with the names of the selected taxa and their medians and confidence intervals over repeated PERMANOVA tests. |
looPAplot |
A plot showing the selected features. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(vegan)
library(GUniFrac)
library(ape)
library(ggplot2)
library(foreach)
library(parallel)
library(iterators)
library(doParallel)
library(looPA)
options(stringsAsFactors = FALSE)
outcomeVar<-"Response"
looPAResult<-looPA(otutable,taxonomy, sampleInfo, outcomeVar,
tree=tree,distanceMetric="Weighted UniFrac")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.