create_fusion_report: Create a Fusion Report

Description Usage Arguments Value Examples

View source: R/reports.R

Description

This function will create a html report with an overplot and a sortable, searchable table with the fusion data.

Usage

1
create_fusion_report(fusions, output_filename, quiet = TRUE)

Arguments

fusions

A list of Fusion objects.

output_filename

Output html-file filename.

quiet

Parameter passed to rmarkdown::render() to toggle its output.

Value

Creates a html report with an overplot and a sortable, searchable table with the fusion data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Load data
defuse833ke <- system.file(
  "extdata",
  "defuse_833ke_results.filtered.tsv",
  package="chimeraviz")
fusions <- import_defuse(defuse833ke, "hg19", 3)
# Temporary file to store the report
random_filename <- paste0(
  paste0(sample(LETTERS, 5, replace = TRUE), collapse=''),
  ".png"
)
# Create report
create_fusion_report(fusions, random_filename)
# Delete the file
file.remove(random_filename)

chimeraviz documentation built on April 29, 2020, 5:38 a.m.