Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when Writing orthogroups to file #375

Closed
wuxiaopei0509 opened this issue Apr 26, 2020 · 1 comment
Closed

error when Writing orthogroups to file #375

wuxiaopei0509 opened this issue Apr 26, 2020 · 1 comment

Comments

@wuxiaopei0509
Copy link

Dear, develop
I install Orthofinder by conda and the orthofinder version is 2.3.11.When the blastp procedure runs over and proceeds to orthogroups,it stopped with the following error:
Writing orthogroups to file

Traceback (most recent call last):
File "/home/wuxiaopei/miniconda2/envs/OrthoFinder/bin/scripts_of/main.py", line 226, in WriteOrthogroupFiles
idExtract = util.FirstWordExtractor(idsFilename)
File "/home/wuxiaopei/miniconda2/envs/OrthoFinder/bin/scripts_of/util.py", line 205, in init
raise RuntimeError("A duplicate accession was found using just first part: % s" % accession)
RuntimeError: A duplicate accession was found using just first part: BG8803123-T1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/wuxiaopei/miniconda2/envs/OrthoFinder/bin/orthofinder", line 7, in
main(args)
File "/home/wuxiaopei/miniconda2/envs/OrthoFinder/bin/scripts_of/main.py", line 1684, in main
DoOrthogroups(options, speciesInfoObj, seqsInfo)
File "/home/wuxiaopei/miniconda2/envs/OrthoFinder/bin/scripts_of/main.py", line 1347, in DoOrthogroups
idsDict = MCL.WriteOrthogroupFiles(ogs, [files.FileHandler.GetSequenceIDsFN()], resultsBaseFilename, clustersFilename_pairs)
File "/home/wuxiaopei/miniconda2/envs/OrthoFinder/bin/scripts_of/main.py", line 235, in WriteOrthogroupFiles
print(error.message)
AttributeError: 'RuntimeError' object has no attribute 'message'
Thank you so much!

@davidemms
Copy link
Owner

Hi

Thanks for reporting this. It was caused by the change to python 3. I have submitted a fix to github. I think you'll be able to run the new code by downloading it and then running the new code from within your conda environment:

python path_to_new_code/orthofinder.py

All the best
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants