|
| 1 | +--- |
| 2 | +id: bam-to-bed |
| 3 | +title: BAM to BED |
| 4 | +sidebar_label: bam-to-bed |
| 5 | +--- |
| 6 | + |
| 7 | +Convert BAM file to BED file |
| 8 | + |
| 9 | +Usage: |
| 10 | +```bash |
| 11 | +java -jar ScriptManager.jar bam-format-converter bam-to-bed [-1 | -2 | -a | -m | -f] |
| 12 | +[-hpsV] [-n=<MIN_INSERT>] [-o=<output>] [-x=<MAX_INSERT>] <bamFile> |
| 13 | +``` |
| 14 | + |
| 15 | +### Positional Input |
| 16 | + |
| 17 | +This tool takes a single BAM file for input. As with other tools, this tool requires the BAM file be indexed. |
| 18 | + |
| 19 | +### Output Options |
| 20 | + |
| 21 | +| Option | Description | |
| 22 | +| ------ | ----------- | |
| 23 | +| `-o, --output=<output>` | specify output directory (name will be same as original with .bed ext) | |
| 24 | +| `-s, --stdout` | stream output file to STDOUT (cannot be used with `-o` flag) | |
| 25 | + |
| 26 | +### Filter Options |
| 27 | +These filter options are shared across all the BAM Format Converter tools. |
| 28 | + |
| 29 | +| Option | Description | |
| 30 | +| ------ | ----------- | |
| 31 | +| `-p, --mate-pair` | require proper mate pair (default not required) | |
| 32 | +| `-n, --min-insert=<MIN_INSERT>` | filter by min insert size in bp | |
| 33 | +| `-x, --max-insert=<MAX_INSERT>` | filter by max insert size in bp | |
| 34 | + |
| 35 | +### Read Options |
| 36 | + |
| 37 | +| Option | Description | |
| 38 | +| ------ | ----------- | |
| 39 | +| `-1, --read1` | output read 1 (default) | |
| 40 | +| `-2, --read2` | output read 2 | |
| 41 | +| `-a, --all-reads` | output combined | |
| 42 | +| `-m, --midpoint` | output midpoint (require PE) | |
| 43 | +| `-f, --fragment` | output fragment (requires PE) | |
0 commit comments