Description Usage Arguments Details Value Examples
View source: R/filter_features.r
This function performs unsupervised feature filtering. Features can be filtered based on abundance or prevalence. Additionally, unmapped reads may be removed.
1 2 | filter.features(siamcat, filter.method = "abundance",
cutoff = 0.001, recomp.prop = FALSE, rm.unmapped = TRUE, verbose = 1)
|
siamcat |
an object of class siamcat-class |
filter.method |
method used for filtering the features, can be one of
these: |
cutoff |
float, abundace or prevalence cutoff, default to |
recomp.prop |
boolean, should relative abundances be recomputed?,
defaults to |
rm.unmapped |
boolean, should unmapped reads be discarded?, defaults to
|
verbose |
control output: |
This function filters the features in a siamcat-class object in a unsupervised manner.
The different filter methods work in the following way:
'abundace'
remove features whose abundance is never
above the threshold value in any of the samples
'cum.abundance'
remove features with very low abundance
in all samples i.e. ones that are never among the most abundant
entities that collectively make up (1-cutoff) of the reads in
any sample
'prevalence'
remove features with low prevalence across
samples i.e. ones that are 0 (undetected) in more than (1-cutoff)
proportion of samples.
siamcat an object of class siamcat-class
1 2 3 4 5 6 7 8 9 10 | # Example dataset
data(siamcat_example)
# since the whole pipeline has been run in the example data, the feature
# were filtered already.
siamcat_example <- reset.features(siamcat_example)
# Simple examples
siamcat_filtered <- filter.features(siamcat_example,
filter.method='abundance',
cutoff=1e-03)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.