fusion_to_data_frame: Coerce Fusion object to data.frame

View source: R/utilities.R

fusion_to_data_frameR Documentation

Coerce Fusion object to data.frame

Description

This function is used in create_fusion_report() to convert Fusion objects to a data.frame-format.

Usage

fusion_to_data_frame(fusion)

Arguments

fusion

The Fusion object to coerce.

Value

A data.frame with the fusion object.

See Also

create_fusion_report

Examples

# Load data
defuse833ke <- system.file(
  "extdata",
  "defuse_833ke_results.filtered.tsv",
  package="chimeraviz")
fusions <- import_defuse(defuse833ke, "hg19", 1)
# Find the fusion object to create a data frame from
fusion <- get_fusion_by_id(fusions, 5267)
# Create the data frame
dfFusion <- fusion_to_data_frame(fusion)


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