GRangesListmapToTranscripts: GRangesListmapToTranscripts

Description Usage Arguments Value Examples

View source: R/GenomicRangesOps.R

Description

Map the input data to the transcript and select the data with a length equal to the length of the site when entering the data.

Usage

1
2
3
GRangesListmapToTranscripts(site, 
                            mapFilterTranscript = FALSE, 
                            transcripts)

Arguments

site

A GRangeslist object, the content of the sites information.

mapFilterTranscript

Whether to filter the length of transcripts equal the original site. Default: FALSE.

transcripts

A type of transcripts from the Guitartxdb.

Value

A GRangeslist object, the content is the site data filtered by the mapping.

Examples

1
2
3
4
5
6
7
8
9
# read transcript information and generate guitartxdb.
txdb_file <- system.file("extdata", "mm10_toy.sqlite", package="Guitar")
txdb <- loadDb(txdb_file)
guitarTxdb <- makeGuitarTxdb(txdb)

#read the gene feature file.
stBedFile <- system.file("extdata", "m6A_mm10_exomePeak_1000peaks_bed12.bed", package="Guitar")
site <-  blocks(import(stBedFile))
sitesGRanges <- GRangesListmapToTranscripts(site, mapFilterTranscript = FALSE,transcripts = guitarTxdb$tx$tx)

stasaki/Guitar documentation built on Feb. 5, 2021, 12:21 p.m.