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 -c conda-forge -c maxibor 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.1.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file bamAlignCleaner-0.2.1.tar.gz
.
File metadata
- Download URL: bamAlignCleaner-0.2.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 534279bcefd736b9f239b47050a3e656edebe769850b46d69554d176d6b1e8ab |
|
MD5 | 811eeb96cd799c124ba93e8b49547759 |
|
BLAKE2b-256 | 9d3c869c4855212fc13c2d7c7634034e68d28be92941d1e3471000eec13e9eb7 |
File details
Details for the file bamAlignCleaner-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: bamAlignCleaner-0.2.1-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0124e69b83d4369b18748b3a70a3aca33faa22a39fc630992f6b61df6e2ed626 |
|
MD5 | 8d0bd6148eb3f069e2c77993350b1e6d |
|
BLAKE2b-256 | 988dec4fa44fdcfded718bc567f015326abdc65f82054502b657231479c55505 |