Skip to content
Chloë Cornelissen edited this page Nov 10, 2026 · 4 revisions

To run BAT on a set of MAGs (the default file suffix is .fna. Use -s .fa or -s .fasta for other suffixes):

$ CAT_pack bat -b {bin folder} -d {database folder}

Alternatively, BAT can be run on a single MAG:

$ CAT_pack bat -b {bin fasta file} -d {database folder}

Multiple output files and a log file will be generated. The final classification files will be called out.BAT.ORF2LCA.txt and out.BAT.bin2classification.txt. Learn more here about output files and folders

Similarly to CAT, BAT can be run from intermediate steps if gene prediction and alignment have already been carried out once:

$ CAT_pack bat -b {bin folder} -d {database folder} -p {predicted proteins fasta} -a {alignment file}

The headers in the predicted proteins fasta file must look like this >{contig}_{ORFnumber}, so that BAT can couple contigs to ORFs. The alignment file must be tab-separated, with queried ORF in the first column, protein accession number in the second, and the bitscore in the twelfth or third. (changed since version 7.0.0b0)

Note

CAT pack recognizes standard compact and BLAST6 tables. For a custom layout, keep query and target IDs in the first two columns and select the bitscore column with --bit_score_column. The index starts at zero, so 2 means the third column and 11 the twelfth.

See BAT commands and options for flags and defaults.

Clone this wiki locally