All Projects → evolbioinfo → pastml

evolbioinfo / pastml

Licence: GPL-3.0 license
Ancestor character reconstruction and visualisation for rooted phylogenetic trees

Programming Languages

python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to pastml

baltic
baltic - backronymed adaptable lightweight tree import code for molecular phylogeny manipulation, analysis and visualisation. Development is back on the evogytis/baltic branch (i.e. here).
Stars: ✭ 60 (+300%)
Mutual labels:  visualisation, phylogenetics
get phylomarkers
A pipeline to select optimal markers for microbial phylogenomics and species tree estimation using coalescent and concatenation approaches
Stars: ✭ 34 (+126.67%)
Mutual labels:  phylogenetics, maximum-likelihood
booster
booster.c3bi.pasteur.fr
Stars: ✭ 22 (+46.67%)
Mutual labels:  phylogenetics
gravity
R package that provides estimation methods for Gravity Models
Stars: ✭ 24 (+60%)
Mutual labels:  maximum-likelihood
downsample
Collection of several downsampling methods for time series visualisation purposes.
Stars: ✭ 50 (+233.33%)
Mutual labels:  visualisation
scenery
Flexible VR Visualisation for Volumetric and Geometric Data on the Java VM, powered by Kotlin and Vulkan
Stars: ✭ 107 (+613.33%)
Mutual labels:  visualisation
CometVisu
Repository for the CometVisu building automation visualisation.
Stars: ✭ 60 (+300%)
Mutual labels:  visualisation
workshop
Workshop: Micromagnetics with Ubermag
Stars: ✭ 19 (+26.67%)
Mutual labels:  visualisation
BuddySuite
Bioinformatics toolkits for manipulating sequence, alignment, and phylogenetic tree files
Stars: ✭ 106 (+606.67%)
Mutual labels:  phylogenetics
RNeXML
Implementing semantically rich NeXML I/O in R
Stars: ✭ 12 (-20%)
Mutual labels:  phylogenetics
ThreeDFace
3D Face Viewer
Stars: ✭ 35 (+133.33%)
Mutual labels:  visualisation
chord-transitions
Transitioning Chord Diagram Demo with Angular/D3
Stars: ✭ 38 (+153.33%)
Mutual labels:  visualisation
SubstitutionModels.jl
Biological Sequence Substitution Models for Julia
Stars: ✭ 13 (-13.33%)
Mutual labels:  phylogenetics
Neural-Network-Architecture-Diagrams
Diagrams for visualizing neural network architecture (Created with diagrams.net)
Stars: ✭ 194 (+1193.33%)
Mutual labels:  visualisation
CorBinian
CorBinian: A toolbox for modelling and simulating high-dimensional binary and count-data with correlations
Stars: ✭ 15 (+0%)
Mutual labels:  maximum-likelihood
Animations-with-Matplotlib
Using the matplotlib library to create some interesting animations.
Stars: ✭ 42 (+180%)
Mutual labels:  visualisation
notebook-examples
Example notebooks showing how to work with ECMWF services and data
Stars: ✭ 103 (+586.67%)
Mutual labels:  visualisation
shiny-ob-analytics
obAnalytics Shiny front-end
Stars: ✭ 59 (+293.33%)
Mutual labels:  visualisation
covince
Tool for visualising viral lineages in space and time. As seen on covid19.sanger.ac.uk and covglobe.org.
Stars: ✭ 12 (-20%)
Mutual labels:  visualisation
interactive-gp-visualization
Interactive visualization of Gaussian processes
Stars: ✭ 133 (+786.67%)
Mutual labels:  visualisation

PastML

PastML provides fast methods for Ancestral Character Reconstruction (ACR) and visualisation on rooted phylogenetic trees. Given a rooted tree and its node annotations, it can either visualise them as-is, or infer ancestral node states based on the tip states, with a selection of maximum likelihood and parsimonious methods. The result is then visualised as a zoomable html map.

DOI:10.1093/molbev/msz131 GitHub release PyPI version PyPI downloads Docker pulls

Article

Ishikawa SA, Zhukova A, Iwasaki W, Gascuel O (2019) A Fast Likelihood Method to Reconstruct and Visualize Ancestral Scenarios. Molecular Biology and Evolution, msz131.

How it works

For detailed description of the ACR methods, and visualization procedure used in PastML please visit our help page.

Try it online

Try PastML at pastml.pasteur.fr

Input data

As an input, one needs to provide a rooted phylogenetical tree in newick format, and a table containing tip states, in tab-delimited (by default) or csv format (to be specified with --data_sep , option).

