get_fusion_by_id {chimeraviz} | R Documentation

## Find a specific fusion object in a list by id

### Description

Helper function to retrieve the Fusion object with the given id.

### Usage

    get_fusion_by_id(fusion_list, id)

### Arguments

`fusion_list` | A list of Fusion objects.
`id` | The id (e.g. the cluster_id from a deFuse run) we're looking for.

### Value

A Fusion object.

### Examples

    defuse833ke <- system.file(
      "extdata",
      "defuse_833ke_results.filtered.tsv",
      package="chimeraviz")
    fusions <- import_defuse(defuse833ke, "hg19", 1)
    fusion <- get_fusion_by_id(fusions, 5267)
    # This should be the Fusion object:
    fusion
    # [1] "Fusion object"
    # [1] "id: 5267"
    # [1] "Fusion tool: defuse"
    # [1] "Genome version: hg19"
    # [1] "Gene names: RCC1-HENMT1"
    # [1] "Chromosomes: chr1-chr1"
    # [1] "Strands: +,-"

[Package chimeraviz version 1.6.2 Index]