Skip to content

Commit 8cca313

Browse files
committed
improving comment in IntervalList
1 parent 6aa8f1a commit 8cca313

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/htsjdk/samtools/util/IntervalList.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,11 @@ private static List<Interval> breakIntervalAtBandMultiples(final Interval interv
380380

381381
/**
382382
* Merges a collection of intervals and optionally concatenates unique names or takes the first name.
383-
* Uses the contig and strand of the first interval seen without validating that the others match.
383+
* *
384+
* @param concatenateNames if true, combine the names of all the intervals with |, otherwise use the name of the first interval.
385+
* @return a single interval which spans from the minimum input start position to the maximum input end position.
386+
* The resulting strandedness and contig are those of the first input with no validation.
387+
*
384388
*/
385389
static Interval merge(final Iterable<Interval> intervals, final boolean concatenateNames) {
386390
final Interval first = intervals.iterator().next();

0 commit comments

Comments
 (0)