Installation and Usage of the bamnado Package
Installation
Download a pre-built binary of the bamnado package from the releases page.
Make sure to select the binary that matches your operating system and architecture. After downloading, you can place the binary in a directory included in your system's PATH for easy access.
Alternatively, you can build the package from source using the following commands:
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. BigWigs can also be generated by specifying the --output option with a .bw extension.
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: