From 562220335ae5b523a734efc9f71480254b71e888 Mon Sep 17 00:00:00 2001 From: "hpages@fhcrc.org" Date: Wed, 22 Apr 2015 18:34:17 +0000 Subject: [PATCH] GNCList objects are now subsettable git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/GenomicRanges@102948 bc3139a8-67e5-0310-9ffc-ced21a209358 --- DESCRIPTION | 2 +- R/GNCList-class.R | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index ff508f3..36b1603 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -7,7 +7,7 @@ Description: The ability to efficiently represent and manipulate genomic intervals. Specialized containers for representing and manipulating short alignments against a reference genome are defined in the GenomicAlignments package. -Version: 1.21.1 +Version: 1.21.2 Author: P. Aboyoun, H. Pages and M. Lawrence Maintainer: Bioconductor Package Maintainer biocViews: Genetics, Infrastructure, Sequencing, Annotation, Coverage, diff --git a/R/GNCList-class.R b/R/GNCList-class.R index f0bb1cd..82e795a 100644 --- a/R/GNCList-class.R +++ b/R/GNCList-class.R @@ -80,6 +80,15 @@ GNCList <- function(x) setAs("GenomicRanges", "GNCList", function(from) GNCList(from)) +### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +### Subsetting +### + +setMethod("extractROWS", "GNCList", + function(x, i) as(callGeneric(as(x, "GRanges"), i), class(x)) +) + + ### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ### findOverlaps_GNCList() ###