Description Usage Arguments Value Examples
This function creates a new dataset from an existing one by ordering taxa in order of decreasing abundance, collapsing less-abundant taxa into one category as specified by the user and excluding samples with a total number of reads fewer than the user-specified value.
1 2 | Data.filter(data, order.type = "data", minReads = 0, numTaxa = NULL,
perTaxa = NULL)
|
data |
A matrix of taxonomic counts(columns) for each sample(rows). |
order.type |
If |
minReads |
Samples with a total number of reads less than read.crit value will be deleted. |
numTaxa |
The number of taxa to keep, while collapsing the other (less abundant) taxa. Only one argument, numTaxa or perTaxa should be specified. |
perTaxa |
The combined percentage of data to keep, while collapsing the remaining taxa. Only one argument, numTaxa or perTaxa should be specified. |
A data frame of taxa and samples with a total number of reads greater than the minimum value. The last taxon labeled 'Other' contains the sum of the least abundant taxa collapsed by setting 'numTaxa' or 'perTaxa'.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(saliva)
### Excludes all samples with fewer than 1000 reads and collapses
### taxa with 11th or smaller abundance into one category
filterDataNum <- Data.filter(saliva, "data", 1000, numTaxa=10)
### Excludes all samples with fewer than 1000 reads and collapses
### the least abundant taxa to keep as close to 95% of the data as
### possible
filterDataPer <- Data.filter(saliva, "data", 1000, perTaxa=.95)
dim(saliva)
dim(filterDataNum)
dim(filterDataPer)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.