Git Product home page Git Product logo

Comments (3)

shawnlaffan avatar shawnlaffan commented on June 21, 2024

Do you mean PD for all taxa in a sample? If so then that's pretty simple to calculate.

BTW, you might also be interested in some of the per-branch indices for PD clade contribution and potential loss.
https://github.com/shawnlaffan/biodiverse/wiki/Indices#pd-clade-contributions
https://github.com/shawnlaffan/biodiverse/wiki/Indices#pd-clade-loss
https://github.com/shawnlaffan/biodiverse/wiki/Indices#pd-clade-loss-ancestral-component

from phylonext.

louisehendrickx avatar louisehendrickx commented on June 21, 2024

Yes, indeed: PD for all taxa in a sample. How should it be calculated then?

from phylonext.

shawnlaffan avatar shawnlaffan commented on June 21, 2024

There are several ways, but if it is to be done within the phylonext framework then it could be a case of generating a set of dummy spatial units, where each unit has the taxa of interest for each sample.

Another approach is to use text groups. So if you already have a field in your data to denote the sample name then you can set the cellsize to be -1. This is then treated as an exact match. Actually, this is how the phylonext system uses the H3 hexagons so it should be relatively straightforward. @vmikk is the authoritative source for the system, so hopefully can comment further here.

Mapping the data is then a case of using a database join to the spatial units based on the sample name, assuming the samples are spatial. Otherwise the table will likely be all that is needed for further calculations.

from phylonext.

Related Issues (17)

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.