Skip to content

Troubleshooting

Each entry below gives the message you get, why it happens, and what to change.

Start with a dry run (-n). It checks workflow planning and many configuration errors before analysis jobs start, but does not validate all database contents or execute the tools — see Always dry-run first.

Terms used on this page

DAG directed acyclic graph — the job graph Snakemake builds from the rules, which decides what runs and in what order
YAML the config file's plain-text format; indentation is significant and tabs are refused
ONT Oxford Nanopore Technologies, the long-read sequencing platform
GTDB Genome Taxonomy Database, the reference GTDB-Tk places each genome in

KeyError: 'mode'

Symptom

The run stops as soon as the config is read, before the line naming the mode:

KeyError in file ".../workflow/rules/shared/00_common.smk", line …:
'mode'

Cause. The config has no mode: key, which is what selects the pipeline. It is read with bracket access on purpose (config["mode"], in the "Mode dispatch" section at the top of 00_common.smk), so a config without it stops the run rather than letting BacFlux guess a front end. A config written for an earlier release will not have it, and config/config_custom.yaml is git-ignored — a git pull never updates yours.

Fix. Back up your current configuration, then start from the shipped example and copy your database paths across by hand. The block layout changed as well, so read it rather than paste into it:

cp config/config.yaml config/config_custom.yaml

Details of what moved are in Coming from v1.

A database path is wrong

Every path below is checked while Snakemake reads the workflow, so a dry run catches it, before any job starts.

