get_fusion_by_gene_name: Find fusions that includes the given gene.

View source: R/get_fusion_by.R

get_fusion_by_gene_nameR 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

get_fusion_by_gene_name(fusion_list, gene_name)

Arguments

fusion_list

A list of Fusion objects.

gene_name

The gene name we're looking for.

Details

Note: get_fusion_by_gene_name(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 <- import_defuse(defuse833ke, "hg19", 1)
length(get_fusion_by_gene_name(fusions, "RCC1"))
# [1] 1


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