Skip to content
Snippets Groups Projects
Commit 9748f8e8 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Adding originals to combined

parent 1f4aead0
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,9 @@ object BedRecordList {
val overlapRecords = records.takeWhile(_.start <= records.head.end)
val end = overlapRecords.map(_.end).max
newRecords += BedRecord(chr, start, end)
val newRecord = BedRecord(chr, start, end)
newRecord._originals = overlapRecords
newRecords += newRecord
combineOverlap(records.drop(overlapRecords.length), newRecords)
} else newRecords.toList
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment