Closed apascualgarcia closed 4 years ago
It looks like the code is failing on the construction of the additive log-ratio transformation (ALR). I suspect that one of the "denoised" relative abundances from the previous step is being rounded to zero, which would cause the "divide by zero encountered in log" warning. The downstream warnings follow as a result. If you're willing to email your OTU table to me (don't post it here), I will look into the issue. Alternatively, you can bypass the denoising step altogether using the --use-pseudo-counts flag.
I should say that the cLV experiments were from an earlier revision of the manuscript, and were replaced by a different set of experiments for the final version. We haven't thoroughly evaluated how the denoised estimates impact cLV estimates. Nonetheless, I'm happy to chat about this component if it is something you're interested in.
I will prepare the tables for you, thanks for your help.
I added a check for zero relative abundances that replaces them with a small value. This should fix the error you're getting.
It looks it's having an issue to find timeout.py
now:
Traceback (most recent call last): File "/main.py", line 10, in
from src.compositional_lotka_volterra import CompositionalLotkaVolterra, choose_denom File "src/compositional_lotka_volterra.py", line 6, in from src.timeout import * ModuleNotFoundError: No module named 'src.timeout'
Yes, this was my fault. I removed this piece of code, but forgot to remove the import. It should be fixed now.
It is working now, thanks!
Hi @tyjo,
I am trying to estimate LV parameters from the output of
python main.py estimate
and it gives me first some warnings:Then it starts estimating the regularization parameter, and when it finishes it halts with the following error:
which sounds like a format error but I do not see any obvious problem. The head of the file is (time runs up to 8.5 every 0.5, three replicates per time point):
Thanks in advance