ic_score | R Documentation |
Calculates and plots immunophenogram (IPG) and immunophenoscores (IPS) for each sample and each group of study.
ic_score(
tpm,
metadata,
response,
compare = NULL,
p_label = "p.format",
colors = c("orange", "black")
)
tpm |
Output from the ic_raw_to_tpm function. This is a matrix containing expression counts as TPM with HGNC gene symbols as rownames and samples identifiers as colnames. |
metadata |
Data frame that contains supporting variables to the data. |
response |
Unquoted name of the variable indicating the groups to analyse. |
compare |
A character string indicating which method to be used for comparing means. Options are 't.test' and 'wilcox.test' for two groups or 'anova' and 'kruskal.test' for more groups. Default value is NULL. |
p_label |
Character string specifying label type. Allowed values include 'p.signif' (shows the significance levels), 'p.format' (shows the formatted p-value). |
colors |
Character vector indicating the colors of the different groups to compare. Default values are two: black and orange. |
Returns ggplot objects and a data frame.
tpm <- ic_raw_to_tpm(counts = sample_counts,
genes_id = 'entrezgene_id',
biomart = ensembl_biomart_GRCh38_p13)
ips <- ic_score(tpm = tpm,
metadata = sample_metadata,
response = MSI_status,
compare = 'wilcox.test',
p_label = 'p.format',
colors = c('orange', 'black'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.