fusion_to_data_frame {chimeraviz} | R 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)

[Package chimeraviz version 1.18.0 Index]