gt1 / biobambam2

Tools for early stage alignment file processing
Other
93 stars 17 forks source link

does bamtofastq have same outputs for queryname and coordinate sorted input BAM/CRAM #76

Closed djomlaart closed 6 years ago

djomlaart commented 6 years ago

Hi, is biobambam bamtofastq aware how input is sorted? Does it keep track of read pairs (same as Picard) or it just outputs the read as soon as it comes to it (like Samtools)?

Should I queryname sort my BAM/CRAM prior to bamtofastq in order to get paired reads in my FASTQ outputs?

gt1 commented 6 years ago

bamtofastq collates reads by name by default, so sorting an input file by query name is not necessary.

djomlaart commented 6 years ago

Thanks!