DIPPER (DIstance-based Phylogenetic PlacER) is a tool for ultrafast and ultralarge phylogenetic reconstruction on GPUs, designed to maintain high accuracy with a minimal memory footprint. DIPPER introduces several innovations, including a divide-and-conquer strategy, a new placement algorithm, and an on-the-fly distance calculator that dynamically enables selective distance computation. DIPPER supports tree reconstruction with zero violations even from non-additive distance matrices and a faster heuristic mode with significantly fewer violations than baseline tools.
NOTE: DIPPER is currently supported on systems with NVIDIA GPUs only. Support for additional platforms, including AMD GPUs and CPU-only options for x86-64 and ARM64 architecture, will be added soon. Stay tuned!
To use DIPPER in a docker container, users can create a docker container from a docker image, by following these steps
## Note: If the Docker image already exists locally, make sure to pull the latest version using
## docker pull swalia14/dipper:latest
## If the Docker image does not exist locally, the following command will pull and run the latest version
docker run -it --gpus all swalia14/dipper:latest
# Insider docker container
dipper --help
Docker container with the preinstalled DIPPER program can also be built from a Dockerfile by following these steps.
git clone https://github.com/TurakhiaLab/DIPPER.git
cd DIPPER/docker
docker build -t dipper .
docker run -it --gpus all dipper
# Insider docker container
dipper --help
Users without sudo access are advised to install DIPPER via Docker Image or Dockerfile.
Step 1: Clone the repository
git clone https://github.com/TurakhiaLab/DIPPER.git
cd DIPPER
Step 2: Install dependencies (requires sudo access)
DIPPER depends on the following common system libraries, which are typically pre-installed on most development environments:
- wget
- cmake
- build-essential
- libboost-all-dev
- libtbb-dev
For Ubuntu users with sudo access, if any of the required libraries are missing, you can install them with:
sudo apt install -y wget cmake build-essential libboost-all-dev libtbb-dev
Step 3: Build DIPPER
cd install
chmod +x installUbuntu.sh
./installUbuntu.sh
cd ../
Step 4: The DIPPER executable is located in the bin
directory and can be run as follows:
cd bin
./dipper --help
For more information about DIPPER's options and instructions, see wiki for more details.
Note: All the files in the examples below can be found in the DIPPER/dataset
.
Enter into the bin directory (assuming $DIPPER_HOME
directs to the DIPPER repository directory). For the docker container $DIPPER_HOME
is /home/DIPPER
cd $DIPPER_HOME/bin
./dipper -h
DIPPER supports de-novo construction of phylogenies from unaligned/aligned sequences in FASTA format and distance matrix in PHYLIP format.
In default mode, DIPPER constructs phylogeny using:
- Conventional NJ for sequences/tips < 30,000
- Placement technique for sequences/tips >= 30,000 and < 1,000,000
- Divide-and-conquer technique for sequences/tips >= 1,000,000
Usage syntax
./dipper -i r -o t -I <path to unaligned sequences FASTA file> -O <path to output file>
Example
./dipper -i r -o t -I ../dataset/t2.unaligned.fa -O tree.nwk
Usage syntax (using JC model)
./dipper -i m -o t -d 2 -I <path to aligned sequences FASTA file> -O <path to output file>
Example
./dipper -i m -o t -d 2 -I ../dataset/t1.aligned.fa -O tree.nwk
Usage syntax
./dipper -i d -o t -I <path to distance matrix PHYLIP file> -O <path to output file>
Example
./dipper -i d -o t -I ../dataset/t2.phy -O tree.nwk
DIPPER allows users to construct phylogeny using the forced placement technique by setting the -m
option to 1
. Below we provide a syntax and an example for input unaligned sequences, but DIPPER also supports aligned sequences and distance matrix as input.
Usage syntax
./dipper -i r -o t -m 1 -I <path to unaligned sequences FASTA file> -O <path to output file>
Example
./dipper -i r -o t -m 1 -I ../dataset/t2.unaligned.fa -O tree.nwk
DIPPER allows users to construct phylogeny using the forced divide-and-conquer technique by setting the -m
option to 3
. Below we provide a syntax and an example for input unaligned sequences, but DIPPER also supports aligned sequences and distance matrix as input.
Usage syntax
./dipper -i r -o t -m 3 -I <path to unaligned sequences FASTA file> -O <path to output file>
Example
./dipper -i r -o t -m 3 -I ../dataset/t2.unaligned.fa -O tree.nwk
DIPPER allows users to add tips to an existing backbone tree using the placement technique. It requires tip sequences from the backbone tree and input query sequences to be provided in a single file (FASTA format), along with the input tree in Newick format.
Usage syntax
./dipper -i r -o t -m 1 --add -I <path to unaligned/aligned sequences FASTA file (containing backbone tree tip sequences and query sequences)> -O <path to output file> -t <path to input tree>
Example
./dipper -i r -o t -m 1 --add -I ../dataset/t2.unaligned.fa -O tree.nwk -t ../dataset/backbone.nwk
We welcome contributions from the community to enhance the capabilities of DIPPER. If you encounter any issues or have suggestions for improvement, please open an issue on DIPPER GitHub page. For general inquiries and support, reach out to our team.
TBA.