bamCleaner
Overview
Cleans up BAM files by fixing MAPQ issues in unmapped reads and automatically validates BAM file integrity.
Usage
Options
| Option | Description |
|---|---|
-i [input] |
Input BAM file or file list (one path per line) |
-o [outputDir] |
Output directory for cleaned BAMs (default: same as input) |
-p [prefix] |
Output filename prefix (default: original_name.cleaned) |
-t [threads] |
Number of threads to use (default: auto-detect) |
-r |
Remove unmapped reads entirely (default: keep with MAPQ=0) |
-n |
Dry run |
-h |
Display help message |
Examples
Clean a single BAM (automatic validation always happens)
Remove unmapped reads with automatic validation
Batch processing with automatic validation
Dry run (shows what would happen, including validation)