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
parsemethod 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_indexchecks index for the number of mapped reads to each reference. This method should be faster if you have more reads than references.
Cite
@software{maxime_borry_2022_6344905,
author = {Maxime Borry},
title = {maxibor/bamAlignCleaner: bamAlignCleaner},
month = mar,
year = 2022,
publisher = {Zenodo},
version = {0.2.2},
doi = {10.5281/zenodo.6344904},
url = {https://doi.org/10.5281/zenodo.6344904}
}
Metadata
Release files for bamAlignCleaner 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bamaligncleaner-0.4.tar.gz | 16.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bamaligncleaner-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.6 kB
Release files / bamaligncleaner-0.4.tar.gz
| Download URL | bamaligncleaner-0.4.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2634a2d645faea292f77953d174d1a4f33f00ff9a7e7997470ccb13f4693d87
|
|
BLAKE2b-256 checksum How to use checksums |
f62842152163fd40f8a609ba029d61c546581b1c1df17c025772e0db6f55f550
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / bamaligncleaner-0.4-py3-none-any.whl
| Download URL | bamaligncleaner-0.4-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df5c495608cae5a7ab1b9496636b18fd1a64e580dfe4c3122eaab77eebad4739
|
|
BLAKE2b-256 checksum How to use checksums |
b59363c5bdc95a0bcacffbcee9158dcbef7c561016190cd95a77da2874aa86f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Security for bamAlignCleaner 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.