attriColorGene | R Documentation |
Attribute Color to Gene
attriColorGene(df)
df |
data frame with mRNA or CNA or mutation frequency or methylation (numeric). Without sampleID column. |
A list colors for every gene
cgds <- cBioPortal(
hostname = "www.cbioportal.org",
protocol = "https",
api = "/api/v2/api-docs"
)
## Not run:
getDataByGenes( api = cgds,
studyId = "gbm_tcga_pub",
genes = c("NF1", "TP53", "ABL1"),
by = "hugoGeneSymbol",
molecularProfileIds = "gbm_tcga_pub_mrna"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.