Giter Site home page Giter Site logo

pxbd time about phyx HOT 11 CLOSED

fephyfofum avatar fephyfofum commented on September 15, 2024
pxbd time

from phyx.

Comments (11)

josephwb avatar josephwb commented on September 15, 2024

Death was cast to an int in processing cmd line args; changed to float. I don't think this was the problem responsible for neg branch lengths, but I cannot recreate the problem now. However, do get seg fault on some parameter combinations (e.g. ./pxbd -e 10 -b 0.5 -t 1). Perhaps allow -e OR -t, not both.

from phyx.

blackrim avatar blackrim commented on September 15, 2024

agreed about OR. hm that could be it. lets close and open again when the problem comes back.

from phyx.

blackrim avatar blackrim commented on September 15, 2024

Still getting a bunch of negative branch lengths

from phyx.

josephwb avatar josephwb commented on September 15, 2024

Do you have an example that will generate this (b, d, e/t, and seed)?

from phyx.

blackrim avatar blackrim commented on September 15, 2024

how do you mean? birth death extant time and seed? can only do birth death
time seed or birth death extant seed
should be pxbd -b 1 -d 0.1 -t 5 -s 1 or pxbd -b 1 -d 0.1 -e 5 -s 1

On Tue, Jun 23, 2015 at 10:55 AM, Joseph W. Brown [email protected]
wrote:

Do you have an example that will generate this (b, d, e/t, and seed)?


Reply to this email directly or view it on GitHub
#2 (comment).

from phyx.

josephwb avatar josephwb commented on September 15, 2024

Yeah, the "e/t" was supposed to mean e or t.

I just meant a combination that generates negative branch lengths so it could be identified and fixed.

from phyx.

blackrim avatar blackrim commented on September 15, 2024

Oh, I see. I don't have an example that does that.

On Tue, Jun 23, 2015 at 11:27 AM, Joseph W. Brown [email protected]
wrote:

Yeah, the "e/t" was supposed to mean e or t.

I just meant a combination that generates negative branch lengths so it
could be identified and fixed.


Reply to this email directly or view it on GitHub
#2 (comment).

from phyx.

josephwb avatar josephwb commented on September 15, 2024

Ok, I can set up a loop to try and find an example.

from phyx.

josephwb avatar josephwb commented on September 15, 2024

I tried a bunch of iterations of:

./pxbd -b 0.5 -d 0.45 -e 10000 -o oot.tre && grep ":-" oot.tre

(including different parameter values) and cannot recreate the problem.

from phyx.

josephwb avatar josephwb commented on September 15, 2024

pxbd now has a nreps option:

./pxbd -h
Birth-death simulator.

Usage: pxbd [OPTION]... 

 -e, --extant=INT    number of extant species, alt to time
 -t, --time=INT      depth of the tree, alt to extant
 -b, --birth=DOUBLE  birth rate, default=1
 -d, --death=DOUBLE  death rate, default=0
 -n, --nreps         number of replicates, default=1
 -o, --outf=FILE     output file, stout otherwise
 -s, --showd         show dead taxa
 -x, --seed=INT      random number seed, clock otherwise
     --help          display this help and exit
     --version       display version and exit

This should help in the search for negative edge lengths. However, I've simulated a ton and have not hit anything yet.

from phyx.

josephwb avatar josephwb commented on September 15, 2024

I think this is behaving correctly. Closing.

from phyx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.