.sum_alts_in_pathway | R Documentation |
Sum Alterations in a Pathway
.sum_alts_in_pathway(
gene_binary,
pathway_list_item,
pathway_name,
count_pathways_by
)
gene_binary |
a binary matrix (see |
pathway_list_item |
a named list of length 1 with pathway name as name and vector of genes as first and only item in list |
pathway_name |
name of pathway |
a dataframe of 1 column of 0/1s indicating pathway activated yes/no
gene_binary <- create_gene_binary(mutation = gnomeR::mutations, cna = gnomeR::cna,
fusion = gnomeR::sv)
x <- .sum_alts_in_pathway(gene_binary,
pathway_list_item = gnomeR::pathways[1],
pathway_name = names(gnomeR::pathways[1]),
count_pathways_by = "alteration")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.