compleasm icon indicating copy to clipboard operation
compleasm copied to clipboard

KeyError: 'Target_Species'

Open larsmoret opened this issue 1 year ago • 10 comments

Dear all, I must say, I am quite intrigued comparing it to BUSCO

However, I came across an error while trying to run it and i have no idea where to look. While trying to run Compleasm, it suddenly stops and displays KeyError: 'Target_Species'

Has anyone had the same issue or any idea where the problem might be?

Thanks in advance, Lars Moret

P.S. This is my entire log, please note that i have installed Compleasm using conda.

(checker) lmoret@ubuntudesktopc:/data/volume_2$ compleasm run -a finalassemblies/CBS1922.fasta -o compleasmoutput/CBS1922 -l fungi -t 14 Searching for miniprot in the path where compleasm.py is located Searching for miniprot in the current execution path Searching for hmmsearch in the path where compleasm.py is located Searching for hmmsearch in the current execution path miniprot execute command: /data/volume_2/compleasm_kit/miniprot lineage: fungi_odb10 hmmsearch execute command: /data/volume_2/compleasm_kit/hmmsearch Traceback (most recent call last): File "/home/lmoret/miniconda3/envs/checker/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 3361, in get_loc return self._engine.get_loc(casted_key) File "pandas/_libs/index.pyx", line 76, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/index.pyx", line 108, in pandas._libs.index.IndexEngine.get_loc File "pandas/_libs/hashtable_class_helper.pxi", line 5198, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas/_libs/hashtable_class_helper.pxi", line 5206, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 'Target_species'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/lmoret/miniconda3/envs/checker/bin/compleasm", line 10, in sys.exit(main()) File "/home/lmoret/miniconda3/envs/checker/lib/python3.7/site-packages/compleasm.py", line 2534, in main args.func(args) File "/home/lmoret/miniconda3/envs/checker/lib/python3.7/site-packages/compleasm.py", line 2426, in run mr.Run() File "/home/lmoret/miniconda3/envs/checker/lib/python3.7/site-packages/compleasm.py", line 2142, in Run miniprot_alignment_parser.Run() File "/home/lmoret/miniconda3/envs/checker/lib/python3.7/site-packages/compleasm.py", line 1158, in Run self.Run_busco_mode() File "/home/lmoret/miniconda3/envs/checker/lib/python3.7/site-packages/compleasm.py", line 1234, in Run_busco_mode filtered_species = records_df["Target_species"].unique() File "/home/lmoret/miniconda3/envs/checker/lib/python3.7/site-packages/pandas/core/frame.py", line 3458, in getitem indexer = self.columns.get_loc(key) File "/home/lmoret/miniconda3/envs/checker/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 3363, in get_loc raise KeyError(key) from err KeyError: 'Target_species' (checker) 1 lmoret@ubuntudesktopc:/data/volume_2$

larsmoret avatar Nov 03 '23 15:11 larsmoret