原始 BAM 文件和 sort 之后 BAM 文件的行数,是一样的。
SEQanswers:BAM is compressed. Sorting helps to give a better compression ratio because similar sequences are grouped together.
bam转回fq时报错: github查找同问题结果1 2 3
*****WARNING: Query 17 is marked as paired, but its mate does not occur next to it in your BAM file. Skipping.
*****WARNING: Query 13 is marked as paired, but its mate does not occur next to it in your BAM file. Skipping.
*****WARNING: Query 223 is marked as paired, but its mate does not occur next to it in your BAM file. Skipping.
sort -n 后 warning行数变少1,333,109,095变为11,212,985
???:
nohup samtools sort -n S1_T_SRR1273943.bam -o ./S1_T_SRR1273943.sortedByName.bam >log.S1.bam.sortbyname 2>&

博客讨论了BAM文件排序后行数变化及其对压缩的影响,以及在使用bedtoolsbamtofastq过程中遇到的错误。通过samtools排序并转换为fastq格式时,出现配对读取不匹配的问题。解决方法包括按readname排序后再进行提取。此外,提到了BAM文件中reads名称与fastq中名称的差异,以及处理这一问题的策略。
最低0.47元/天 解锁文章
6161

被折叠的 条评论
为什么被折叠?



