Skip to content
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

Allow extinct species without extinction dates #126

Closed
hyanwong opened this issue Sep 11, 2018 · 3 comments
Closed

Allow extinct species without extinction dates #126

hyanwong opened this issue Sep 11, 2018 · 3 comments
Assignees

Comments

@hyanwong
Copy link
Member

At the moment, we identify extinct species by the fact that their entry in the ordered_leaves table has a positive floating point number (in millions of years) in the extinction_date column (there are only 3 such leaves at the moment). Species that are not extinct have NULL in that column.

The new version of the OpenTree will include extinct taxa, but will not contain their extinction dates. We need a way to mark taxa as extinct but with no date. We could possibly do this by using a placeholder value (annoyingly, mySQL doesn't allow NaN, +inf, or -inf, so a suggested placeholder would either be a number larger than 5000 (as they cannot be older than 5000 million years ago, the age of the earth), or possibly a negative number (e.g. -1e4)

@hyanwong
Copy link
Member Author

My inclination is to use -1e4 and check for branch lengths < -5e3. It used to be the case that I used negative branch lengths to indicate uncertain taxon placement (see tree in OZprivate/data/OZTreeBuild/AllLife/BespokeTree/include_files/Apusozoa_plus.PHY ), but I'm not sure what the code does with negative branch lengths now.

@hyanwong
Copy link
Member Author

hyanwong commented Sep 12, 2018

It looks like these are simply ignored, and the length set to 0 (indicating a polytomy) -

@hyanwong
Copy link
Member Author

Started coding on the Extinct-taxa branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant