ge_pca | R Documentation |
Creates a PCA plot from gene expression data using the VST transformation from the plotPCA function from the DESeq2 package.
ge_pca(
counts,
genes_id,
metadata,
response,
design,
colors = c("orange", "black")
)
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. |
response |
Unquoted name of the variable indicating the groups to analyse. |
design |
Variables in the design formula in the form of: 'Var1 + Var2 + ... Var_n'. |
colors |
Character vector indicating the colors of the different groups to compare. Default values are two: black and orange. |
Returns a ggplot object.
ge_pca(counts = sample_counts,
genes_id = 'ensembl_gene_id',
metadata = sample_metadata,
response = MSI_status,
design = 'MSI_status',
colors = c('orange', 'black'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.