Config key What you see
input.illumina_dir, nanopore_dir, contigs_dir [BacFlux] input.contigs_dir is not an existing directory: '/no/such/dir'
directories.output_dir, and the five databases you provide, left empty [BacFlux] directories.bakta_db is missing or empty, but every run needs it. …
directories.bakta_db, blast_db, eggnog_db, gtdbtk_db, platon_db [BacFlux] directories.platon_db is '/data/db/platon', but it has no 'mps.dmnd'. Point it at the Platon database folder (db/ in Platon's archive) …
directories.vs2_db, antismash_db, dbcan_db, card_db, genomad_db; baktfold_db when baktfold.run or traits.run is true, and ecofolddb_db when traits.run is true [BacFlux] directories.vs2_db is '/tmp', but it has no 'Done_all_setup'. Point it at the directory 'virsorter setup' produced …
directories.checkv_db [BacFlux] directories.checkv_db is '…', but that directory holds 0 CheckV database(s) (looking for */genome_db/checkv_reps.faa).
links.dbcan_link, plus phix_link and card_link in the modes that need them, and ecofolddb_link or directories.ecofolddb_db with traits.run: true the missing key is named

The five databases you provide, and seven of the eight optional database keys, share one kind of check: the directory must exist and hold a file that can only exist inside a real copy of that particular database. For the five you provide, that is version.json for Bakta, nodes.dmp for blast_db, eggnog.db for eggNOG, metadata/metadata.txt for GTDB-Tk and mps.dmnd for Platon (function _required_database_dir in 00_common.smk); for the optional ones, Done_all_setup for VirSorter2, aro_index.tsv for CARD, version.txt for geNomad, dbCAN.hmm for dbCAN, clusterblast/ for antiSMASH, swissprot.dbtype for Baktfold, EcoFoldDB.dbtype for EcoFoldDB (function _resolve_optional_db_dir). A directory that exists but holds the wrong thing, such as the folder one level above the database, is therefore caught. checkv_db is the exception, because it is the one key that points at the parent of the versioned database folder; it is checked for exactly one */genome_db/checkv_reps.faa underneath, so aiming a level too high or too low is caught as well (the CHECKVDB check in 00_common.smk).

ecofolddb_db gets a second check: every EcoFoldDB entry that the trait profile's gene dictionary, trait_genes_v1.tsv, uses must be listed in the copy's EcoFoldDB_descriptions.txt. The copy in the EcoFoldDB GitHub repository names some entries differently from the Zenodo record, fails this check, and the message names the missing entries. Point the key at the EcoFoldDB_v2.0/ folder of the Zenodo archive instead, or leave it empty to let the workflow download that archive.

The check finds the right folder, not a complete database

The start-up check looks for one file in each database folder; it opens no database. A copy that is incomplete, damaged or of the wrong release passes it, and fails only when Bakta, BLAST, eggNOG-mapper, GTDB-Tk or Platon reads it, which for some is an hour or more into the run. Platon's failure does not even stop the run: the sample's verified_plasmids.txt then says that Platon exited with an error, and its plasmid answers are not_assessed. The parameters.nt_version files inside blast_db (the BLAST volumes themselves) are not checked either. What each database should contain, and which releases fit, is on Reference databases.

Out of memory

BacFlux's two heaviest steps are the two that place genomes on a reference tree with pplacer: CheckM (completeness_and_contamination) and GTDB-Tk (taxonomic_assignment). pplacer's memory scales with its thread count and reaches tens of gigabytes.

Only GTDB-Tk hands pplacer BacFlux's thread count, through --cpus {threads} --pplacer_cpus {threads} (rule taxonomic_assignment in 30_taxonomy.smk). CheckM gets -t {threads} and no --pplacer_threads at all, so its placement runs at CheckM's own default of one thread, which is much the cheaper of the two.

{threads} in both rules is capped_cpus(24), which is min(resources.threads, 24) read from your config, and Snakemake lowers it again at run time if --cores is smaller (function capped_cpus in 00_common.smk). So if a run is still being killed there the lever is resources.threads, with --cores as a ceiling on top of it — see How threads reaches a rule. Lowering threads lowers pplacer's memory; it changes no classification setting that BacFlux passes to CheckM or GTDB-Tk.

The two rules are also kept apart on purpose: taxonomic_assignment declares CheckM's stats file as an input purely as a scheduling edge, so they never run on the same sample at once (its checkm_stats input, in 30_taxonomy.smk).

Never add --jobs alongside --cores

For a local run --jobs/-j is an alias for --cores, not a second "N jobs of M cores each" setting. Passing both switches the core budget off: two rules each declaring 8 threads, launched with --jobs 2 --cores 8, both got their full 8 threads and ran together. If your machine is far more loaded than --cores should allow, this is why. See --cores is the CPU budget.

eggNOG's --dbmem is the other memory lever, and it is off by default. Turning it on costs about 42 GB per concurrent job, and setting it with resources.ram_gb below that is refused at parse time rather than allowed to fail on the first job (the EGGNOG_DBMEM check in 00_common.smk). See eggNOG --dbmem.

Databases on shared or network storage

Pointing BacFlux at a copy of a database that somebody else installed is supported and saves a great deal of downloading — every directories.*_db path is only ever read. Three things can go wrong with it.

The annotation crawls. eggNOG-mapper's annotation phase does random-access lookups into the 39 GB eggnog.db, once per seed ortholog. That phase is the slow tail of a run on any disk — it is why functional_annotation is routinely the last rule still finishing (the eggNOG --dbmem notes above EGGNOG_DBMEM in 00_common.smk) — and random access is the access pattern a network filesystem handles worst, so a shared copy is where it costs most. Either set parameters.eggnog.dbmem: true and accept the memory cost, or hold that one database on local disk. The trade-off is set out in Annotation.

CheckV's DIAMOND index belongs to whoever built it. CheckV's official archive ships no DIAMOND index; it is built locally after unpacking, and DIAMOND's format is versioned. Hand a shared copy straight to CheckV and it fails at [3/8] Running DIAMOND blastp search... DIAMOND task failed — after the contamination stage succeeded, which reads as a CheckV bug rather than an index mismatch. directories.checkv_db sidesteps this: BacFlux builds a local view — symlinks to the big read-only files, plus an index built by its own DIAMOND (rule checkv_db_local in 70_phage.smk; the reasons are set out above CHECKVDB in 00_common.smk). It costs ~950 MB once per output directory, and nothing is written to your copy.

Some files are readable by their owner and not by you. In a shared geNomad database, some small files, version.txt among them, can end up mode 0640 while the big data files beside them are world-readable. A file you may stat but not read passes an existence check and kills the run minutes later, so BacFlux tests every file in that directory for real read access at parse time, then names the first six offenders and counts the rest (the GENOMADDB check in 00_common.smk):

[BacFlux] directories.genomad_db is '/shared/db/genomad_db', but 9 file(s) in it are
not readable by you: <first six names> (and 3 more). geNomad needs all of them and
would fail partway through the run. Ask whoever owns that directory to make it
readable (chmod -R a+r), or point at a copy you own.

A download from Zenodo fails with 403 Forbidden

Symptom

A database download stops at once, and its log ends in wget's ERROR 403: Forbidden. Four of the workflow's downloads come from zenodo.org unless you point at a copy you hold: dbCAN (rule cazyme_db_download, logs/cazyme_db_download.log), CheckV (checkv_db, logs/checkv_db.log), geNomad (genomad_db, logs/genomad_db.log) and EcoFoldDB (trait_db, logs/trait_db.log).

Baktfold's database (rule structure_annotation_db, needed when baktfold.run or traits.run is true) comes from Hugging Face, and baktfold install turns to Zenodo only when Hugging Face fails. A refusal from Zenodo then looks different: logs/structure_annotation_database.log shows Could not download file from HuggingFace, then Error: corrupt database file! MD5 should be …, because the installer saves the refusal page as the archive, and the rule stops when it tries to unpack it. (The log names the Zenodo link before every download, even one that then comes from Hugging Face.)

Cause. Zenodo has refused requests from the internet address your computer reaches it from. Zenodo blocks an address when automated requests from it threaten the service for other users (Why is my IP address blocked?). Many institutes reach the internet through one shared public address, so the traffic behind the block may not be yours, and the block then covers every computer behind that address. To confirm it, run curl -s on the link named in the log, from the same computer: a blocked address gets a short page saying that access has been restricted because of unusual traffic from your network, with a reference code.

Fix. A block can be lifted after a while, so try again later first. If the download keeps failing, there are two ways out, and the second does not depend on Zenodo at all.

  • Ask Zenodo to lift the block. Write to support@zenodo.org with your public IP address (your IT staff know it), the times of the failed downloads and the reference code from the 403 page. Copy your IT staff in: if the traffic comes from another computer at your site, they are the ones who can find it.
  • Use a copy you hold. Download the archive on a computer that can reach Zenodo, check it against the checksum the rule would have checked (the .sha256 file beside the dbCAN and CheckV archives, links.genomad_md5 and links.ecofolddb_md5 for geNomad and EcoFoldDB), unpack it, and set the matching key: directories.dbcan_db, directories.checkv_db, directories.genomad_db or directories.ecofolddb_db. For Baktfold, run baktfold install -d <dir> on a computer that can reach Hugging Face or Zenodo, and set directories.baktfold_db to <dir>. The download is then skipped. Which folder each key wants is under Pointing at a copy you already hold.

The dbCAN download does not match its checksum

Symptom

Rule cazyme_db_download fails, and logs/cazyme_db_download.log ends with ERROR: the dbCAN archive does not match its published checksum., followed by the link of the archive and the two checksums, the expected one and the one of the downloaded file.

Cause. The archive downloaded from links.dbcan_link does not have the SHA-256 checksum written in the .sha256 file published beside it (the same address, ending in .sha256 instead of .tar.gz). Usually the download was cut short; less often, the link names an archive the .sha256 file was not made for. Snakemake deletes the rule's folder, the downloaded archive with it, so nothing unchecked is unpacked or used.

Fix. Start the run again: both files are downloaded again. If the mismatch comes back, check links.dbcan_link; the default points at a Zenodo record whose two files belong together. Or download and check the archive on another computer, unpack it, and point directories.dbcan_db at the unpacked folder, as described in the section above.

medaka_model: auto cannot infer a model

Symptom

A long-read run stops at check_medaka_model, seconds after read filtering:

ERROR: Medaka could not work out a model from the reads. Medaka said:
…
ValueError: Input file did not contain precisely 1 basecaller model reference.

The message goes on to list the usual causes and the consensus models this Medaka version offers.

Cause. auto runs medaka tools resolve_model --auto_model consensus_bacteria over the filtered reads, which reads the basecaller model out of the FASTQ headers. Guppy and Dorado stamp it there; older data, re-headered data and much public data do not carry it at all. Read filtering is not the cause: Filtlong copies each FASTQ header unchanged, comment included, so if the filtered reads lack the basecaller tag, the raw FASTQ lacked it too. For such data auto cannot resolve a model.

Reads from R9.4.1 flow cells stop here even when their headers name the basecaller: the bacterial model auto asks for exists only for R10.4.1 reads basecalled in hac or sup mode. Medaka then says --bacteria specified but input data was not compatible and suggests naming a bacterial model anyway; for R9.4.1 reads that model is made for the wrong flow cell.

The same check also stores the model's weights. Medaka ships the weights of only a few models and downloads the others from GitHub the first time they are needed. check_medaka_model is a local rule, so that download happens on the computer that runs Snakemake, and the polishing job, which on a cluster runs on a compute node, needs no internet. If that computer cannot reach GitHub, the check stops here as well: in auto mode the lines quoted from Medaka show the failed download, which the message lists among the usual causes, and for a named model the message reads Medaka model '…' exists, but its weights are not stored on this computer and could not be downloaded. Start Snakemake on a computer with internet, or set medaka_model: false to skip polishing.

Fix. Name the model for the flow cell the reads come from, under the block named after your mode (parameters.hybrid for a hybrid run). The message starts with a short guide to that choice:

  • R10.4.1 flow cells (Kit 14 kits, such as SQK-LSK114 or SQK-RBK114): r1041_e82_400bps_bacterial_methylation for native DNA basecalled in hac or sup mode.
  • R9.4.1 flow cells (older kits, such as SQK-LSK109 or SQK-RBK004): the r941 model for the device and the basecalling mode, such as r941_min_hac_g507 (Reads from R9.4.1 flow cells).

For reads downloaded from SRA or ENA, the run record usually names the kit or the flow cell.

parameters:
  nanopore:
    medaka_model: r941_min_hac_g507     # reads from an R9.4.1 flow cell, basecalled in hac mode

An explicit model can change the assembler as well

With flye_input_mode: auto (the default), the Flye read mode is chosen from the Medaka model name: a name containing fast selects --nano-raw, anything else --nano-hq. So setting medaka_model can change how the genome is assembled, not just how it is polished. To pin the polisher without touching the assembler, set flye_input_mode explicitly to nano-hq or nano-raw.

The failure is deliberately early: check_medaka_model runs right after read filtering and the assembler waits on its output, so a bad model costs seconds rather than surfacing after Flye has run. Both keys, and what auto accepts, are in Configuration.

A warning that the Medaka model is for another flow cell

Symptom

As the run starts, before any step, BacFlux prints:

[BacFlux] WARNING sample SAMPLE1: parameters.nanopore.medaka_model is r1041_e82_400bps_bacterial_methylation, a Medaka model for R10.4.1 flow cells, but the read headers name the basecaller model 2021-05-17_dna_r9.4.1_minion_384_d37a2ab9, which is for R9.4.1 flow cells. …

The run goes on.

Cause. medaka_model names a model made for one kind of flow cell, while the basecaller wrote into the read headers that the reads come from another. Polishing with such a model adds errors instead of removing them; on one R9.4.1 genome the R10.4.1 model left 115 pseudogenes and the R9.4.1 model 37 (Reads from R9.4.1 flow cells).

Fix. Stop the run (Ctrl-C) and set medaka_model to a model for the flow cell the warning names, as in the previous section. The run is not stopped for you, because an explicit choice is honoured. Reads whose headers name no basecaller model, as in SRA and ENA downloads, are never compared; for those, check the kit or flow cell in the run record yourself (The start-up check).

GTDB-Tk will not accept the reference database

Cause. GTDB-Tk hard-pins itself to one compatible reference release in its own source (COMPATIBLE_REF_DATA_VERSIONS). BacFlux pins GTDB-Tk 2.7.2, which requires GTDB R232, so an older release such as R220 or R226 is refused. GTDB-Tk makes the check itself, on startup, so the refusal lands in logs/taxonomic_assignment_{sample}.log rather than at parse time.

Fix. Download R232 fresh and point directories.gtdbtk_db at the release232 directory. There is no in-place upgrade, and taxonomy output cached from an older release should be treated as stale once that path changes. The download recipe and sizes are on Reference databases; why the two are pinned together is in Taxonomy.

Half the genome left as contamination

Symptom

CheckM reports a badly incomplete genome that is not contaminated, and logs/select_contigs_{sample}.log carries the warning the selector prints whenever it drops more than 20% of the assembly, for example:

WARNING: decontamination is discarding 47% of the assembly (2,115,000 of
4,500,000 bp). If the kept assembly then looks incomplete but NOT contaminated,
the filter has most likely removed genome rather than contamination.

Cause. auto mode keeps one genus and drops every contig assigned to another. Which genus is set by decontamination.auto_vote: with bp, the default, the one whose contigs add up to the most base pairs; with contigs, the one carried by the most contigs. BLAST routinely scatters one organism across several related genus names, so the contigs that landed under a different name go, even though they belong to the same organism. On a contig count the risk is larger: many short contigs can outvote a few long ones, and on a long-read assembly the few long ones include the chromosome. If two genera tie exactly, the alphabetically first is kept, so the same input always gives the same answer. The curated alias table merges common splits such as Bacillus and Peribacillus, so whichever of the two wins the vote, the other is kept with it (the genus aliases). It covers only the splits it knows about.

Fix. Read 02.assembly/{sample}/contaminants/contig_taxonomy_decisions.tsv — every contig carries the reason it went — and {sample}_composition.txt beside it, which prints each genus's share of the DNA (bp) next to its share of the contig count (contigs). The vote follows the column auto_vote names, so when the two columns rank the genera differently, bp and contigs keep different genera. If you had set auto_vote: contigs, try the default bp first. Otherwise set decontamination.mode: include naming both genera, or mode: off, and re-run; Snakemake redoes only the affected steps.

The same folder holds {sample}_kept_genus.txt, the genus Bakta is given as the organism name: the kept genus that wins the same vote, counted over the kept contigs only. It is empty when no kept contig has a genus, and Bakta then runs without one.

If nothing survives at all, the rule fails

ValueError: No contigs were kept for sample 'X' with mode 'auto'.
Check taxonomy assignments and decontamination settings.

That is deliberate. An empty FASTA would let Snakemake mark the step complete and every stage from annotation onwards would run on no sequence. The decisions file is written before the check, so it is there to read.

A plasmid is missing

Two independent steps can delete a real plasmid, and both have to be ruled out.

Step Why Where to look
Decontamination The contig's genus comes from BlobTools' bestsum rule, which sums BLAST bit scores per taxon and so follows database composition rather than biology. A 2,014 bp K. pneumoniae plasmid was dropped as Escherichia because the summed BLAST bit scores favoured Escherichia (58,709) over Klebsiella (16,253), despite the known host contaminants/contig_taxonomy_decisions.tsv
Long-read filtering filtlong ranks reads by quality and length, and short plasmid-derived reads can be disadvantaged by length weighting. Of the 603 ONT reads covering a 5,596 bp Col2 plasmid, keep_percent: 90 with length_weight: 10 keeps 93; the shipped keep_percent: 95 and length_weight: 1 keep 502 logs/filter_long_reads_{sample}.log

Recovering the reads is necessary, not sufficient

On that isolate no filtlong setting assembled the plasmid, raw unfiltered reads included. ONT ligation prep under-represents small circular plasmids by roughly four-fold, and no filter setting undoes that. keep_percent is the key to reach for; length_weight reaches filtlong only in hybrid mode, because the nanopore rule does not pass it.

A missing plasmid prediction does not establish that its sequence is absent from the assembly. Compare the assembly with an appropriate reference or inspect read and assembly-graph evidence before concluding that the replicon was lost. Both routes and their fixes are set out in Decontamination and Plasmids.

The mobilome module cannot fetch its models

Symptom

The first run with mobilome.run: true fails at rule conjscan_models, and its log, logs/mobilome_conjscan_models.log, ends in a network error such as urllib.error.URLError or HTTP Error 404.

Cause. The CONJscan models are not shipped with BacFlux. Rule conjscan_models downloads the archive of the pinned release, CONJScan 2.1.0, from github.com and installs it with msf_data install. It runs on the computer that runs Snakemake, which therefore has to reach github.com.

Fix. Check that this computer can reach https://github.com, through your site's proxy if it has one (the https_proxy setting is honoured), then relaunch. On a cluster, the preparation fetches it with every other download before the jobs start. The rule fails rather than leaving an empty models directory behind, so nothing downstream runs on a model set that was never installed. The models land in 08.mobilome/conjscan_models/, are shared by every sample, and are never fetched again for that output directory once they are there.

This is the only download the module always makes; the naming layers are opt-in. Their rules check what came back, because a redirect to an HTML error page arrives with a 200 and would otherwise be indexed as an empty database that silently names nothing — so each one stops with an error and prints the first bytes it received. Turning those layers on is covered in Optional layers. Rule iceberg_db can also stop with connections in a row to … added nothing or still incomplete after 200 connections at the end of its log, logs/mobilome_iceberg_db.log: the ICEberg server sometimes drops connections, the rule asks for the rest after each one, and it gives up when ten in a row bring no new bytes or after 200 for one file. It stops at once, after one request, when its log shows answered ERROR 404: Not Found (the address is wrong: check the host) or answered ERROR 403: Forbidden (the server refuses this computer; for zenodo.org see A download from Zenodo fails with 403 Forbidden). All these cases are covered under ICEberg 3.0.

ONT adapter trimming and the adapter screen

The method behind these messages is on ONT adapter trimming and the adapter screen.

Several barcodes in one read file

Symptom

[BacFlux] NOTE find_ont_adapter <sample>: the reads carry 2 barcodes in at least 10% of the reads … on the console, and in logs/find_ont_adapter_<sample>.log.

Cause. Two or more ONT barcodes each sit on at least 10 % of the barcoded reads of one sample file. Bleed-through from neighbouring samples of a flow cell stays far below that, so the file probably holds the reads of several samples: a mislabelled file, or files merged by mistake. Every barcode that reaches 1 % of the reads is trimmed, and the run goes on.

Fix. Demultiplex the reads, or take the right file, and run each sample on its own. The barcodes and their shares are in 01.reads/{sample}/ont/adapters/{sample}_adapter_choice.tsv and in the Adapters table of the MultiQC report.

Adapter left in the reads after trimming

Symptom

[BacFlux] NOTE check_ont_trimming <sample>: more than 1% of the reads kept after trimming still start with …

Cause. After fastplong and Filtlong, more than 1 % of the reads Flye assembles still start with the ONT adapter core, or with the end of the sequence that was trimmed. The adapter in these reads may differ from the one BacFlux searched for, or carry more basecalling errors than fastplong allows (a quarter of the bases).

Fix. Look at the Adapters table, or at 02.assembly/{sample}/eval/adapter_screen/{sample}_adapter_loci.tsv, to see whether any of it reached the assembly. If it did, write the sequence the reads carry into parameters.<mode>.ont_adapter and run again: the adapter followed by the barcode block, as 01.reads/{sample}/ont/adapters/{sample}_adapter_choice.tsv shows it.

Adapter at a contig end

Symptom

The Adapters table of the MultiQC report gives a number above 0 under Contig ends with adapter.

Cause. Adapter or barcode sequence lies within 100 bp of the end of a linear contig. Reads that kept it ended there: trimming was off, the assembly came from elsewhere (contigs mode), or the reads carried it in fewer than 1 % of them, below the line at which BacFlux trims.

Fix. The locus table gives the contig, the coordinates and the adapter. Before a GenBank submission, trim it from the contig end, or run NCBI's FCS-adaptor, which does so. A match inside a contig is listed for a look rather than as a defect; one made of the phage Mu end alone (reason mu_end_inside_contig) is not counted, because a Mu prophage carries the same 50 bp.

UniVec does not match its checksum

Symptom

Rule univec_illumina fails with [BacFlux] univec_illumina: the file downloaded from … has the checksum …, not the one in links.univec_sha256, so it was NOT used.

Cause. The file downloaded from links.univec_link has a different SHA-256 checksum from links.univec_sha256. NCBI replaces the current UniVec from time to time; the default link points at build 10.1 in NCBI's archive, which does not change.

Fix. Use the default link, or, if you changed the link on purpose, put the checksum of the new file into links.univec_sha256: the message gives it, and the file is kept as 02.assembly/adapter_lists/univec_illumina.fasta.download.failed for you to check first.

An existing long-read output folder assembles again

Symptom

A run of BacFlux v2.2.0 or later on an output folder made before v2.2.0 plans Filtlong, Flye and every later step again for each long-read sample.

Cause. With ont_adapter: detect or a sequence, Filtlong reads the trimmed reads, a new file, so Snakemake runs Filtlong and everything after it again, even when nothing was trimmed. In hybrid mode the Illumina steps run again too, because their trimmed reads are temporary files the later steps need.

Fix. Set parameters.<mode>.ont_adapter: off to keep the existing assembly. The adapter screen still runs on it.

A tool runs inside the workflow but not by hand

A few tools — QUAST and ISEScan among them — start with #!/usr/bin/env python, so when called directly they run under whichever python is first on the PATH, not the one in their own environment. Outside an activated environment that is usually the system Python, which has none of the tool's libraries, and the tool fails with an import error that looks like a broken install (QUAST reports a missing joblib3).

For rules with a declared conda environment, Snakemake activates that environment before the command when --sdm conda is used. To reproduce a step by hand, activate the environment first:

conda activate <path to the environment, under .snakemake/conda/ or your --conda-prefix>
quast ...

Config (YAML) errors

Snakemake reports any config problem with one generic message:

WorkflowError:
Config file is not valid JSON or YAML. In case of YAML, make sure to not mix
whitespace and tab indentation.

That almost always means an indentation or list-syntax mistake, or a stray tab — not a problem with the values. Validate the file directly to get the exact line:

python -c "import yaml; yaml.safe_load(open('config/config_custom.yaml'))"

The key-by-key reference is in Configuration.