SmartMap: Map genome coordinates to transcript coordinates.

Description Usage Arguments Details Value Author(s) Examples

View source: R/methods.R

Description

Map genome coordinates to transcript coordinates.

Usage

1
2
SmartMap(gr, id = NULL, refGenome = "hg38", ignore.strand = FALSE,
  showPb = TRUE)

Arguments

gr

A GRanges object; specifies the list of of genomic features to be mapped.

id

A character string; specifies a name for loci from gr; if NULL then id = ""; default is NULL.

refGenome

A character string; specifies a specific reference genome assembly version based on which the matching transcriptome is loaded; default is "hg38".

ignore.strand

A logical scalar; if TRUE strand information is ignored when mapping genome coordinates to transcript coordinates; default is FALSE.

showPb

A logical scalar; if TRUE show a progress bar; default is TRUE.

Details

The function maps genomic coordinates from locus to transcript section coordinates. The function automatically loads a reference transcriptome based on refGenome. An error is produced if a reference transcriptome could not be found. This usually means that BuildTx was not yet run successfully. The function returns a txLoc object of mapped positions.

Value

A txLoc object. See 'Details'.

Author(s)

Maurits Evers, maurits.evers@anu.edu.au

Examples

1
2
3
4
5
6
7
8
## Not run: 
bedFile <- system.file("extdata",
                       "miCLIP_m6A_Linder2015_hg38.bed",
                       package = "RNAModR")
sites <- ReadBED(bedFile)
txSites <- SmartMap(sites, id = "m6A", refGenome = "hg38")

## End(Not run)

mevers/RNAModR documentation built on Nov. 17, 2019, 9:11 a.m.