ref_load {dasper} | R Documentation

## Load reference annotation into a TxDb format

### Description

`ref_load`` loads reference annotation using [makeTxDbFromGFF][GenomicFeatures::makeTxDbFromGFF] if a character or leaves` ref' unchanged if already a TxDb-class. If you would

### Usage

    ref_load(ref)

### Arguments

`ref` | either path to gtf/gff3 or object of class TxDb-class or EnsDb-class. EnsDb-class is required if you intend to annotate junctions with gene symbols/names.

### Value

a TxDb-class object.

### Examples

    # create a TxDb,
    ref <- GenomicState::GenomicStateHub(
        version = "31",
        genome = "hg38",
        filetype = "TxDb"
    )[[1]]

    # alternatively ref can be a character specifying a path to a GTF file
    ref <- ref_load(ref)

[Package dasper version 1.4.0 Index]