Removes unaligned references in BAM alignment file
Project description
bamAlignCleaner
A simple utility tool to remove references with no aligned reads in a bam
/cram
file
Installation
- with pip
pip install bamAlignCleaner
- with conda
conda install -c bioconda bamAlignCleaner
Usage
- Quick start
bamAlignCleaner input.bam
- Advanced
bamAlignCleaner --output output.bam --method parse input.bam
Help
$ bamAlignCleaner --help
Usage: bamAlignCleaner [OPTIONS] BAM
bamAlignCleaner: removes unaligned references in BAM/CRAM alignment files
* Homepage: https://github.com/maxibor/bamAlignCleaner
* Author: Maxime Borry
BAM: BAM alignment file (sorted, and optionally indexed)
Options:
--version Show the version and exit.
-m, --method [parse|index_stat]
unaligned reference removal method
[default: parse]
-o, --output FILE filtered bam file [default: STDOUT]
--help Show this message and exit.
Methods
bamAlignCleaner uses either one of the two following methods to remove references not having reads mapped against them.
- The
parse
method goes through each read of the alignment file and keeps the references if the read maps to it. This method should be faster if you have more references than reads. - The
check_index
checks index for the number of mapped reads to each reference. This method should be faster if you have more reads than references.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bamAlignCleaner-0.2.2.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file bamAlignCleaner-0.2.2.tar.gz
.
File metadata
- Download URL: bamAlignCleaner-0.2.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee0a0f1f9392243c15da8ffc082d267ba4609fe49d597591f712211c3106e379 |
|
MD5 | bf3a9b88189760ef2d09fa0a16b2da49 |
|
BLAKE2b-256 | ce61a11d70e993fd7e84baa9164be9a8ea044dd206a2d97321ece03efc7f9361 |
File details
Details for the file bamAlignCleaner-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: bamAlignCleaner-0.2.2-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 414028afee162fdab380a6f6d6b5b2c2f7a6ecd10476cc25e164e4f098980cca |
|
MD5 | 6841025c27940e882950d0d7711d19b7 |
|
BLAKE2b-256 | 50cde3e7a1fe65904e2d292d2dbcb4a9306b02bdfd0c506c856a4a003dc900e3 |