Skip to content

TypeError: '<' not supported between instances of 'Chromosome' and 'Chromosome' #1

@zhangrengang

Description

@zhangrengang

I got an exception when there are multiple chromosomes. It seemed that self.__chromosomes.sort() can not be sorted when self.__chromosomes have more than one Chromosome values.

Traceback (most recent call last):
  File "/share/home/app/.local/python3/bin/run_pypmag.py", line 4, in <module>
    __import__('pkg_resources').run_script('arachis==0.42.2', 'run_pypmag.py')
  File "/share/home/app/.local/python3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/share/home/app/.local/python3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1469, in run_script
    exec(script_code, namespace, namespace)
  File "/share/home/app/.local/python3/lib/python3.6/site-packages/arachis-0.42.2-py3.6.egg/EGG-INFO/scripts/run_pypmag.py", line 561, in <module>
  File "/share/home/app/.local/python3/lib/python3.6/site-packages/arachis-0.42.2-py3.6.egg/EGG-INFO/scripts/run_pypmag.py", line 556, in main
  File "/share/home/app/.local/python3/lib/python3.6/site-packages/arachis-0.42.2-py3.6.egg/EGG-INFO/scripts/run_pypmag.py", line 287, in reconstruct_ancestral_genomes
  File "/share/home/app/.local/python3/lib/python3.6/site-packages/arachis-0.42.2-py3.6.egg/arachis/genomeClass.py", line 1358, in __init__
  File "/share/home/app/.local/python3/lib/python3.6/site-packages/arachis-0.42.2-py3.6.egg/arachis/genomeClass.py", line 1381, in parse_grimm
  File "/share/home/app/.local/python3/lib/python3.6/site-packages/arachis-0.42.2-py3.6.egg/arachis/genomeClass.py", line 1272, in __init__
TypeError: '<' not supported between instances of 'Chromosome' and 'Chromosome'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions