getTranscriptsEnsembldb {chimeraviz} | R Documentation

## Retrieves transcripts for partner genes in a Fusion object using Ensembldb

### Description

This function will retrieve transcripts for both genes in a fusion. It will check all transcripts and decide for each transcript if the fusion breakpoint happens at 1) an exon boundary, 2) within an exon, or 3) within an intron. This is done because fusions happening at exon boundaries are more likely to produce biologically interesting gene products. The function returns an updated Fusion object, where the fusion@geneA@transcriptsX slots are set with transcript information.

### Usage

    getTranscriptsEnsembldb(fusion, edb)

### Arguments

`fusion` | The fusion object to find transcripts for.
`edb` | The edb object used to fetch data from.

### Value

An updated fusion object with transcript data stored.

### Examples

    # Load fusion data and choose a fusion object:
    defuseData <- system.file(
      "extdata",
      "defuse_833ke_results.filtered.tsv",
      package="chimeraviz")
    fusions <- importDefuse(defuseData, "hg19", 1)
    fusion <- getFusionById(fusions, 5267)
    # Create edb object
    edbSqliteFile <- system.file(
      "extdata",
      "Homo_sapiens.GRCh37.74.sqlite",
      package="chimeraviz")
    edb <- ensembldb::EnsDb(edbSqliteFile)
    # Add transcripts data to fusion object
    fusion <- getTranscriptsEnsembldb(fusion, edb)
    # The transcripts are now accessible through fusion@geneA@transcripts and
    # fusion@geneB@transcripts .

[Package chimeraviz version 1.4.3 Index]