ge_diff_exp | R Documentation |
Performs differential gene expression using DESeq2.
ge_diff_exp(counts, genes_id, metadata, design, ref_level, shrink = "apeglm")
counts |
Data frame that contains gene expression data as raw counts. |
genes_id |
Name of the column that contains gene identifiers. Should be one of the following:'entrezgene_id', 'ensembl_gene_id' or 'hgnc_symbol'. |
metadata |
Data frame that contains supporting variables to the data. |
design |
Variables in the design formula in the form of: 'Var1 + Var2 + ... Var_n'. |
ref_level |
Character vector where the first element is the column name where the reference level is located and a second element indicating the name of level to be used as a reference when calculating differential gene expression. |
shrink |
Name of the shrinkage method to apply: "apeglm", "ashr", "normal" or "none". Use none to skip shrinkage. Default value is "apeglm". |
Returns a list of differential gene expression results, one for each level comparison, in form of DESeqResults objects.
results.dds <- ge_diff_exp(counts = sample_counts,
genes_id = 'ensembl_gene_id',
metadata = sample_metadata,
design = 'MSI_status',
ref_level = c('MSI_status', 'MSS'),
shrink = 'apeglm')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.