-
Notifications
You must be signed in to change notification settings - Fork 9
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
Some phy.nex
files have negative branch lengths
#70
Comments
Note workaround for project-gen3sis/R-package#70
Hi @mmore500 Thanks for reporting this 👋 I made an attempt at fixing this in #63 back in November last year, though checking the commit it looks like everything made it into the commit but the actual fix 🤦♂️ I attached the untested patch file (remove the .txt 🤦♂️ ). There is one (breaking) side effect: Species that survive the simulation will have an extinction time of -1 (assuming 0 is the last time step). This actually introduces a direct distinction between species dying in the last time step, and those surviving the simulation without having to check the number of species alive or if a given species lives on more than 0 cells. fix_extinction_times.patch.txt Does that work for a quick fix to test or do you need a branch/commit to pull from immediately? cheers 👋 |
Ah! Good to know. Fortunately, this issues isn't a problem for my use case, especially because it seems unlikely there's a larger underlying issue. So feel free to patch when convenient :) Thanks for the quick follow up! |
This problem is encountered using gen3sis v1.5.11
Here is an example where negative branch length -1 appears.
phy.nex
:To reproduce,
git clone https://github.com/mmore500/hstrat-evolutionary-inference cd hstrat-evolutionary-inference/pipeline-gen3sis/materials git checkout 05e1b6fe8b3e027694fe49f1c23b50767b668b6e RNG_SEED=32 TREATMENT=ecology ./run_simulation.sh
The landscape files will auto-build which may take 5 minutes.
The affected
phy.nex
file can then be found atdata/treatment=ecology+seed=32/ecology/phy.nex
.Note that you will need singularity (i.e., HPC-friendly Docker) installed.
This may installed on Linux via Nix as follows
curl -L https://nixos.org/nix/install | sh -s -- --daemon nix-env -iA nixpkgs.singularity
Note that this problem is likely affecting all gen3sis users because gen3sis inside the container is installed via CRAN, not a local version of the R package source.
The text was updated successfully, but these errors were encountered: