readSampleAnnotationForEdgeR: Read sample annotation from tab-delimited file for EdgeR...

View source: R/readSampleAnnotationForEdgeR.R

readSampleAnnotationForEdgeRR Documentation

Read sample annotation from tab-delimited file for EdgeR analysis

Description

Read sample annotation from tab-delimited file for EdgeR analysis

Usage

readSampleAnnotationForEdgeR(sampleNames, file = NULL, ...)

Arguments

sampleNames

Character string, giving sample names

file

Character string, path to a tab-delimited file, or NULL. The first column must be either row names (namely no colum name), or sample names in the same order of sampleNames.

...

Other parameter passed to read.table.

Value

A data.frame containing sample annotation, removing 'lib.size', and 'norm.factors' because they will be added by the edgeR pipeline

Examples

phenoDataFile <- system.file("extdata/phenoData/test-phenoData.txt",
  package="ribiosNGS")
readSampleAnnotationForEdgeR(phenoDataFile)
readSampleAnnotationForEdgeR(file=NULL, sampleNames=as.character(1:4))

bedapub/ribiosNGS documentation built on Feb. 10, 2025, 12:34 a.m.