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