Installation and Usage of the bamnado Package
Installation
To install the bamnado package, follow these steps:
-
Install Rust: Ensure you have Rust installed on your system. You can install it using
rustup:| -
Clone the Repository: Clone the
bamnadorepository to your local machine: -
Install: Ensure you have Python and
maturininstalled:Then, build and install the Python package:
Usage
The bamnado package provides a command-line interface (CLI) for processing BAM files. Below is an example of its usage.
Example: Filtering Reads from a BAM File
Command
The following command filters reads from a BAM file based on specific criteria and writes the coverage to a bedGraph file:
Explanation of Options
--bam: Path to the input BAM file.--output: Path to the output file (e.g.,bedGraphorBigWig).--bin-size: Size of genomic bins for coverage calculation.--norm-method: Normalization method (raw,rpkm, orcpm).--scale-factor: Scaling factor for normalization.--use-fragment: Use fragments instead of individual reads for counting.--proper-pair: Include only properly paired reads.--min-mapq: Minimum mapping quality for reads to be included.--min-length: Minimum read length.--max-length: Maximum read length.--blacklisted-locations: Path to a BED file specifying regions to exclude.--whitelisted-barcodes: Path to a file with barcodes to include.
Output
The output file (output.bedgraph) will contain the normalized coverage data for the BAM file, filtered based on the specified criteria.
Additional Commands
Multi-BAM Coverage
To calculate coverage from multiple BAM files:
Split BAM File into Endogenous and Exogenous Reads
To split a BAM file into endogenous and exogenous reads:
Split BAM File by Cell Barcodes
To split a BAM file based on cell barcodes:
Help
For more details on available commands and options, run: