Skip to content

caporaso-lab/gut-to-soil-ridgeline-plots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Using analysis.py

This script takes a metadata file and a distance matrix, and outputs per-bucket json files that contain per-comparison distances. To use:

python analysis.py <output-directory>

The locations of the metadata file and distance matrix are specified within the script. See the calculate_distances function in analysis.py for detailed descriptions of the available parameters.

Generating the figures

In src/lib/Container.svelte change the beginDir and endDir variables to point to the locations of the output files generated by analysis.py.

Now, navigate to the distances-figs directory. Next, run npm install, then run npm run dev. Now navigate to the url indicated in the terminal to view the figures. Individual plots or the entire faceted plot can be downloaded by using the buttons at the bottom of the page.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published