dot-sum_alts_in_pathway: Sum Alterations in a Pathway

.sum_alts_in_pathwayR Documentation

Sum Alterations in a Pathway

Description

Sum Alterations in a Pathway

Usage

.sum_alts_in_pathway(
  gene_binary,
  pathway_list_item,
  pathway_name,
  count_pathways_by
)

Arguments

gene_binary

a binary matrix (see gene_binary())

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

Value

a dataframe of 1 column of 0/1s indicating pathway activated yes/no

Examples

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")


MSKCC-Epi-Bio/gnomeR documentation built on March 28, 2024, 2:42 a.m.