Repository navigation
Examples
Run CAT on a contig set with default parameter settings deploying 16 cores for DIAMOND alignment. Name the contig classification output with official names, and create a summary:
Run cat with:
CAT_pack cat -c contigs.fasta -d db/ -n 16 --output_prefix first_CAT_runAdd the official names with:
CAT_pack add_names -i first_CAT_run.contig2classification.txt -o first_CAT_run.contig2classification.official_names.txt -d db/ --only_officialCreate the summary with:
CAT_pack summarise -c contigs.fasta -i first_CAT_run.contig2classification.official_names.txt -o CAT_first_run.summary.txtRun BAT on the set of MAGs that was binned from these contigs, reusing the protein predictions and DIAMOND alignment file generated previously during the contig classification:
CAT_pack bat -b bins/ -d db/ -p first_CAT_run.predicted_proteins.faa -a first_CAT_run.alignment.diamond -o first_BAT_runRun the contig classification algorithm again with custom parameter settings.:
CAT_pack cat --range 5 --fraction 0.1 -c contigs.fasta -d db/ -p first_CAT_run.predicted_proteins.faa -a first_CAT_run.alignment.diamond -o second_CAT_runand name the output with all names in the lineage, excluding the scores:
CAT_pack add_names -i second_CAT_run.contig2classification.txt -o second_CAT_run.contig2classification.names.txt -d db/ --exclude_scores
Run BAT on the set of MAGs with custom parameter settings, suppressing terminal verbosity.
CAT_pack bat -r 3 -f 0.1 -b bins/ -s .fa -d db/ -p first_CAT_run.predicted_proteins.faa -a first_CAT_run.alignment.diamond -o second_BAT_run --quietNext, add names to the ORF2LCA output file:
CAT_pack add_names -i second_BAT_run.ORF2LCA.txt -o second_BAT_run.ORF2LCA.names.txt -d db/We often use the combination of CAT / BAT to explore possible contamination within a MAG.
CAT_pack cat -c ../bins/interesting_MAG.fasta -d db/ -o CAT.interesting_MAGCAT_pack bat -b ../bins/interesting_MAG.fasta -d db/ -p CAT.interesting_MAG.predicted_proteins.faa -a CAT.interesting_MAG.alignment.diamond -o BAT.interesting_MAGContigs that have a different taxonomic signal than the MAG classification are probably contamination.
Alternatively, you can look at contamination from the MAG perspective, by setting the f parameter to a low value:
CAT_pack bat -f 0.01 -b ../bins/interesting_MAG.fasta -d db/ -o BAT.interesting_MAG.low_fThen add the official names with:
CAT_pack add_names -i BAT.interesting_MAG.low_f.bin2classification.txt -o BAT.interesting_MAG.low_f.bin2classification.names.txt -d db/BAT will output any taxonomic signal with at least 1% support. Low scoring diverging signals are clear signs of contamination!