Does 'samtools sort -n' properly handle paired end data with multiple alignments per read (e.g. rna-seq reads aligned by TopHat)?
Htseq Count Sam
3 answers
Use samtools for sorting: samtools sort -n file.bam filesortedbyreadname
• 3 views
•
link
• 0 views
•
link
You can also use SortSam.jar from picardtools
java -jar /path_to_folder_picardtools/SortSam.jar INPUT=yourfile.sam OUTPUT=readSorted.sam SORT_ORDER=queryname VALIDATION_STRINGENCY=lenient
• 263 views
•
link
Firstly, try starting a new thread rather than just answering an almost year-old question with another question. Secondly, we can't help you if you just says "does not work" without providing any details. We're good, but we don't read minds.
• 26 views
•
link
Log in to answer this question.