upstreamPartnerGene {chimeraviz} | R Documentation

## Get the upstream fusion partner gene

### Description

This getter retrieves the upstream PartnerGene object.

This sets the upstream PartnerGene object of a Fusion object

### Usage

    upstreamPartnerGene(x)

    ## S4 method for signature 'Fusion'
    upstreamPartnerGene(x)

    upstreamPartnerGene(object) <- value

    ## S4 replacement method for signature 'Fusion'
    upstreamPartnerGene(object) <- value

### Arguments

`x` | The Fusion object you wish to retrieve the upstream PartnerGene object for.
`object` | The Fusion object you wish to set a new upstream PartnerGene object for.
`value` | The new PartnerGene object.

### Value

The upstream PartnerGene object.

### Examples

    # Load data
    defuseData <- system.file(
      "extdata",
      "defuse_833ke_results.filtered.tsv",
      package="chimeraviz")
    fusions <- importDefuse(defuseData, "hg19", 1)
    fusion <- fusions[[1]]
    # Get the upstream fusion partner gene
    upstreamPartnerGene(fusion)

    # Load data
    defuseData <- system.file(
      "extdata",
      "defuse_833ke_results.filtered.tsv",
      package="chimeraviz")
    fusions <- importDefuse(defuseData, "hg19", 1)
    fusion <- fusions[[1]]
    # Set the upstream PartnerGene object to be the same as the downstream PartnerGene object
    upstreamPartnerGene(fusion) <- downstreamPartnerGene(fusion)

[Package chimeraviz version 1.4.3 Index]