get_fusion_by_chromosome: Find fusions that involves genes in the given chromosome.

View source: R/get_fusion_by.R

get_fusion_by_chromosomeR Documentation

Find fusions that involves genes in the given chromosome.

Description

Helper function to retrieve the Fusion objects that involves genes in the given chromosome name.

Usage

get_fusion_by_chromosome(fusion_list, chr)

Arguments

fusion_list

A list of Fusion objects.

chr

The chromosome name we're looking for fusions in.

Value

A list of Fusion objects.

Examples

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


stianlagstad/chimeraviz documentation built on Dec. 3, 2023, 8:11 p.m.