getFusionByGeneName {chimeraviz} | R Documentation

## Find fusions that includes the given gene.

### Description

Helper function to retrieve the Fusion objects that has geneName as one of the partner genes.

### Usage

    getFusionByGeneName(fusionList, geneName)

### Arguments

`fusionList` | A list of Fusion objects.
`geneName` | The gene name we're looking for.

### Details

Note: getFusionByGeneName(fusionList, "MT") will match both MT-ND5 and MT-ND4.

### Value

A list of Fusion objects.

### Examples

    defuse833ke <- system.file(
      "extdata",
      "defuse_833ke_results.filtered.tsv",
      package="chimeraviz")
    fusions <- importDefuse(defuse833ke, "hg19", 1)
    length(getFusionByGeneName(fusions, "RCC1"))
    # [1] 1

[Package chimeraviz version 1.4.3 Index]