-
Notifications
You must be signed in to change notification settings - Fork 143
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
anvi-merge error v3: KeyError: 'total_length' #632
Comments
I am getting this error when merging databases which were created in V4
The info outputs for the profile.db are:
&
|
I am getting the same error. All Anvi'o steps have been run in V4 (in a conda environment), although I've imported my own gene calls (prokka), functional annotations (prokka), and taxonomy information (DIAMOND blastp vs. RefSeq). Error:
Database info for mapping profile (1 of 4) created by anvi-profile:
Profile 2 of 4:
Profile 3 of 4:
Profile 4 of 4 (this seems to be where the error is coming from!):
Anvi'o version:
Let me know if you need any additional information. EDIT: I've realized that my error might be coming from legacy files leftover in my directory from when profile 4 of 4 was run via anvi-profile. The sample represented by profile 4 of 4 was the same sample that I was doing initial testing of anvi-profile on. I'm re-running anvi-profile on that sample and will let you know if that changes anything. |
@teilk48, we recently realized that this happens when there is something wrong with one or more of the single profile databases you're trying to merge. I.e., the We certainly need to address this issue by making sure anvi'o can identify broken single profiles. For instance a completed profiling run should result in a database that looks like this:
|
Thank you very much for the extensive insight, Jackson. This is very helpful. I will do something to address this issue now. |
Glad the bug report was helpful. After re-running
...and |
We've been hearing about the following merge error from some of our users, but we have not been able to reproduce it:
The error is likely due to trying to merge profile databases generated by an older version of anvi'o with the latest
v3
version. Usually we keep track of database changes very carefully, and we do not force our users to re-profile their data, but here we are the first time after more than a year.Is this happening to you? Please help us better understand the problem by answering these questions, and we will provide you with a script that will fix your profile databases:
Do you remember which version of anvi'o did you generate your profile databases you are trying to merge?
Can you please run this command on one of your anvi'o profile databases you are merging and include the output to your response:
sqlite3 PATH/TO/PROFILE.db 'select * from self;'
The text was updated successfully, but these errors were encountered: