This tool helps to summarise run_dbcan output on CAZyme profiles on multiple genomes and output a binary matrix (presence and absence of enzyme-encoding genes).
###############################################################################
# extract_cazyme.sh
#
# Modes:
# 1) Extraction mode:
# Extract CAZyme families from dbCAN overview.tsv
#
# 2) Matrix mode (-m):
# Combine multiple files (2 columns) into a presence/absence matrix
#
# Output formats:
# Extraction:
# column 6 (# of tools) column 7 (CAZyme family)
#
# Matrix:
# Sample GH1 GH2 GH3 ...
#
# Usage:
# Extraction:
# ./extract_cazyme.sh [-s] <overview.tsv> [GH,GT,PL,CE,AA,CBM]
#
# Matrix:
# ./extract_cazyme.sh -m <file1> <file2> ...
#
###############################################################################