Skip to main content

BAM to GFF

bam-to-gff

Convert BAM file to GFF 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
  • Fragment: output the full fragment of two reads

Note: The Midpoint and Fragment options requires proper mate-pair reading.

Command Line Interface

Usage:

java -jar ScriptManager.jar bam-format-converter bam-to-gff [-1 | -2 | -a | -m | -f]
[-hpsV] [-n=<MIN_INSERT>] [-o=<output>] [-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

OptionDescription
-o, --output=<output>specify output directory (name will be same as original with .gff ext)
-s, --stdoutstream output file to STDOUT (cannot be used with -o flag)
-z, --gzipgzip output (default=false)

Filter Options

These filter options are shared across all the BAM Format Converter tools.

OptionDescription
-p, --mate-pairrequire 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

OptionDescription
-1, --read1output read 1 (default)
-2, --read2output read 2
-a, --all-readsoutput combined
-m, --midpointoutput midpoint (require PE)
-f, --fragmentoutput fragment (requires PE)