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
posted @ 2021-06-11 23:36  橙子牛奶糖  阅读(301)  评论(0编辑  收藏  举报