import_chimpipe: Import results from a ChimPipe run into a list of Fusion...

View source: R/import_chimpipe.R

import_chimpipeR Documentation

Import results from a ChimPipe run into a list of Fusion objects.

Description

A function that imports the results from a ChimPipe run, typically from a chimericJunctions_.txt file, into a list of Fusion objects.

Usage

import_chimpipe(filename, genome_version, limit)

Arguments

filename

Filename for the ChimPipe results.

genome_version

Which genome was used in mapping (hg19, hg38, etc.).

limit

A limit on how many lines to read.

Value

A list of Fusion objects.

Examples

chimpipefile <- system.file(
  "extdata",
  "chimericJunctions_MCF-7.txt",
  package="chimeraviz")
fusions <- import_chimpipe(chimpipefile, "hg19", 3)
# This should import a list of 3 fusions described in Fusion objects.

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