Gu mode error
freitasla opened this issue · comments
Hello,
I am using ZOMBI to simulate some genomes in the Gu mode and I got this error message:
Simulating genomes. Time 0.0
Traceback (most recent call last):
File "/data/software/ZOMBI/Zombi.py", line 365, in <module>
Z.G(parameters_file, experiment_folder, advanced_mode)
File "/data/software/ZOMBI/Zombi.py", line 130, in G
gss.run_u()
File "/data/software/ZOMBI/GenomeSimulator.py", line 679, in run_u
self.advanced_evolve_genomes(current_time)
File "/data/software/ZOMBI/GenomeSimulator.py", line 1106, in advanced_evolve_genomes
self.make_inversion(i_e, lineage, time)
File "/data/software/ZOMBI/GenomeSimulator.py", line 2217, in make_inversion
affected_genes = chromosome.obtain_affected_genes(p)
File "/data/software/ZOMBI/GenomeSimulator.py", line 3182, in obtain_affected_genes
length = self.select_random_length(p_extension)
File "/data/software/ZOMBI/GenomeSimulator.py", line 3072, in select_random_length
return int(af.obtain_value(p))
File "/data/software/ZOMBI/AuxiliarFunctions.py", line 94, in obtain_value
handle = value.split(":")
AttributeError: 'float' object has no attribute 'split'
First I've simulated a species tree:
python Zombi.py T SpeciesTreeParameters.tsv Test1
Then I used this command to create the genome rates files:
python RateCustomizer.py G GenomeParameters.tsv Test1
Finally, the command who gave the error:
python Zombi.py Gu GenomeParameters.tsv Test1
Thanks!
Hello,
I just run those commands with the default SpeciesTreeParameters and GenomeParameters and it works fine.
Have you made modifications to any file in the CustomRates directory ?
Théo
Hello,
Thanks for your quick reply.
I did not change anything in the CustomRates directory. Also, I've used the same commands both in CentOS/MacOS and they returned the same previous error.
Thanks!
Could you show me the SpeciesTreeParameters.tvs and GenomeParameters.tsv files you are using ?
And did you clobe the last version of Zombi ?
Théo
Hello,
I cloned ZOMBI today and I am using the parameters files that came with ZOMBI. I just changed the extension to upload here.
hello,
Ok I found the issue. Contrary to what is stated in the wiki, geometric and exponential distribution are not implemented.
For now you can only use f fixed, u uniform, n normal and l log-normal distribution.
I will send a mail to the main developer to see the reason.
Théo
Hello,
I've made a modification in the code.
This should fix the issue.
Théo
Thanks for the prompt response Théo!
Hello,
It is the same that comes with ZOMBI.
Thank you!
Thank you! It's working now.