filterFusions: filterFusions: remove or keep specified fusions

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

This method allows to keep only or to exclude certain fusions according to three different filtering formats

Usage

1
filterFusions(object , filtered , mode = c("exclude" , "keep"))

Arguments

object

An instance of class CancerPanel

filtered

A character vector used as filter

mode

If "exclude", fusions are removed from the object. If "keep", fusions specified in filtered are the only ones maintained.

Details

filtered vector must be in fusion format GENE1\_\_GENE2.

At the end of the filtering procedure, subsetAlterations is automatically run.

Value

An updated instance of class CancerPanel

Author(s)

Giorgio Melloni , Alessandro Guida

References

data origin for mutations , copynumber and expression data

data origin for fusion data

See Also

getAlterations subsetAlterations filterMutations

Examples

1
2
3
4
5
6
7
8
# Retrieve example data
data(cpObj)
# Create a data.frame to filter
myFilter <- c("ERC1__RET", "TRIM33__RET", "EML4__ALK")
# Keep only myFilter fusions
cpObjKeep <- filterFusions(cpObj , filtered = myFilter , mode = "keep")
# Exclude myFilter fusions
cpObjExclude <- filterFusions(cpObj , filtered = myFilter , mode = "exclude")

PrecisionTrialDrawer documentation built on Nov. 8, 2020, 8:17 p.m.