discoParseMeta: Generate Experiment Metadata

View source: R/parseMeta.R

discoParseMetaR Documentation

Generate Experiment Metadata

Description

Parses the sample metadata from a vector of sample names (often column names of a Maindata format data.frame).

Usage

discoParseMeta(samplenames, shinySession = NULL)

Arguments

samplenames

character, a list of sample names following the DiscoRhythm naming convention (<prefix><Time>_<UniqueID>_<ReplicateID>).

shinySession

shiny session object for use only by the DiscoRhythm shiny app discoApp() to update the axis labels using the time value prefix.

Details

The regular expression used to obtain metadata is "^([[:alpha:]]*)(\-?[0-9]+[\.]?[0-9]*)\_? ([[:alnum:]\.]*)\_?([[:alnum:]\.]*)$"

Where each () will be used to construct the final metadata data.frame

Value

a data.frame containing 3 columns of metadata. ID = unique sample identity. Time = sample colleciton time. ReplicateID = Identifier where Time + ReplicateID indicates a biological sample ID.

Examples


discoParseMeta(c("CT24_AD_1","CT24_AS_1","CT24_AE_2","CT24_AW_2",
"CT26_AB_1","CT26_AC_1","CT26_BB_2","CT26_BC_2"))


matthewcarlucci/DiscoRhythm documentation built on March 24, 2022, 10:22 a.m.