importData: Import data of hub object

Description Usage Arguments Value Examples

Description

Import data of hub object

Usage

1
importData(hub, ids, which)

Arguments

hub

A hub object, either AnnotationHub or ExperimentHub

ids

The hub id(s) of interest.

which

A range data structure, like a 'GRanges'.

Value

A 'GRanges'.

Examples

1
2
3
4
5
library(AnnotationHub)
library(GenomicRanges)
ah = AnnotationHub()
which <- GRanges(c("chr2", "chr2"), IRanges(c(1, 300), c(400, 1000000)))
importData(ah, "AH49544", which)

Kayla-Morrell/HubGrub documentation built on Dec. 18, 2021, 2:43 a.m.