filter.features: Perform unsupervised feature filtering.

Description Usage Arguments Details Value Examples

View source: R/filter_features.r

Description

This function performs unsupervised feature filtering. Features can be filtered based on abundance or prevalence. Additionally, unmapped reads may be removed.

Usage

1
2
filter.features(siamcat, filter.method = "abundance",
    cutoff = 0.001, recomp.prop = FALSE, rm.unmapped = TRUE, verbose = 1)

Arguments

siamcat

an object of class siamcat-class

filter.method

method used for filtering the features, can be one of these: c('abundance', 'cum.abundance', 'prevalence'), defaults to 'abundance'

cutoff

float, abundace or prevalence cutoff, default to 0.001

recomp.prop

boolean, should relative abundances be recomputed?, defaults to FALSE

rm.unmapped

boolean, should unmapped reads be discarded?, defaults to TRUE

verbose

control output: 0 for no output at all, 1 for only information about progress and success, 2 for normal level of information and 3 for full debug information, defaults to 1

Details

This function filters the features in a siamcat-class object in a unsupervised manner.

The different filter methods work in the following way:

Value

siamcat an object of class siamcat-class

Examples

 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)

KonradZych/SIAMCAT documentation built on May 17, 2019, 6:20 p.m.