biocore / biocore/gemelli

Are species scores appropriate to calculate when using RPCA using vegan's dbRDA+sppscores

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
92
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Hey @cameronmartino,

In the past I've used QIIME 2 to create the species/sites biplot using gemelli's phylo-/RPCA. This biplot is of course unconstrained by env variables, which leaves much to desire, so I've been playing with importing these into R to work with RDA.

The choices are to either import the rclr transformed table (actually you can do this transform directly in vegan now) and use `vegan::rda()` or import the distance matrix and use `dbrda`. I'm inclined to use the latter approach as I'm guessing that the additional matrix completion layer gemelli adds does improve the signal. Is this first assumption right?

If so, then the 2nd challenge is that unlike the `capscale` function `dbrda` doesn't calculate species scores, you have to add those after using `sppscores`. There was a nice discussion about why this is the case [here](https://github.com/vegandevs/vegan/issues/254) with regards to the limitations of calculating these species scores. One line worth highlighting here wrt to the scores:

> It is strictly correct only with Euclidean distances and can be misleading with other distances (even metric ones)

From what I gather the phylo-/RPCA would be considered Euclidean and so ok to calculate species scores with. Is my speculation correct here, meaning we can technically get an RPCA triplot! or, is there something I'm missing here?

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no repository files, tests, or entry points. Review gemelli's RPCA distance properties alongside vegan's dbrda and sppscores documentation and the linked vegan discussion; done means documenting whether species scores and an RPCA triplot are mathematically appropriate.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, r
Domain
data
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.