Currently it sorts the entire BAM (and hopefully soon, CRAM) file, then extracts the discordant. Do it other way around to reduce the sorting time. This is also easy:
Calculate min/max (as in issue #8)
When doing samtools view, pipe to awk command to filter out the concordants, then pipe to sort.
Currently it sorts the entire BAM (and hopefully soon, CRAM) file, then extracts the discordant. Do it other way around to reduce the sorting time. This is also easy: