filterFusions: Sub-select fusion lines from a list of fusions

Description Usage Arguments Value

Description

Filtering is based on sample name or gene. If you need more complex filtering, just do it yourself. This is a convienience function.

Usage

1
2
filterFusions(fusions, sample = c(), gene1 = c(), gene2 = c(),
  genePairing = "or")

Arguments

fusions

The data frame of fusions to filter

sample

List of sample names. If given, only fusions for the samples with exactly mathcing sample names will be kept. Gene filtering will select only from these samples.

gene1

List of gene names to filter fusions based on the upstream gene name.

@param gene2 List of gene names to filter fusions based on the downstream gene name.

@param genePairing Logic to use if both gene1 and gene2 given.

"or" If fusion gene1 in gene1 param or fusion gene2 in gene2 param, keep the fusion.
"and" If fusion gene1 in gene1 param and fusion gene2 in gene2 param, keep the fusion.
"pair" Keep fusion if param gene1[i] = fusion gene1 and param gene2[i] = fusion gene2, for any gene param i (gene1 and gene2 must be same length)

Value

The selected rows from the fusion data frame


jefferys/fusionExpressionPlot documentation built on May 19, 2019, 3:59 a.m.