API: ipyrad analysis tools
The ipyrad-analysis toolkit is a Python interface for taking the output files produced in a ipyrad assembly and running a suite of evolutionary analysis tools with convenient features for filtering for missing data, grouping individuals into populations, dropping samples, and more.
All of these tools share a common syntax making them easy to use without having to worry about creating different input files, or learn new file formats. They are designed for use within Jupyter notebooks, a tool for reproducible science. See the examples below.
# the analysis tools are a subpackage of ipyrad
import ipyrad as ipa
# a large suite of tools are available
tool = ipa.structure(data="./outfiles/data.snps.hdf5")
# all tools share a common syntax for setting params
# and distributing work in parallel.
tool.run()
- ipa.vcf_to_hdf5
- ipa.treemix
- ipa.pca
- Required software
- Required input data files
- Input data file and population assignments
- Enter data file and params
- Run PCA
- Run PCA and plot results.
- Subsampling SNPs
- Subsampling with replication
- Advanced: Imputation algorithms:
- Save plot to PDF
- Advanced: Missing data per sample
- Advanced: TSNE and other dimensionality reduction methods
- Advanced: UMAP dimensionality reduction
- ipa.raxml
- ipa.mrbayes
- ipa.tetrad
- ipyrad-analysis toolkit: STRUCTURE
- Cookbook
- ipa.sratools
- ipa.baba
- Load packages
- Set up and connect to the ipyparallel cluster
- A tree-based hypothesis
- Load in your .loci data file and a tree hypothesis
- Short tutorial: calculating abba-baba statistics
- Look at the results
- Plotting and interpreting results
- generating tests
- Creating a
baba
object - Linking tests to the baba object
- Other parameters
- Running the tests
- The results table
- Auto-generating tests
- Running the tests
- More about input file paths (i/o)
- (optional): root the tree
- Interpreting results
- Running 5-taxon (partitioned) D-statistics
- ipa.bucky
- ipa.window_extacter
- Required software
- Required input data files
- The scaffold table
- Selecting scaffolds
- Subsetting scaffold windows
- Filtering missing data with
mincov
- Filtering missing data with
imap
andminmap
- Subsample taxa with
imap
- Concatenate multiple scaffolds together
- Consensus reduction with
imap
- Write selected window to a file
- Accessing the output files