crunch {biovizBase}R Documentation

Fetching GRanges from various data source

Description

Fetching Granges from various data source, currently supported objects are TxDb, GAlignments and BamFile.

Usage

## S4 method for signature 'TxDb'
crunch(obj, which, columns = c("tx_id", "tx_name","gene_id"),
       type = c("all", "reduce"), truncate.gaps = FALSE,
       truncate.fun = NULL, ratio = 0.0025)
## S4 method for signature 'GAlignments'
crunch(obj, which, truncate.gaps = FALSE,
       truncate.fun = NULL, ratio = 0.0025)
## S4 method for signature 'BamFile'
crunch(obj, which, ..., type = c("gapped.pair", "raw", "all"),
       truncate.gaps = FALSE, truncate.fun = NULL, ratio = 0.0025)

Arguments

obj

supported objects are TxDb, GAlignments and BamFile.

which

GRanges object. For TxDb object, could aslo be a list.

columns

columns to include in the output.

type

default 'all' is to show the full model, 'reduce' is to show a single model.

truncate.gaps

logical value, default FALSE. Whether to truncate gaps or not.

truncate.fun

shrinkage function.

ratio

numeric value, shrinking ratio.

...

arguments passed to function readGAlignments.

Value

GRanges object.

Author(s)

Tengfei Yin

Examples

library(biovizBase)
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
data(genesymbol, package = "biovizBase")
txdb <- TxDb.Hsapiens.UCSC.hg19.knownGene
obj <- txdb
temp <- crunch(txdb, which = genesymbol["BRCA1"], type = "all")
temp <- crunch(txdb, which = genesymbol["BRCA1"], type = "reduce")

[Package biovizBase version 1.16.0 Index]