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

Classify contigs with CAT

CAT assigns taxonomy to each contig in an assembly. It predicts proteins, searches them against the reference database, Where the lineage is the full taxonomic lineage of the classification of the ORF, and the bit-score the top-hit bit-score that is assigned to the ORF for voting. The BAT ORF2LCA output file has an extra column where ORFs are linked to the MAG in which they are found.

Fresh run

You need a nucleotide contig FASTA and the [database files](databases.md). The default aligner is DIAMOND.

CAT_pack cat -c {contigs fasta} -d {database folder}

Multiple output files and a log file will be generated. The final classification files will be called out.CAT.ORF2LCA.txt and out.CAT.contig2classification.txt. Learn more here about [output files and folders](output.md)

Reuse predicted proteins and/or alignments

Alternatively, if you already have a predicted proteins fasta file and/or an alignment table for example from previous runs, you can supply them to CAT, which will then skip the steps that have already been done and start from there:

CAT_pack cat -c {contigs fasta} -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 CAT 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.

Adjustments

  • Change -r or -f to adjust how CAT combines evidence.
  • Use add_names to append names or summarise to aggregate a named classification table.
  • If you plan to run BAT after a CAT run on the set of contigs from which the MAGs originate, you can use the previously predicted protein and alignment files to classify the MAGs.

See CAT commands and options for flags and defaults.

Clone this wiki locally