Skip to content

Transitioning to v2.0

Tessa Alexanian edited this page Aug 4, 2026 · 4 revisions

This page guides you through the transition from commec v1.x to version 2.0. If you have been using v1, this is the quickest way to orient yourself to what has changed. For the full current documentation, see Install, Tutorial, and Command Line Usage. The v1.0 documentation remains available in the v1.0 Wiki Archive.

Summary

  • Smaller databases and faster search: commec now entirely uses custom databases, which can be downloaded from databases.commec.io using commec setup. No direct download of full NCBI databases.
  • Region-specific flagging: by supplying a --regions argument to commec screen, you can now adjust which national or multilateral control lists are used for flagging (for example, flagging only hits from Brazilian export controls or the UK screening guidance). HTML and JSON outputs also specify which control lists apply to each best match hit. Available lists can be viewed with commec list.
  • Removed DIAMOND and commec split: protein best match search now always uses BLASTX, and runs faster when multiple queries are searched in parallel.
  • Smaller changes: Config YAML is validated more strictly, HTML report has been completely rebuilt, optimization of BLAST parameters

New: region-specific flagging of control lists

The taxonomy search can now flag or warn per control list, with regional context. Control lists shipped with the databases include the Australia Group Common Control List and national export controls (e.g. Brazil, China, EU, India, Russia, UK, USA).

  • Add jurisdiction context to a screen with the new --regions flag, which takes a comma-separated list of two-letter ISO country codes:

    commec screen -y config.yaml --regions BR,EU ./input.fasta

    The same regions can be set in your config under control_lists.regions (default: all).

  • Inspect the available lists with the new commec list command:

    # Summarise all imported control lists
    commec list -l -y config.yaml

    Note: commec list's own --regions takes a space-separated list (e.g. -r NZ US), which differs from screen's comma-separated form.

Databases must be re-downloaded (new names, layout, and hosting)

The database layout and hosting changed, so you must re-install your databases with commec setup.

  • commec setup now requires a target: either -d <dir> or -y <config.yaml> (running it with no arguments no longer works).
    commec setup -d ~/commec-dbs/
    This downloads and extracts the databases and writes a ready-to-use config.yaml into that directory.
  • New setup options: -m/--mock (dry run — show what would be downloaded/updated), -e/--experimental (fetch experimental databases), and -r/--restore <output.json> (reproduce the exact database revisions used for a previous run).
  • Databases are hosted at databases.commec.io, downloaded as checksum-verified .tar.zst archives (requires tar and zstd, both included in the conda environment).
  • New directory layout:
    [databases_path]/
    ├── biorisk/
    ├── best_match/
    │   ├── protein/
    │   └── nucleotide/
    ├── low_concern/
    │   ├── dna/
    │   ├── rna/
    │   └── protein/
    └── control_lists/
    
  • The NCBI taxonomy database is no longer required (regional control-list annotations replace it), and there are no longer separate nr_blast / nt_blast / nr_dmnd directories or manual NCBI downloads.
  • Optionally set auto_update_databases: true in your config to have commec screen check for database updates.

Removed commands and options

commec split (removed)

The split helper (which broke a multi-record FASTA into one file per record) has been removed. You can screen a multi-record FASTA directly, and it's faster to screen multiple queries at once.

DIAMOND (removed)

Protein search now always uses BLASTX; DIAMOND is no longer supported. We are currently testing DIAMOND and other aligners, and may reintegrate in v2.1 or 2.2, but wanted to release the bew databases faster than we could fully validate that search.

  • The CLI flags -p/--protein-search-tool and -j/--diamond-jobs remain only as deprecated no-ops (they have no effect and will emit a deprecation notice).
  • The YAML keys protein_search_tool and diamond_jobs are accepted but ignored with a warning.

Stricter config YAML

Configuration files are now validated more strictly (this catches silent mistakes, but may reject v1 configs):

  • base_paths.default is required — set it via -d, in the YAML (base_paths: {default: /abs/path}), or by running commec setup. There is no longer a relative commec-dbs/ default.
  • All paths in the YAML must be absolute. (The command-line -d may still be relative.)
  • Unknown or misspelled keys are now rejected with an error (previously only a warning). Deprecated keys are the only exception (warn-and-ignore).
  • A --config path that does not exist now raises an error rather than silently falling back to package defaults.

Output changes

  • <prefix>_summary.html has been completely rebuilt: it now splits queries by status (Flag / Warning / Clear / Skipped), offers swimlane sequence maps showing each flag, and details that link out to UniProt, NCBI, and control list details.
  • <prefix>.output.json has been restructured to include more information about current databases and control list specifics for each hit. -- commec flag gains -e/--evalportal-format for output compatible with the IBBIS screening evaluation portal.

Migration checklist

  1. Update the package (e.g. conda update commec).
  2. Re-download databases with commec setup -d <dir> (the old layout will not work).
  3. Regenerate or update your config.yaml — use the one commec setup writes, and make sure every path is absolute and base_paths.default is set.
  4. Remove any commec split steps; screen multi-record FASTAs directly.
  5. Remove any -p/--protein-search-tool / -j/--diamond-jobs flags and protein_search_tool / diamond_jobs YAML keys.
  6. (Optional) Add --regions / control_lists.regions to interpret results against specific jurisdictions, and explore commec list.