Repository navigation
Transitioning to v2.0
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.
-
Smaller databases and faster search:
commecnow entirely uses custom databases, which can be downloaded from databases.commec.io usingcommec setup. No direct download of full NCBI databases. -
Region-specific flagging: by supplying a
--regionsargument tocommec 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 withcommec 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
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
--regionsflag, 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 listcommand:# Summarise all imported control lists commec list -l -y config.yamlNote:
commec list's own--regionstakes a space-separated list (e.g.-r NZ US), which differs fromscreen's comma-separated form.
The database layout and hosting changed, so you must re-install your databases with commec setup.
-
commec setupnow requires a target: either-d <dir>or-y <config.yaml>(running it with no arguments no longer works).This downloads and extracts the databases and writes a ready-to-usecommec setup -d ~/commec-dbs/config.yamlinto that directory. - New
setupoptions:-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.zstarchives (requirestarandzstd, 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_dmnddirectories or manual NCBI downloads. - Optionally set
auto_update_databases: truein your config to havecommec screencheck for database updates.
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.
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-tooland-j/--diamond-jobsremain only as deprecated no-ops (they have no effect and will emit a deprecation notice). - The YAML keys
protein_search_toolanddiamond_jobsare accepted but ignored with a warning.
Configuration files are now validated more strictly (this catches silent mistakes, but may reject v1 configs):
-
base_paths.defaultis required — set it via-d, in the YAML (base_paths: {default: /abs/path}), or by runningcommec setup. There is no longer a relativecommec-dbs/default. -
All paths in the YAML must be absolute. (The command-line
-dmay 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
--configpath that does not exist now raises an error rather than silently falling back to package defaults.
-
<prefix>_summary.htmlhas 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.jsonhas been restructured to include more information about current databases and control list specifics for each hit. --commec flaggains-e/--evalportal-formatfor output compatible with the IBBIS screening evaluation portal.
- Update the package (e.g.
conda update commec). - Re-download databases with
commec setup -d <dir>(the old layout will not work). - Regenerate or update your
config.yaml— use the onecommec setupwrites, and make sure every path is absolute andbase_paths.defaultis set. - Remove any
commec splitsteps; screen multi-record FASTAs directly. - Remove any
-p/--protein-search-tool/-j/--diamond-jobsflags andprotein_search_tool/diamond_jobsYAML keys. - (Optional) Add
--regions/control_lists.regionsto interpret results against specific jurisdictions, and explorecommec list.