BAM to bedGraph
Convert BAM file to bedGraph file
Read Options
This tool has multiple read options to output.
- Read 1: output Read 1
- Read 2: output Read 2
- Combined: output combined reads
- Midpoint: output the midpoint between reads
Note: The Midpoint option requires proper mate-pair reading.
Command Line Interface
Usage:
java -jar ScriptManager.jar bam-format-converter bam-to-bedgraph [-1 | -2 | -a | -m]
[-hpV] [-n=<MIN_INSERT>] [-o=<outputBasename>] [-x=<MAX_INSERT>]
<bamFile>
Positional Input
This tool takes a single BAM file for input. As with other tools, this tool requires the BAM file be indexed.
Output Options
Option | Description |
---|---|
-o, --output=<outputBasename> | specify output directory (name will be same as original with _<strand>.bedgraph ext) |
-s, --stdout | stream output file to STDOUT (cannot be used with -o flag) |
-z, --gzip | gzip output (default=false) |
Filter Options
These filter options are shared across all the BAM Format Converter tools.
Option | Description |
---|---|
-p, --mate-pair | require proper mate pair (default not required) |
-n, --min-insert=<MIN_INSERT> | filter by min insert size in bp |
-x, --max-insert=<MAX_INSERT> | filter by max insert size in bp |
Read Options
Option | Description |
---|---|
-1, --read1 | output read 1 (default) |
-2, --read2 | output read 2 |
-a, --all-reads | output combined |
-m, --midpoint | output midpoint (require PE) |