A Python package for downsampling sequence alignment files
Project description
A Python package for downsampling sequence alignment files.
Installation
pydownsampler is available through pypi. To install, type:
pip install pydownsampler
Usage
$ pydownsampler (<file>) [-d <dcov>]
$ pydownsampler (<file>) [-d <dcov>] [-o <output>]
$ pydownsampler (<file>) [-c]
$ pydownsampler [-h] | [--help]
$ pydownsampler [-v] [--version]
Arguments and Options
Argument/ Option |
Description |
---|---|
-h, --help |
Show help message to screen. |
-v, --version |
Show version. |
<file> |
Input BAM/CRAM/SAM file |
-d, --downcoverage |
The coverage you want to downsample to (Required argument) |
-o, --output |
Output filename prefix (Optional) |
-c, --coverage |
Check file coverage |
Examples
# option 1 (default):
$ pydownsampler input.bam -d 10
In the example above, the file 'input.bam' will be downsampled to 10X coverage. The output filename will be 'input.Downsampled10X.bam'.
# option 2 (optional):
$ pydownsampler input.bam -d 10 -o downsampled
# check coverage of a BAM/CRAM/SAM file
$ pydownsampler input.bam -c
License
pydownsampler is generously distributed under The MIT License
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
pydownsampler-1.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for pydownsampler-1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62f5f65a0c1b9784dad2ba67562df11cb21ea50316fe6d7d2a1c8e450ee1bcc4 |
|
MD5 | 100565df6f509e9477dac90ad99707e4 |
|
BLAKE2b-256 | a91ef6fa39dc9480fa0bd86a622c48f1085ac96e49ce95a9ee06ad8b3efef3e3 |