Browse code

Add "isDisjoint" and "disjointBins" methods for RangedSummarizedExperiment objects.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/SummarizedExperiment@103778 bc3139a8-67e5-0310-9ffc-ced21a209358

Herve Pages authored on 13/05/2015 20:12:17
Showing 3 changed files

... ...
@@ -4,7 +4,7 @@ Description: The SummarizedExperiment container contains one or more assays,
4 4
 	each represented by a matrix-like object of numeric or other mode.
5 5
 	The rows typically represent genomic ranges of interest and the columns
6 6
 	represent samples.
7
-Version: 0.1.2
7
+Version: 0.1.3
8 8
 Author: Martin Morgan, Valerie Obenchain, Jim Hester, Herv\'e Pag\`es
9 9
 Maintainer: Bioconductor Package Maintainer <[email protected]>
10 10
 biocViews: Genetics, Infrastructure, Sequencing, Annotation, Coverage,
... ...
@@ -15,6 +15,7 @@ License: Artistic-2.0
15 15
 Collate: SummarizedExperiment-class.R
16 16
 	SummarizedExperiment-rowRanges-methods.R
17 17
 	intra-range-methods.R
18
+	inter-range-methods.R
18 19
 	coverage-methods.R
19 20
 	findOverlaps-methods.R
20 21
 	nearest-methods.R
... ...
@@ -78,6 +78,7 @@ exportMethods(
78 78
     ## Generics defined in IRanges:
79 79
     ranges, "ranges<-",
80 80
     shift, narrow, resize, flank, promoters, restrict, trim,
81
+    isDisjoint, disjointBins,
81 82
     coverage,
82 83
     findOverlaps, countOverlaps, overlapsAny, subsetByOverlaps,
83 84
     precede, follow, nearest, distance, distanceToNearest,
84 85
new file mode 100644
... ...
@@ -0,0 +1,22 @@
1
+### =========================================================================
2
+### Inter-range methods
3
+### -------------------------------------------------------------------------
4
+###
5
+
6
+
7
+setMethod("isDisjoint", "GenomicRanges",
8
+    function(x, ignore.strand=FALSE)
9
+    {
10
+        x <- rowRanges(x)
11
+        callGeneric()
12
+    }
13
+)
14
+
15
+setMethod("disjointBins", "GenomicRanges",
16
+    function(x, ignore.strand = FALSE)
17
+    {
18
+        x <- rowRanges(x)
19
+        callGeneric()
20
+    }
21
+)
22
+