Closed ShaiberAlon closed 5 years ago
@meren, here is the problem:
$ sqlite3 03_PAN_FIVE_PAN/FIVE_TEST-PAN.db "select * from item_additional_data" | tail
122|GC_00000016|functional_homogeneity_index|1.0|int|default
123|GC_00000016|geometric_homogeneity_index|1.0|int|default
124|GC_00000022|functional_homogeneity_index|1.0|int|default
125|GC_00000022|geometric_homogeneity_index|1.0|int|default
126|GC_00000006|functional_homogeneity_index|1.0|int|default
127|GC_00000006|geometric_homogeneity_index|1.0|int|default
128|GC_00000007|functional_homogeneity_index|1.0|int|default
129|GC_00000007|geometric_homogeneity_index|1.0|int|default
130|GC_00000013|functional_homogeneity_index|1.0|int|default
131|GC_00000013|geometric_homogeneity_index|1.0|int|default
This fixes it so that I can do anvi-display-pan
sqlite3 03_PAN_FIVE_PAN/FIVE_TEST-PAN.db "UPDATE item_additional_data SET data_type='float' WHERE data_key LIKE 'geometric_homogeneity_index'"
sqlite3 03_PAN_FIVE_PAN/FIVE_TEST-PAN.db "UPDATE item_additional_data SET data_type='float' WHERE data_key LIKE 'functional_homogeneity_index'"
Oh, yes. This is the fix. But it is concerning we still need it :( I thought @ozcan had fixed it. Are you sure this is a pangenome generate from current or future master
?
I am sure. but @ozcan fixed a similar bug for layer_additional_data
, and here it is item_additional_data
.
layers and items are different things @meren.
Maybe that's why another fix is in order.
Aha. Sorry, I missed that.
I hoped the way it was fixed would have worked against all of these issues regardless of the table :)
I assume this is fixed now.
I tested now and indeed it is fixed.
I get the following error:
I tried using the fix suggested here: https://github.com/merenlab/anvio/issues/1007#issuecomment-429600866
And it didn't work.
To reproduce this, you can do the following easy steps:
metapan-workflow
.your-copy-of-the-anvio-repository/anvio/tests/
bash run_pangenomics_workflow_tests.sh sandbox/test-output
And you will get this error.
After running this you can go to
sandbox/test-output/workflow_test/03_PAN_FIVE_PAN/
, and there you will find the pan database and the genomes storage.