Input error: Chromosome xxx found in non-sequential lines. This suggests that the input file is not sorted correctly报错

跑命令bedtools genomecov -ibam file.bam -bga -split -trackline > file.wig时出现的报错。

解决方案:

samtools sort file.bam -T /tmep -o file.sorted.bam #/tmep指的是新建一个tmep的文件夹, 对file.bam进行sort,生成file.sorted.bam
bedtools genomecov -ibam file.sorted.bam -bga -split -trackline > file.wig
原文地址:https://www.cnblogs.com/chenwenyan/p/14877067.html