import_design: Obtain a design matrix from a file.

Description Usage Arguments Details

View source: R/import_model.R

Description

Ensures that the samples mentioned in the rows of the design matrix are all present in an expression dataset (if provided).

Usage

1
import_design(filepath, dge)

Arguments

filepath

A tab-separated file that defines the experimental design for the current experiment. This function fails if the file does not exist.

dge

A DGEList containing the expression data for the current experiment. This is optional. But providing a DGEList helps sanity check the design matrix - ensuring the samples in the design are all present in the DGEList.

Details

But note, the user should ensure that the DGEList is subset / reordered if the samples in the DGEList is a superset (or unmatching order) or those in the returned design matrix.

Here, we assume that the first column in the '.tsv' contains the sample identifers, as used throughout the _R_ workflow. Each entry in that column should be a single string that can directly be used as a column name. All other columns should be numeric, and will be converted to a matrix.


russHyde/reeq documentation built on March 10, 2020, 5:36 a.m.