run_trim: Trim samples or features in 'assayData' by Occurrences

Description Usage Arguments Details Value Author(s) Examples

View source: R/preprocess_trim.R

Description

trim samples or features in 'assayData' by Occurrences, which means the samples or features will be discard if they could not pass the cutoff.

Usage

1
run_trim(object, object=0.2, trim="Both")

Arguments

object,

Object; a ['matrix'] or ['assayData-class'] or ['ExpressionSet-class'].

cutoff,

Numeric; the threshold for triming (default: Cutoff=0.2).

trim,

Character; transformation to apply, the options inclulde: * "none", return the original data without any trim. * "both", trim the features and samples of profile more than cutoff. * "feature", trim the features of profile more than cutoff. * "sample", trim the samples of profile more than cutoff. * "Group", trim the features per Group, the samples of the profile more than cutoff, respectively.

Details

12/6/2021 Guangzhou China

Value

A trimed 'object' with profile more than cutoff.

Author(s)

Hua Zou

Examples

1
2
   data("ExprSet_species")
   run_trim(ExprSet_species, object=0.2, trim="both")

HuaZou/MyRtools documentation built on Jan. 6, 2022, 8:56 a.m.