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

recipe for visualizing within vs between distances #44

Open
jairideout opened this issue Nov 19, 2014 · 2 comments
Open

recipe for visualizing within vs between distances #44

jairideout opened this issue Nov 19, 2014 · 2 comments

Comments

@jairideout
Copy link
Contributor

@gregcaporaso and I were chatting (offline and in scikit-bio/scikit-bio#764) about adding a recipe showing how to visualize "within" vs "between" distances using scikit-bio (DistanceMatrix), pandas, and seaborn's boxplots. This recipe would basically show how to reproduce QIIME's make_distance_boxplots.py script.

@gregcaporaso suggested using the existing 88 Soils dataset that's already included with the cookbook to discretize pH and plot within/between distance boxplots.

This recipe would also be handy because it'll show how to use seaborn's boxplots with scikit-bio data so that we can deprecate skbio.draw.boxplots (scikit-bio/scikit-bio#764). Finally, it may inspire future additions to the DistanceMatrix API for extracting within/between distances.

@johnchase
Copy link

@jairideout, I was working on doing just this the other day. It makes use of pandas, seaborn and DistanceMatrix from skbio. The code is very messy as I was just using it for visualizations and data munging. I apologize I don't have time at the moment to write up a recipe, though anyone should feel free to use the code I wrote. There is at least an example of what the within and between boxplots look like a little ways down the page

Here is the notebook

@jairideout
Copy link
Contributor Author

Awesome, thanks @johnchase!

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

No branches or pull requests

2 participants