intersect_signature: Intersect a signature with the data's available genes

View source: R/load_signatures.R

intersect_signatureR Documentation

Intersect a signature with the data's available genes

Description

Produces a signature with the same subtypes, but smaller sets of genes, corresponding to what is available in the data.

Usage

intersect_signature(genes, sig, verbose = TRUE)

Arguments

genes

- the genes available in the data, usually rownames(data)

verbose

- logical: print how many genes are in the intersection or not, default is TRUE

sigs

- a list of the genes in every subtype (according to this signature); or a character vector of genes, if that signature is not split into subtypes

Value

intsig - the "intersection" signature, comprising of only signature genes available in "genes"

Examples

intersect_signature(c('ARID1B', 'PTEN'),c('KRAS', 'TGFB1', 'ARID1B'), verbose=TRUE)

aeolianine/CRCsubtyping documentation built on Jan. 13, 2023, 12:16 p.m.