design_filter_counts: Remove samples without annotation data from counts object

Description Usage Arguments Details Value

View source: R/design_filter_counts.R

Description

This function filters a counts object, removing samples that are not found in a corresponding sample annotation object.

Usage

1
design_filter_counts(counts, design, libID_col)

Arguments

counts

a matrix or data frame of gene expression counts. Must have samples in columns and genes in rows, with colnames as sample identifiers.

design

a data frame of sample information. At minimum, must contain a column corresponding to sample identifiers matching column names of counts.

libID_col

numeric index or character name of column in design containing sample identifers matching column names of counts.

Details

Samples are removed from counts if their column name does not match an element in column libID_col of design.

Value

a matrix or data frame with the same number of rows as counts


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