README.md
May 26, 2026 ยท View on GitHub
#Platypus
The Platypus variant caller. This version fully supports Python 3. The original repository is https://github.com/andyrimmer/Platypus.
Installation
You can install and run Platypus using one of the following two methods:
Option 1: Using Docker (Recommended)
Using Docker is the easiest way to ensure all dependencies (HTSlib, Cython, Numpy, Pysam) are correctly configured.
-
Clone the repository:
git clone [https://github.com/IvantheDugtrio/Platypus.git](https://github.com/IvantheDugtrio/Platypus.git) cd Platypus -
Build the image:
docker build -t platypus:latest . -
Run Platypus:
docker run -it --rm -v $(pwd):/data platypus:latest python3 Platypus.py --help
Option 2: Build from Source
If you prefer to run it natively on your machine, ensure you meet the prerequisites below:
System Requirements
- Python: 3.10+
- Compiler:
gcc/g++9.0 or greater (build-essential) - Libraries: HTSlib 1.15+ (1.23.1 is recommended)
- Python packages:
cython,numpy,pysam(Install viapip install -r requirements.txt).
Build Steps
-
Install HTSlib:
Download from HTSlib Web site.
cd htslib-x.x.x ./configure && make && sudo make installNote: If installed in a non-standard location, ensure you export
C_INCLUDE_PATH,LIBRARY_PATH, andLD_LIBRARY_PATHaccordingly. -
Build Platypus:
git clone [https://github.com/huynguyen250896/Platypus.git](https://github.com/huynguyen250896/Platypus.git) cd Platypus pip install -r requirements.txt make clean make PYTHON=python3
Execution
Once installed, you can run Platypus using:
python3 Platypus.py --bamFiles=BAM.bam --refFile=REF.fa --output=variants.vcf
**Note:** For legacy support or older environments (Python 2.7), please refer to the original repository: https://github.com/andyrimmer/Platypus.