5 Orthofinder报错出现ZeroDivisionError: float division by zero

如题:python3.7 环境,Orthofinder最新版本,运行demo数据没问题

需要比对的序列长度不一,psi-blast比对是可以比上的。拿到这些数据单独再去比较就出现了报错。请问出现这个报错是不是说明没有找到

  1. 再用 MCL 聚类 得到 Orthogroups(基因家族);
  2. 接着 为每个 Orthogroup 推断有根基因树
    MCL聚类无法得到基因家族导致的报错呢

Traceback (most recent call last):

  File "OrthoFinder-master/orthofinder.py", line 7, in <module>

    main(args)

  File "/home/nick/data/software/scripts/cluster/reanalysis_20250731/psiblast/mmseq2/OrthoFinder-master/scripts_of/__main__.py", line 1344, in main

    GetOrthologues(speciesInfoObj, options, prog_caller)

  File "/home/nick/data/software/scripts/cluster/reanalysis_20250731/psiblast/mmseq2/OrthoFinder-master/scripts_of/__main__.py", line 997, in GetOrthologues

    i_og_restart=i_og_restart)

  File "/home/nick/data/software/scripts/cluster/reanalysis_20250731/psiblast/mmseq2/OrthoFinder-master/scripts_of/orthologues.py", line 1007, in OrthologuesWorkflow

    results_name, root_from_previous, i_og_restart)

  File "/home/nick/data/software/scripts/cluster/reanalysis_20250731/psiblast/mmseq2/OrthoFinder-master/scripts_of/orthologues.py", line 1103, in InferGeneAndSpeciesTrees

    i_og_restart=i_og_restart)

  File "/home/nick/data/software/scripts/cluster/reanalysis_20250731/psiblast/mmseq2/OrthoFinder-master/scripts_of/trees_msa.py", line 339, in DoTrees

    iOgsForSpeciesTree, fSingleCopy = DetermineOrthogroupsForSpeciesTree(ogMatrix, iogs4)

  File "/home/nick/data/software/scripts/cluster/reanalysis_20250731/psiblast/mmseq2/OrthoFinder-master/scripts_of/trees_msa.py", line 170, in DetermineOrthogroupsForSpeciesTree

    fractions, nOrtho = GetOrthogroupOccupancyInfo(m)

  File "/home/nick/data/software/scripts/cluster/reanalysis_20250731/psiblast/mmseq2/OrthoFinder-master/scripts_of/trees_msa.py", line 148, in GetOrthogroupOccupancyInfo

    f = 1./N

ZeroDivisionError: float division by zero

请先 登录 后评论