get_fusion_by_id: Find a specific fusion object in a list by id

Description Usage Arguments Value Examples

View source: R/get_fusion_by.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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: +,-"

chimeraviz documentation built on Jan. 19, 2021, 2 a.m.