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

Faith's Phylogenetic Diversity (PD) index supported on Phyloseq? #661

Closed
JPBalmonte opened this issue Aug 30, 2016 · 5 comments
Closed

Faith's Phylogenetic Diversity (PD) index supported on Phyloseq? #661

JPBalmonte opened this issue Aug 30, 2016 · 5 comments

Comments

@JPBalmonte
Copy link

Hi,

Could the Faith's Phylogenetic Diversity (PD) index be one day supported on Phyloseq? It is included in the output of the QIIME alpha diversity function, and would be very informative interpreted by itself as well as alongside the other diversity indices.

Thanks!
JP Balmonte

@spholmes
Copy link
Contributor

JP
I always just call up the picante package's implementation, just to try to
always use things that already exist in R.

Susan

On Tue, Aug 30, 2016 at 1:32 PM, JP Balmonte [email protected]
wrote:

Hi,

Could the Faith's Phylogenetic Diversity (PD) index be one day supported
on Phyloseq? It is included in the output of the QIIME alpha diversity
function, and would be very informative interpreted by itself as well as
alongside the other diversity indices.

Thanks!
JP Balmonte


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#661, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABJcvSFM14R7U98GfXBhxJLgUxDXnCBFks5qlCLFgaJpZM4JweQe
.

Susan Holmes
Professor, Statistics and BioX
John Henry Samter Fellow in Undergraduate Education
Sequoia Hall,
390 Serra Mall
Stanford, CA 94305
http://www-stat.stanford.edu/~susan/

@mghanbari
Copy link

https://cran.r-project.org/web/packages/picante/picante.pdf
The pd function returns two values for each community, Faith's PD and species richness (SR).
library(picante)

Calculate Faith's PD

comm.pd <- pd(comm, phy)
head(comm.pd)

@joey711 joey711 closed this as completed Dec 29, 2016
@colinbrislawn
Copy link

This could be easily added to the estimate_richness() function.

  if( "FaithPD" %in% measures){
  	outlist <- c(outlist, list(FaithPD = t(picante::pd(samp = OTU, tree = phy_tree(physeq), include.root = F))[1,] ))
  }

Are you accepting code PRs, or just documentation changes? I could fold this into #575, if folks are interested.

@jjsolano
Copy link

The function estimate_pd from btools package you can use the phyloseq object to estimate the Faith's Phylogenetic Diversity (PD) index:

estimate_pd(phyloseq.object)

@kusandeep
Copy link

kusandeep commented Oct 21, 2021

The function estimate_pd from btools package you can use the phyloseq object to estimate the Faith's Phylogenetic Diversity (PD) index:

estimate_pd(phyloseq.object)

Hi, this worked but how can we plot it with treatment..? or perhaps combine it with plot_richness output from phyloseq?

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

7 participants