getXInfoFromFilenames: Get experiment info from filenames.

Description Usage Arguments Value

View source: R/util.R

Description

Get experiment info from filenames.

Usage

1

Arguments

filenames

Character vector of file names.

pattern

Pattern for extracting experiment info from file names. This must be a valid Perl regex with named capture groups. Neither the capture groups nor the pattern itself are required to match any given filename, but all capture groups must have a name, and that name cannot clash with other names that might be used alongside the extracted info.

Value

Character matrix in which each row contains the values of capture groups for a given filename, and each column contains values of a given capture group across filenames. Unmatched capture groups are represented by NA values.


gact/shmootl documentation built on Nov. 11, 2021, 6:23 p.m.