Example

You can download HIV1-A in Albania data as an example. Let's assume that the tree and annotation files are in the Downloads folder, and are named respectively Albanian.tree.152tax.tre and data.txt.

The data.txt is a comma-separated file, containing tip ids in the first column, and Country in the second column, i.e.:

id Country
98CMAJ6932 Africa
98CMAJ6933 Africa
96CMAJ6134 Africa
00SEAY5240 WestEurope
... ...
02GRAY0303 Greece
97YUAF9960 EastEurope

Installation

There are 3 alternative ways to run pastml on your computer: with docker, singularity or in python3.

Run with docker

Basic usage

Once docker is installed, run the following command:

docker run -v <path_to_the_folder_containing_the_tree_and_the_annotations>:/data:rw -t evolbioinfo/pastml --tree /data/<tree_file.nwk> --data /data/<annotation_file.csv> --data_sep <separator_eg_,> --columns <column1 column2 ...> --html_compressed /data/<output_map.html>

For example, to reconstruct and visualise the ancestral Country states for Albanian data, one needs to run the following command:

docker run -v ~/Downloads:/data:rw -t evolbioinfo/pastml --tree /data/Albanian.tree.152tax.tre --data /data/data.txt --columns Country --html_compressed /data/Albanian_map.html --data_sep , 

This will produce a file Albanian_map.html in the Downloads folder, that can be viewed with a browser.

Help

To see advanced options, run

docker run -t evolbioinfo/pastml -h

Run with singularity

Basic usage

Once singularity is installed, run the following command:

singularity run docker://evolbioinfo/pastml --tree <path/to/tree_file.nwk> --data <path/to/annotation_file.csv> --columns <column1 column2 ...> --html_compressed <path/to/output/map.html> --data_sep <separator_eg_,>

For example, to reconstruct and visualise the ancestral Country states for Albanian data, one needs to run the following command:

singularity run docker://evolbioinfo/pastml --tree ~/Downloads/Albanian.tree.152tax.tre --data ~/Downloads/data.txt --columns Country --html_compressed ~/Downloads/Albanian_map.html --data_sep , 

This will produce a file Albanian_map.html in the Downloads folder, that can be viewed with a browser.

Help

To see advanced options, run

singularity run docker://evolbioinfo/pastml -h

Run in python3

Windows

For Windows users, we recommend installing pastml via Cygwin environment. First instal python3 and pip3 from the Cygwin packages. Then install pastml:

pip3 install pastml

All other platforms

You can install pastml for python with or without conda, following the procedures described below:

Installing with conda

Once you have conda installed create an environment for pastml with python3, here we name it pastmlenv:

conda create --name pastmlenv python=3

Then activate it:

source activate pastmlenv

Then install pastml in it:

pip install pastml

Installing without conda

Make sure that pyhon3 and pip3 are installed, then install pastml:

pip3 install pastml

Basic usage in a command line

If you installed pastml via conda, do not forget to first activate the dedicated environment (here named pastmlenv), e.g.

source activate pastmlenv

To run pastml:

pastml --tree <path/to/tree_file.nwk> --data <path/to/annotation_file.csv> --columns <column1 column2 ...> --html_compressed <path/to/output/map.html> --data_sep <separator_eg_,>

For example, to reconstruct and visualise the ancestral Country states for Albanian data, one needs to run the following command:

pastml --tree ~/Downloads/Albanian.tree.152tax.tre --data ~/Downloads/data.txt --columns Country --html_compressed ~/Downloads/Albanian_map.html --data_sep , 

This will produce a file Albanian_map.html in the Downloads folder, that can be viewed with a browser.

Help

To see advanced options, run:

pastml -h

Basic usage in python3

from pastml.acr import pastml_pipeline

# Path to the table containing tip/node annotations, in csv or tab format
data = "~/Downloads/data.txt"

# Path to the tree in newick format
tree = "~/Downloads/Albanian.tree.152tax.tre"

# Columns present in the annotation table,
# for which we want to reconstruct ancestral states
# (for Albanian data we only have one column, but multiple columns are also allowed)
columns = ['Country']

# Path to the output compressed map visualisation
html_compressed = "~/Downloads/Albanian_map.html"

# (Optional) path to the output tree visualisation
html = "~/Downloads/Albanian_tree.html"

pastml_pipeline(data=data, data_sep=',', columns=columns, name_column='Country', tree=tree,
                html_compressed=html_compressed, html=html, verbose=True)

Examples

See the examples folder for ideas :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].