Generates a BAM index ".bai" file. This tool creates an index file for the input BAM that allows fast look-up of data in a BAM file, lke an index on a database. Note that this tool cannot be run on SAM files, and that the input BAM file must be sorted in coordinate order.
java -jar picard.jar BuildBamIndex I=input.bam
INPUT (String) A BAM file or GA4GH URL to process. Must be sorted in coordinate order. Required.
OUTPUT (File) The BAM index file. Defaults to x.bai if INPUT is x.bam, otherwise INPUT.bai.
If INPUT is a URL and OUTPUT is unspecified, defaults to a file in the current directory. Default value: null.