MCsanX运行报错ZeroDivisionError: float division by zero

Traceback (most recent call last):

  File "/biosoft/miniconda/miniconda2/lib/python2.7/runpy.py", line 174, in _run_module_as_main

    "__main__", fname, loader, pkg_name)

  File "/biosoft/miniconda/miniconda2/lib/python2.7/runpy.py", line 72, in _run_code

    exec code in run_globals

  File "/biosoft/miniconda/miniconda2/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 330, in <module>

    main()

  File "/biosoft/miniconda/miniconda2/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 318, in main

    Karyotype(fig, root, seqidsfile, layoutfile)

  File "/biosoft/miniconda/miniconda2/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 294, in __init__

    tr = Track(root, lo, gap=gap, height=height, lw=lw, draw=False)

  File "/biosoft/miniconda/miniconda2/lib/python2.7/site-packages/jcvi/graphics/karyotype.py", line 139, in __init__

    ratio = span / total

ZeroDivisionError: float division by zero



这是报错的代码,(我不知道我为啥上传不了图片)

请先 登录 后评论

2 个回答

omicsgene - 生物信息
擅长:重测序,遗传进化,转录组,GWAS

可以看看这个:https://www.omicsclass.com/question/1605  还有这个:https://www.omicsclass.com/article/572


再有检查所有文件里面的染色体ID 是否一致:https://www.omicsclass.com/question/1361

请先 登录 后评论
含笑

attachments-2019-12-VBMn9ip45e09967f1c83f.jpg你好老师,现在画出来是这样的,配置文件格式和课堂一样,不知道哪里出错了。救救孩子吧

请先 登录 后评论