Skip to content

Commit

Permalink
add "A quick introduction to GRanges and GRangesList objects" (slides)
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Feb 4, 2015
1 parent ed901e7 commit b431ff3
Show file tree
Hide file tree
Showing 5 changed files with 1,027 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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.19.35
Version: 1.19.36
Author: P. Aboyoun, H. Pages and M. Lawrence
Maintainer: Bioconductor Package Maintainer <[email protected]>
biocViews: Genetics, Infrastructure, Sequencing, Annotation, Coverage,
Expand Down
4 changes: 2 additions & 2 deletions R/findOverlaps-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ setMethod("findOverlaps", c("GenomicRanges", "GenomicRanges"),
{
q_ranges <- ranges(query)[queryHits(hits)]
s_ranges <- ranges(subject)[subjectHits(hits)]
1L + pmin(end(q_ranges), end(s_ranges)) -
pmax(start(q_ranges), start(s_ranges))
1L + pmin.int(end(q_ranges), end(s_ranges)) -
pmax.int(start(q_ranges), start(s_ranges))
}

.aggregated_sum <- function(x, f1, f2)
Expand Down
2 changes: 1 addition & 1 deletion R/tileGenome.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
.superimpose_breakpoints <- function(old_breakpoints, new_breakpoints)
{
## Set names on 'new_breakpoints'.
new_breakpoints <- pmin(new_breakpoints, tail(old_breakpoints, 1))
new_breakpoints <- pmin.int(new_breakpoints, tail(old_breakpoints, 1))
new2old <- 1L + findInterval(new_breakpoints - 1L, old_breakpoints)
names(new_breakpoints) <- names(old_breakpoints)[new2old]

Expand Down
Loading

0 comments on commit b431ff3

Please sign in to comment.