trim_EList: Drop samples from EList object

Description Usage Arguments Details Value

View source: R/trim_EList.R

Description

This function drops samples from an EList object, iterating over all components of the object. It uses the dimensions of the components to determine whether to drop rows, columns, etc., and thus will have difficulty if the number of samples is small.

Usage

1
trim_EList(EList, keep_samples, drop_samples=NULL)

Arguments

EList

an EList object containing expression values

keep_samples

a numeric vector of the indices of samples to keep; alternately, a logical vector with length equal to number of libraries in EList, indicating which libraries to keep.

drop_samples

a numeric vector of the indices of samples to drop; alternately, a logical vector with length equal to number of libraries in EList, indicating which libraries to drop. Ignored if keep_samples is provided.

Details

Either keep_samples or drop_samples must be specified.

Value

an EList object with drop_samples removed from all components, or only keep_samples retained in all components.


mjdufort/countSubsetNorm documentation built on Nov. 7, 2019, 6:37 p.m.