Damage parameter estimation for ancient DNA
Project description
Pydamage, is a Python software to automate the process of contig damage identification and estimation. It uses a process akin to a likelihood ratio test to attempt to discriminate between truly ancient, and modern contigs originating from sample contamination.
Install
Pydamage is not yet on pypi nor conda, but you can already install it using pip, provided that you have access to this repository.
Install dependencies in conda environment
git clone git@github.com:maxibor/pydamage.git
cd pydamage
conda env create -f environment.yml
conda activate pydamage
Install pydamage
- from source
python setup.py install
- from Github using pip
pip install git+ssh://git@github.com/maxibor/pydamage.git
Documentation
Help
$ pydamage --help
Usage: pydamage [OPTIONS] BAM
PyDamage: Damage parameter estimation for ancient DNA
Author: Maxime Borry
Contact: <borry[at]shh.mpg.de>
Homepage & Documentation: github.com/maxibor/pydamage
BAM: path to BAM/SAM/CRAM alignment file
Options:
--version Show the version and exit.
-w, --wlen INTEGER Window length for damage modeling [default: 20]
-p, --process INTEGER Number of processes [default: 2]
-m, --mini INTEGER Minimum reads aligned to consider reference
[default: 2000]
-c, --cov FLOAT Minimum coverage to consider reference [default:
0.5]
-s, --show_al Show alignments representations
-pl, --plot Make the damage plots
--verbose Verbose mode
-o, --outdir PATH Output directory [default: pydamage_results]
--force Force overwriting of results directory
--help Show this message and exit.
pydamage logic:
n_reads >=minimum reads OR coverage >= minimum coverage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pydamage-0.1.tar.gz
(10.9 kB
view details)
Built Distribution
pydamage-0.1-py3-none-any.whl
(25.0 kB
view details)
File details
Details for the file pydamage-0.1.tar.gz
.
File metadata
- Download URL: pydamage-0.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca9f2195b05f8975e6e1d08c3dd7168c5db5804a4ef2b7864e628be8440e6c0c |
|
MD5 | d6a70e5def9171c408c935ad77033f83 |
|
BLAKE2b-256 | 1c72fb361b46221fd8d5f4864c3d112fd998861adc4986fbea76bcc64a15ffbd |
Provenance
File details
Details for the file pydamage-0.1-py3-none-any.whl
.
File metadata
- Download URL: pydamage-0.1-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d312b03b9895ca9ff4fd29d47fa87cd0012ced60b3a2156e94dad79949ab46a1 |
|
MD5 | 5bd490e35e02f3f42fa4da46e9635b40 |
|
BLAKE2b-256 | a1f875bab6dcbb698fe687fa2eecbee6b0546dd5fd0fd68fd283c9cf0d680eda |