makeFeatureGRanges: Construct a GRanges object from several possible...

Description Usage Arguments Value Author(s) See Also Examples

Description

Construct a GRanges object from several possible feature-level classes. The conversion is useful for subsequent ranged-data queries, such as findOverlaps, countOverlaps, etc.

Usage

1

Arguments

object

A gSet-derived object containing chromosome and physical position for the markers on the array.

...

See the makeFeatureGRanges method for GenomeAnnotatedDataFrame.

Value

A GRanges object.

Author(s)

R. Scharpf

See Also

findOverlaps, GRanges, GenomeAnnotatedDataFrame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
	if(require("VanillaICE")){
		library(oligoClasses)
		library(GenomicRanges)
		library(Biobase)
		library(foreach)
		registerDoSEQ()
		data(oligoSetExample, package="oligoClasses")
		oligoSet <- oligoSet[chromosome(oligoSet) == 1, ]
		grl <- hmm(oligoSet,TAUP=1e10)
		class(grl)## GRangesList
		gr <- grl[[1]]
		(frange <- makeFeatureGRanges(oligoSet))
		## which features overlap with the second range in sample NA06993
		subsetByOverlaps(frange, gr[2,])
	}

benilton/oligoClasses-release documentation built on May 11, 2017, 4:19 a.m.