Licensing¶
BacFlux is MIT licensed. The tools, model sets and databases it can invoke carry their own terms, and some are not open licences. This page records what each licensor published, as read on the dates given, and links to their own texts, which it does not replace.
It draws no conclusion about whether a particular use is permitted — that depends on who you are and what you are doing, and it is yours to establish with the licensor.
Terms used on this page
| HMM | hidden Markov model, a statistical profile used to recognise a protein family |
| ICE | integrative and conjugative element — moves itself between cells |
| IME | integrative mobilisable element — needs a helper element to move |
BacFlux's own code¶
MIT, © 2024 Livio Antonielli. Third-party components retain their own terms.
The repository ships code and URLs, and no third-party database or model set. The
third-party data it does carry are small: the adapter and barcode sequences the
adapter steps search for (Adapter sequences) and two tables
computed from GTDB's metadata (Tables computed from GTDB).
Every database a run needs is either one you already hold and point the config at, or
one the workflow fetches for you, on your machine — the arrangement bakta_db,
gtdbtk_db, platon_db and the CARD link have always had, and the one every optional
mobilome layer uses too. It fetches from the publisher, except for two default links
that point to unmodified copies deposited on Zenodo by the BacFlux author, because the
publishers' own servers are often unreachable: links.checkv_link (CheckV's database)
and links.dbcan_link (the database run_dbCAN 5.1.2 downloads). See
Databases for what that means in practice.
Data and code are two different problems¶
| A database or model set | Source code | |
|---|---|---|
| What BacFlux distributes | a URL in config/config.yaml |
the file itself, in the repository |
| Who obtains it | you, under your own agreement with the licensor | anyone who clones the repository |
| What an enable/disable switch changes | whether the workflow fetches or uses the resource; permission still depends on its terms | whether the code runs; any distributed code still carries its applicable terms |
Use, distribution and adaptation are separate questions
A config switch controls what runs. It does not control what is distributed. Share-alike terms — the "if you pass it on, pass it on under the same terms" clause in CC BY-NC-SA — attach to source that ships in the repository, so a CC BY-NC-SA file would carry its terms into BacFlux whether or not any switch ever ran it. The effect depends on what is incorporated and how it is distributed; it does not follow that every collection containing a separately licensed file must be relicensed as a whole. BacFlux avoids the question: it contains no CC BY-NC-SA code, and none of the ICEfinder2-derived scripts listed under What this repository deliberately does not contain was copied or adapted. See the CC licence and CC FAQ for the applicable distinctions.
Running such a tool is a different act from redistributing its source, and does not affect BacFlux's own licence.
The default path¶
VirSorter2 and not geNomad is the default virus caller, and the reason is the
licence rather than the science (the licensing note above PHAGE_CALLER in
workflow/rules/shared/00_common.smk). The licence types a default run depends
on:
| Component | Licence type |
|---|---|
| VirSorter2 — default virus caller | GPLv2 |
| Platon — plasmid caller, always on | GPLv3 |
| CheckV — grades whatever the virus caller found | LBNL BSD |
fastplong — trims the ONT adapter and barcode in nanopore and hybrid mode, on unless ont_adapter: off |
MIT |
Those four are the components this repository states a licence type for. Every other tool BacFlux invokes — on the default path or inside the mobilome module — is distributed under its own licence by its own authors; CITATIONS.md lists them all, and each tool's repository carries the licence itself. The databases every run needs — Bakta, GTDB, CARD and the rest — are fetched the same way, under their publishers' terms; Databases says what to download and from where.
Adapter sequences¶
The ONT read scan and the adapter screen of the finished genome need the sequences of
the adapters they look for. workflow/data/adapters/ holds two files, and its README names
the source of every record:
| File | What it holds | Terms |
|---|---|---|
ont_chtd.fasta |
ONT's adapter strands and its 96 native and 96 rapid barcodes with their flanks, from ONT's Chemistry Technical Document | ONT states no licence for them; they are reproduced as ONT publishes them, with the source in every record. The same barcode sequences are also distributed with Porechop (GPL v3). |
univec_pacbio_mgi.fasta |
five PacBio and MGI adapter records of NCBI UniVec | a work of the US Government |
Illumina's adapter sequences are not in the repository. UniVec marks every Illumina record
as copyright Illumina, Inc., so rule univec_illumina downloads UniVec from NCBI on your
computer and keeps those records in the output folder, as BacFlux does with any data it
does not redistribute.
Tables computed from GTDB¶
The mobilome module chooses AMRFinderPlus's --organism from the GTDB species name.
Two small tables in workflow/scripts/80_mobilome/ hold that mapping:
gtdb_organism_equivalences.tsv (26 rows: a GTDB species, the AMRFinderPlus organism
it maps to, the matching NCBI species and the share and number of genomes that agree)
and gtdb_organism_genus_rules.tsv (3 rows of genus-level counts). Both were computed by
generate_gtdb_organism_table.py from the metadata table of GTDB release R232, which
their first line names. GTDB publishes its data under the
Creative Commons Attribution-ShareAlike 4.0
licence (downloads page); CITATIONS.md credits
GTDB as the source of the tables.
Components you switch on yourself¶
Each of these stays off until you set the key in the middle column.
| Component | Turned on by | Licence as published | Read from |
|---|---|---|---|
| geNomad — alternative virus caller, and the second opinion in the plasmid stage | phage.caller: genomad |
Berkeley Lab licence, academic / non-commercial use only — "User must be an accredited academic institution"; commercial use requires a separate LBNL licence | the raw LICENSE file, checked 2026-07-22 |
| CONJScan models — the HMM profiles and system definitions that detect conjugation machinery | mobilome.run: true (fetched whenever the module runs) |
CC BY-NC-SA 4.0, Institut Pasteur / CNRS | the package's own metadata.yml |
| MacSyFinder — the engine those models run in | same | GPLv3 | — |
| ICEscan models — the optional second model set, a fork of CONJScan distributed inside ICEfinder2's bundle | mobilome.icescan.run: true |
CC BY-NC-SA 4.0, Institut Pasteur / CNRS — the same terms as the models it forks | the package's own LICENSE file |
| TnCentral — names transposons and integrons | mobilome.tncentral.url or .dir |
an "All Rights Reserved" notice, and no terms page at all | the publisher's site, checked 2026-07-28 |
| ICEberg 3.0 — names the ICE and IME candidates | mobilome.iceberg.urls or .dir |
no licence, terms or reuse statement anywhere; every page carries only "Copyright © 2023 All Rights Reserved by Microbial Bioinformatics Group in MML, SJTU." | the publisher's site, checked 2026-07-28 |
| Baktfold — names Bakta's hypothetical proteins by predicted structure, with Foldseek and the ProstT5 model | baktfold.run: true; also traits.run: true, which runs Baktfold's ProstT5 step and Foldseek and fetches the same database |
MIT (Baktfold); GPLv3 (Foldseek, run as a separate program); MIT (ProstT5); its database CC BY 4.0 | the Bioconda recipes, the ProstT5 model card and the database's Zenodo record, checked 2026-11-01 |
| EcoFoldDB — the protein-structure database the trait profile searches | traits.run: true |
the database CC BY 4.0; the authors' GitHub repository, which holds their annotation script, states no licence, and BacFlux does not use its code | the database's Zenodo record and the repository, checked 2026-11-02 |
| ISOSDB — estimates IS abundance from reads for comparison with located calls | mobilome.isosdb.fasta_url + family_map_url, or .dir |
MIT, in the pseudoR repository | the repository |
MacSyFinder is not CONJScan: the engine is GPLv3, the models it loads are
CC BY-NC-SA 4.0, and it is the models that BacFlux fetches. geNomad's bioconda
recipe is tagged BSD-4-Clause, which does not match the raw LICENSE file —
the file is what was read for the row above.
No published terms is not the same as permissive
TnCentral and ICEberg publish no terms of use. That is an absence of a statement, not a grant. Both layers are opt-in, neither is fetched unless you configure a source, and BacFlux redistributes neither. For ICEberg, the documentation also names an unmodified snapshot on Zenodo, which the BacFlux author published because the official server is often unreachable; that record grants no licence either.
ISfinder is not wired in¶
ISfinder is the reference catalogue of bacterial insertion sequences. Its terms of use restrict both download and redistribution:
"It is not permitted to download the ISfinder database without written authorization. Moreover, it is also not permitted at any time to distribute the database to third parties either individually or as part of web-based software."
— ISfinder terms of use, read 2026-08-17
So BacFlux never offers you a way to fetch it. Every other optional database in the mobilome module works the same way: the workflow ships a URL, you download under the publisher's terms. For ISfinder there is no URL anywhere in the configuration, because supplying one would route around an authorisation only you can obtain.
ISEScan does not require an ISfinder download. ISEScan, which is how BacFlux actually finds insertion sequences, uses its own bundled profile HMMs and needs no ISfinder data.
Where it could still reach you. TnCentral serves several endpoints, and three of
them bundle ISfinder content: nc/tn_is, nc/tn_in_is and prot/tn_is. Only
nc/tn, the transposon set on its own, appears in the configuration; endpoints that
carry ISfinder content are named in the config comments solely to record that they
are deliberately left out (config/config.yaml, the comment above
mobilome.tncentral). Point mobilome.tncentral.url at one of those three and
ISfinder's terms become yours to satisfy — which is a decision to make deliberately,
not one to make by copying a URL out of a comment.
What a run tells you¶
The workflow reports this itself, not only in this document:
- Selecting geNomad prints a notice at parse time, before any job starts (where
PHAGE_CALLERis read, inworkflow/rules/shared/00_common.smk). conjscan_modelsandicescan_modelswrite the CC BY-NC-SA notice to the top of their own logs (the first lines of each rule's shell, inworkflow/rules/shared/80_mobilome.smk).- Every opt-in download of the mobilome module comes from an unversioned address, so
each writes a
PROVENANCE.txtbeside the data.tncentral_db,iceberg_dbandisosdb_dbrecord the source, the fetch date, the checksum of the FASTA as it was indexed (for TnCentral and ICEberg, after BacFlux has repaired their deflines), the sequence count and the licence statement for that source;icescan_modelsrecords the package's own version line and profile count in place of a checksum. That file is the only record of which release you analysed — see Optional layers. - The EcoFoldDB download comes from a versioned Zenodo record and is checked against
links.ecofolddb_md5before it is unpacked;logs/trait_db.logrecords the result.
What this repository deliberately does not contain¶
No CC BY-NC-SA code. EBI's mobilome-annotation-pipeline is Apache-2.0, but
three of its scripts — bin/ice_boundary_refinement.py,
bin/map_tools/icefinder_process.py and bin/prescan_to_fasta.py — derive from
ICEfinder2 and carry CC BY-NC-SA headers. None of it is copied here. What was
taken from that pipeline is decisions: that ICEscan exists and is worth
running, Sequence Ontology terms for element types (BacFlux's mge_type column), the
contig_id|mge_type-start:end element ID format, the discard-with-reason file
pattern, and the rule that a gene counts as inside an element only when at least
0.9 of it lies within the boundaries. Those are facts and design choices, not
expression. Reading source to understand an algorithm and then writing your own
is not copying, and that is the line kept here.
Using the output of EBI's pipeline (mobilome.gff.gz) does not bring any of its code
into BacFlux; terms attached to that output and its source data apply separately.
No vmatch. The att-site search computes maximal exact repeats in plain
Python. Bioconda's vmatch recipe declares license: Unknown / OTHER, and the upstream
site could not be reached when this was checked in July 2026, so its terms could not
be established — weaker ground than a known restrictive licence. A second
implementation of the same repeat definition returned the same repeats on every
tested window; see Validation.
No EcoFoldDB code. The EcoFoldDB repository on GitHub, which holds the authors' annotation script, states no licence: an absence of a grant, not a permission. BacFlux uses only the database, published on Zenodo under CC BY 4.0. The trait calls come from BacFlux's own script, written from the published method; see Trait profile.
Citing¶
Licensing and citation are separate obligations: research software and database authors should be credited in the scientific report, alongside any attribution required by their terms. Citation covers how to cite BacFlux and the tools that do the work.
Standing caveat
This page records what each licensor published, as read on the dates given. Licences change and pages move. Before relying on any of it, read the current terms at the source. Nothing here is legal advice.