Closed ShuaiNIEgithub closed 2 years ago
Dear Shuai NIE,
Thank you for the report. I know what's going on. We've mostly used this script to test Agora against simulated data, where the ancestral genomes are known, and are used to tell whether the orthology groups have 'names' alongside the gene content. The script shouldn't expect the ancestral genes to be always present.
Could you please try the branch bugfix/4 ? On it, I can run this command, and it will just skip the files that are not present.
$ src/ALL.reformatGeneFamilies.py example/data/Species.nwk example/data/orthologyGroups/orthologyGroups.%s.list.bz2 -IN.genesFiles=example/data/genes/genes.%s.list.bz2 -OUT.ancGenesFiles=example/results/ancGenes/all/ancGenes.%s.list.bz2 -OUT.genesFiles=example/results/genes/genes.%s.list.bz2 > example/results/GeneTreeForests.withAncGenes.nhx.bz2
--------------------------------------------------------------------------------
| Key | Values |
--------------------------------------------------------------------------------
| speciesTree | example/data/Species.nwk |
| orthologyGroups | example/data/orthologyGroups/orthologyGroups.%s.list.bz2 |
| IN.genesFiles | example/data/genes/genes.%s.list.bz2 |
| OUT.ancGenesFiles | example/results/ancGenes/all/ancGenes.%s.list.bz2 |
| OUT.genesFiles | example/results/genes/genes.%s.list.bz2 |
--------------------------------------------------------------------------------
Renaming the genes of M1 ... 21160 OK
Renaming the genes of M2 ... 22697 OK
Renaming the genes of M3 ... 19466 OK
Renaming the genes of M4 ... 16736 OK
Renaming the genes of M5 ... 17805 OK
Renaming the genes of A0 ... SKIPPING
Renaming the genes of A1 ... SKIPPING
Renaming the genes of A2 ... SKIPPING
Renaming the genes of A3 ... SKIPPING
Updating the ancestral families of A0 ... adding names ... 16274 OK
Updating the ancestral families of A1 ... adding names ... 17339 OK
Updating the ancestral families of A2 ... adding names ... 15569 OK
Updating the ancestral families of A3 ... adding names ... 18119 OK
Once you confirm it works, I'll move the commit to the main branch.
Regards, Matthieu
Hi, Matthieu
Thank you for your prompt reply. I tested the new “ALL.reformatGeneFamilies.py”, and “agora-basic.py”, and they both worked successfully!
Once again, I would like to express my gratitude to you.
Bests, Shuai
Great, thank you for confirming. I've merged the changes to master
Have a great day, Matthieu
Hi, there
I have successfully installed Agora. And I got an error while running first step of "agora-basic.py" with the example data. Could you please give me some advice for running it?
Bests.
This is my code:
The ERROR: