View source: R/extract_design_mdesign_mcat.R
extract_design_mdesign_mcat | R Documentation |
Extract Design-Metadesign (XU) matrix for a categorical meta-feature from a maf file
extract_design_mdesign_mcat(
maf,
variant_col = "variant",
mfeat_col = "gene",
sample_id_col = "sample",
mfeat_subset = NULL,
...
)
maf |
mutation annotation file – a data frame-like object with at least three columns containing variant labels, sample IDs and (categorical) meta-feature labels. NOTE: uniqueness of rows of maf is assumed. |
variant_col |
name of the column in |
mfeat_col |
name of the column in |
sample_id_col |
name of the column in |
mfeat_subset |
character vector providing the subset of categories of
the meta-feature for which the design matrix is to be created. If NULL
(default), all unique categories present in the |
... |
Unused. |
An n_tumor x n_gene sparse dgCMatrix, with (i, j)th entry providing the total
number of variants in tumor i associated with j-th meta-feature category,
as determined by mfeat_col
of maf
.
data("impact")
gene_mdesign <- extract_design_mdesign_mcat(
maf = impact,
variant_col = "Variant",
mfeat_col = "Hugo_Symbol",
sample_id_col = "patient_id"
)
dim(gene_mdesign)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.