Count matrix to DESeqDataSet conversion by parsing from column names
make_dds_parse.Rd
make_dds_parse creates a DESeqDataSet object from a gene counts matrix. The gene identifiers should in the first column of countData.
Usage
make_dds_parse(
countData,
mode = c("char", "delim"),
chars = 1,
sep = "_",
remove_prefix = F,
design = as.formula(~condition)
)
Arguments
- countData
Gene counts matrix or a data.frame contain counts data.
- mode
"char" or "delim", The mode of parsing the column headers. "char" will parse the last number of characters as replicate number and requires the 'chars' parameter. "delim" will parse on the separator and requires the 'sep' parameter.
- chars
Numeric(1), The number of characters to take at the end of the column headers as replicate number (only for mode = "char").
- sep
Character(1), The separator used to parse the column header (only for mode = "delim").
- remove_prefix
remove the prefix of sample labels.
- design
The design formula that transmitted to
DESeqDataSet
Details
Column name is splitted by delim or from the tail character(mode = "char").
Detail rule can check get_exdesign_parse
)