Skip to content

Pydownsampler is a Python package for downsampling sequence alignment (BAM/CRAM/SAM) files.

License

Notifications You must be signed in to change notification settings

LindoNkambule/pydownsampler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pydownsampler

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

Authors

Lindokuhle Nkambule

Scott Hazelhurst

License

pydownsampler is generously distributed under The MIT License

About

Pydownsampler is a Python package for downsampling sequence alignment (BAM/CRAM/SAM) files.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages