loadRegions {ORFik} | R Documentation

## Get all regions of transcripts specified to environment

### Description

By default loads all parts to .GlobalEnv (global environemnt) Useful to not spend time on finding the functions to load regions.

### Usage

    loadRegions(
      txdb,
      parts = c("mrna", "leaders", "cds", "trailers"),
      extension = "",
      envir = .GlobalEnv
    )

### Arguments

`txdb` | a TxDb file, a path to one of: (.gtf ,.gff, .gff2, .gff2, .db or .sqlite) or an ORFik experiment
`parts` | the transcript parts you want
`extension` | What to add on the name after leader, like: B -> leadersB
`envir` | Which environment to save to, default (.GlobalEnv)

### Value

NULL (regions set by envir assignment)

### Examples

    # Load all mrna regions to Global environment
    gtf <- system.file("extdata", "annotations.gtf", package = "ORFik")
    loadRegions(gtf, parts = c("mrna", "leaders", "cds", "trailers"))

[Package ORFik version 1.6.9 Index]