subset_matrix: Subset a (counts) matrix based on the column from a...

Description Usage Arguments Value

Description

This is useful for subsetting a counts matrix based on the sample IDs present in the sample data dataframe. It then prunes the matrix to remove any rows whose sums are 0.

Usage

1
subset_matrix(s, mat, colname = "SampleID")

Arguments

s

a sample data dataframe

mat

a counts matrix

colname

the name of the column to use for subsetting

Value

the subsetted matrix


eclarke/eclectic documentation built on May 15, 2019, 7:54 p.m.