Improve reads clustering in bam2fasta.py