On the develop branch 1b51e2d
Consider example.bed file with 1 entry and 1 line:
Not that there is no empty line at the end
regions = open(BED.Reader, "example.bed") do reader
IntervalCollection(reader, true)
end
collect(regions)
Output is an empty interval collection:
IntervalCollection{BED.Record} with 0 intervals:
Interval{BED.Record}[]
whereas if there is an empty line present in example.bed (1 entry, 2 lines):
Then the output is as expected:
IntervalCollection{BED.Record} with 1 intervals:
chr1:2-5 . chr1 1 5
1-element Vector{Interval{BED.Record}}:
Interval{BED.Record}:
sequence name: chr1
leftmost position: 2
rightmost position: 5
strand: .
metadata: chr1 1 5
It seems like the last entry of a file is not being read.
On the develop branch 1b51e2d
Consider example.bed file with 1 entry and 1 line:
Not that there is no empty line at the end
Output is an empty interval collection:
whereas if there is an empty line present in example.bed (1 entry, 2 lines):
Then the output is as expected:
It seems like the last entry of a file is not being read.