Giter Site home page Giter Site logo

arleyc / areapd Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.23 MB

The package areaPD contains functions for calculating phylogenetic diversity (PD) for a set of geographic areas, calculating complementarity PD given a selected area, and drawing a Venn's diagram of PD within and between areas, given a phylogenetic tree and an assignment of samples (e.g., alleles, species, etc.) to areas.

License: Other

R 100.00%
phylogenetic diversity endemism complementarity

areapd's Introduction

areaPD

The functions in areaPD can calculate phylogenetic diversity (PD) and endemism PD for a set of geographic areas, the complementarity PD given a selected area, and constructing a Venn’s diagram of PD within and between areas, given one or more phylogenetic trees and an assignment of samples (e.g., alleles, species, etc.) to areas.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("arleyc/areaPD")

Example

library(areaPD)
#PD calculation for a set of areas and a given phylogeny
data("homodata")
data("homotree")
homoPD<-multiareaPD(homodata[1:5,],homotree)

limnoPD<-multiareaPD(limnodata[1:5,],limnotree)

contoPD<-multiareaPD(contodata[1:5,],contotree)

latiPD<-multiareaPD(latidata[1:5,],latitree)

#complementarity PD calculation for a set of areas given a phylogeny
#(in red) and a selected area (LCL, in green)
homoPDcomp<-compareaPD(homodata[1:5,],homotree,LCL)

#endemism PD calculation for a set of areas given a phylogeny
homoPDend<-endemismPD(homodata[1:5,],homotree)

#drawing a Venn's diagram for a set of five areas given four
#different phylogenetic trees
vennout<-makeVennPD(list(homoPD,limnoPD,contoPD,latiPD))

References

Faith, P. D. (1992) Conservation evaluation and phylogenetic diversity. Biological Conservation, 61, 1-10.

Faith, P. D. (2016) The PD phylogenetic diversity framework: linking evolutionary history to feature diversity for biodiversity conservation. In: Biodiversity Conservation and Phylogenetic Systematics, Topics in Biodiversity and Conservation, 14, DOI 10.1007/978-3-319-22461-9_3.

Faith, P. D., Reid, C. A. M., and Hunter, J. (2004) Integrating phylogenetic diversity, complementarity, and endemism for conservation assessment. Conservation Biology, 18, 255-261.

Moritz, C., and Faith, D. P. (1998) Comparative phylogeography and the identification of genetically divergent areas for conservation. Molecular Ecology, 7, 419-429.

Citation

Camargo, A., Elgue, E., Fernandez, F., Lima, L., and Maneyro, R. (2023) Conservation prioritization of the northern hills of Uruguay based on the intra-specific phylogenetic diversity of frogs and lizards. Journal for Nature Conservation, 75, 126468. doi: 10.1016/j.jnc.2023.126468

areapd's People

Contributors

arleyc avatar

Watchers

 avatar

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.