Code for excluding same-taxonomic-rank hits from a search, used to benchmark GO-annotation transfer at increasing evolutionary distance (domain / phylum / genus / species exclusion).
mmseqs/Alignment.cpp— mmseqs' ownalignmentmodule, forked to add native--align2b-exclusionsupport (dev build:dev/m2g).foldseek/structurealign.cpp— foldseek's ownstructurealignmodule, forked the same way (dev build:dev/f2g).blastp_diamond/aln_tax_filter.py— standalone post-hoc filter for blastp and diamond, which have no native exclusion support. Removes hits that share taxonomic ancestry with the query at a given rank (using an NCBI taxdump), writing one filtered alignment file per rank.folddisco/folddisco_tax_exclusion.py— same idea, adapted to Folddisco's own per-query TSV hit format (one file per query, query/target ids parsed from filename/tid instead of alignment columns).
mmseqs and foldseek do exclusion natively, inside the search itself (DEV
mode builds, --align2b-exclusion/--align2b flags) — no separate script
needed for them. blastp, diamond, and Folddisco don't support this, so their
hits are searched/collected first and then filtered post-hoc by the scripts
above.