fusionToDataFrame {chimeraviz} | R Documentation

## Coerce Fusion object to data.frame

### Description

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

### Usage

    fusionToDataFrame(fusion)

### Arguments

`fusion` | The Fusion object to coerce.

### Value

A data.frame with the fusion object.

### See Also

createFusionReport

### Examples

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

[Package chimeraviz version 1.4.3 Index]