Troubleshooting

This page covers the practical issues most likely to come up during setup, configuration, execution, and report review. For general usage questions, see Frequently asked questions.

When a run fails, the fastest first checks are usually the launch-directory .nextflow.log file, the RAFT-generated trace files under outputs/reports/, and the project workflow/nextflow.config file that records the resolved run configuration.

Installation and environment

raft command is not found

Symptoms:

  • Running raft returns command not found.

Likely causes:

  • RAFT was installed with pip --user and ~/.local/bin is not in $PATH.

  • RAFT was installed into a different Python environment than the one you are currently using.

Recommended checks:

  • Run python --version and confirm you are using the intended Python installation.

  • If you installed with pip --user, ensure ~/.local/bin is in $PATH.

  • Reopen your shell after installation, or re-activate the environment where RAFT was installed.

Nextflow, Git, or Apptainer/Singularity is missing

Symptoms:

  • raft starts but setup or run commands fail early.

  • The workflow does not launch and reports missing dependencies.

Likely causes:

  • A required system dependency was never installed.

  • The tool is installed but is not available in the current shell environment.

Recommended checks:

  • Confirm that nextflow, git, and apptainer or singularity can be run directly from the command line.

  • Follow Installing RAFT again and verify the local prerequisites.

  • If you are on a cluster, confirm that the required tools are available on the compute nodes as well as the login node.

raft setup creates directories in the wrong place

Symptoms:

  • Inputs, references, or projects appear under an unexpected directory.

  • A later run cannot find manifest, reference, or project files you expected to exist.

Likely causes:

  • raft setup --default was run from a directory you did not intend to use as the RAFT root.

  • A shared or old RAFT configuration file is being reused.

Recommended checks:

  • Confirm where your RAFT root directory is located.

  • Verify that the expected projects/, references/, and inputs/ directories exist there.

  • Re-run raft setup if needed and choose the intended paths explicitly.

The demo run fails before the workflow starts

Symptoms:

  • raft run-demo --workflow lens --version 1.9.3 stops during setup or downloads.

Likely causes:

  • Missing local dependencies.

  • Network restrictions or interrupted downloads.

  • Insufficient storage in the RAFT root directory.

Recommended checks:

  • Confirm the dependencies in Installing RAFT.

  • Confirm you have enough free disk space for references, demo inputs, and workflow intermediates.

  • Retry the demo before attempting a real dataset. The demo is the best first check that the local environment is usable end to end.

Manifest and sample setup

A RAFT web interface opens but never finishes loading

Symptoms:

  • The Manifest Generator, Config Generator, or Output Viewer shows a blank page or a spinner that never resolves.

  • The page reports that it could not initialize.

Likely causes:

  • The machine has no outbound internet access, or a proxy or firewall blocks unpkg.com, cdnjs.cloudflare.com, or cdn.tailwindcss.com. All RAFT web interfaces load React and their other runtime libraries from those hosts each time they open, and none of it is bundled locally.

Recommended checks:

  • Confirm the browser can reach https://unpkg.com and https://cdn.tailwindcss.com.

  • Check the browser’s developer console for blocked or failed script requests.

  • If the interfaces are unreachable, use the command-line paths instead: build the manifest with raft manifest-template and run with --workflow-profile so the Config Generator is not required. Reports can still be read directly from outputs/lens/ as TSVs.

The manifest is not being discovered

Symptoms:

  • A run started without the manifest you expected.

  • RAFT cannot find your manifest automatically.

Likely causes:

  • The manifest was not passed with --manifest.

  • The manifest file is not in the expected metadata input location for automatic discovery.

Recommended checks:

  • Pass the manifest explicitly with --manifest my_manifest.tsv.

  • If relying on automatic discovery, place the manifest under the RAFT metadata input directory described in Preparing your samples.

LENS reports missing DNA-derived antigen sources

Symptoms:

  • SNV or InDel sections are absent or nearly empty.

  • The workflow appears to run mainly RNA-derived antigen branches.

Likely causes:

  • The patient has tumor RNA only, without tumor DNA and matched normal DNA.

  • The manifest does not correctly associate tumor DNA, normal DNA, and tumor RNA for the same patient.

Recommended checks:

  • Confirm that each patient has the intended tumor DNA, normal DNA, and tumor RNA samples.

  • Re-read the hierarchy and minimal requirements in Preparing your samples.

  • Use raft check-manifest -m <MANIFEST> to validate the manifest.

Sample names or prefixes are inconsistent

Symptoms:

  • Expected tumor-normal-RNA pairings do not form.

  • A patient appears to be split across multiple independent analyses.

Likely causes:

  • Run_Name prefixes do not match the expected conventions such as ad-, nd-, and ar-.

  • Patient_Name, Dataset, or Group values are inconsistent across related samples.

Recommended checks:

FASTQ files are not found

Symptoms:

  • The manifest validates poorly in the Manifest Generator.

  • The workflow starts but downstream sample-level work is missing.

Likely causes:

  • The FASTQ file prefix in the manifest does not match the actual input files.

  • One mate of a paired-end FASTQ set is missing.

  • Files are stored outside the expected RAFT input structure.

Recommended checks:

  • Verify that the file prefix matches the actual FASTQ filenames.

  • Confirm that both read mates are present when paired-end data are expected.

  • If using the Manifest Generator, use its autocomplete and validation instead of typing prefixes manually when possible.

References and configuration

Alternative references are configured but not available

Symptoms:

  • The workflow fails early in alignment, quantification, annotation, or phasing.

  • Reference-related files appear to be missing even though the config was modified.

Likely causes:

  • The Config Generator or CLI was pointed at alternative references that were never downloaded or copied into the RAFT references area.

  • A path was changed in configuration without preparing the underlying files.

Recommended checks:

  • If you changed references, confirm that those files are actually present in the expected reference directory.

  • Re-read the notes in Running LENS using RAFT about using alternative references.

  • If you are just getting started, run with a standard workflow profile first before customizing references.

Reference files are incompatible with each other

Symptoms:

  • Alignment, annotation, transcript, or peptide-generation steps fail.

  • The run appears to mix different genome builds or annotation releases.

Likely causes:

  • Genome FASTA, GTF, annotation resources, or derived indices do not belong to the same reference build.

Recommended checks:

  • Keep your FASTA, GTF, annotation resources, and tool-specific indices on the same genome build and release when possible.

  • Compare your setup against the standard defaults documented in Off-the-shelf defaults.

Runtime and execution

The workflow fails immediately after launch

Symptoms:

  • raft run exits before major workflow steps begin.

  • Nextflow startup or configuration errors appear immediately.

Likely causes:

  • A required dependency, manifest, profile, or project setting is missing.

  • The chosen run mode does not match the environment being used.

Recommended checks:

  • Start with the simplest possible local command from Running LENS using RAFT.

  • Check the launch-directory .nextflow.log file for the first concrete error instead of starting from downstream task noise.

  • Confirm that the intended manifest, project ID, and workflow version were supplied on the command line.

  • If you are a first-time user, validate the environment with the demo run before customizing anything else.

The run uses more disk or memory than expected

Symptoms:

  • Jobs fail mid-run.

  • The filesystem fills during alignment, variant calling, or downstream analysis.

Likely causes:

  • Large intermediates such as BAMs, trimmed FASTQs, and references consume more storage than expected. Intermediates are retained unless you ask for them to be removed.

  • Local resource limits are too small for the sample size or workflow profile.

Recommended checks:

  • Confirm that the RAFT root is on a filesystem with enough free storage.

  • If you are not debugging workflow structure, rerun with --delete-intermediates so RAFT removes trimmed FASTQs and BAMs once downstream processes have consumed them.

  • If you are customizing workflow behavior, omit that flag so the intermediate outputs remain available.

Unable to resume cached task appears during reruns

Symptoms:

  • Nextflow warns that a cached task cannot be resumed.

Likely causes:

  • The process definition changed.

  • Input content or ordering changed.

  • Container, parameters, or configuration changed.

Recommended checks:

  • Decide whether the change is expected. If you changed code, parameters, or references, losing resume eligibility may be normal.

  • If you expected a stable rerun, compare your command, configuration, and inputs with the previous successful run.

Some antigen sources produce few or no rows

Symptoms:

  • A completed run contains very few rows for one antigen source.

Likely causes:

  • The source truly has little supporting biological signal in the sample.

  • The required input modality for that source is weak or missing.

  • Filtering or review steps remove most of the candidates.

Recommended checks:

  • Confirm that the necessary input data exist for that source.

  • Compare the base, reviewed, and high-confidence reports to see where rows are lost.

  • Check *.run_qc_summary.tsv to see whether attrition happened during expression filtering, pMHC characterization, or review.

  • Review source-specific annotations and review flags in Interpreting the LENS reports.

Hybrid and cloud issues

Bucket arguments do not behave as expected

Symptoms:

  • Hybrid runs fail before data routing is resolved.

  • Inputs, references, or project outputs are written to unexpected locations.

Likely causes:

  • --bucket was mixed with mutually exclusive bucket-routing flags.

  • A helper bucket flag was provided without the required primary bucket routing.

Recommended checks:

  • Re-read the bucket-routing notes in Running LENS using RAFT.

  • Use the simplest working bucket setup first before splitting data across multiple buckets.

Cloud bucket names are rejected

Symptoms:

  • A bucket is accepted by your shell command but fails in cloud setup or job submission.

Likely causes:

  • The bucket name contains underscores.

Recommended checks:

Cloud or hybrid permissions are insufficient

Symptoms:

  • Uploads fail.

  • Batch jobs do not start.

  • References or inputs cannot be read from cloud storage.

Likely causes:

  • The active cloud identity does not have the required storage or job submission permissions.

  • The selected Nextflow cloud profile does not match the environment.

Recommended checks:

  • Confirm that the chosen profile is the correct one for your cloud setup.

  • Verify that the active account can read and write the required buckets and submit jobs in the target project.

Outputs and report review

The reviewed report is missing expected review annotations

Symptoms:

  • alignment_confidence_score, final_tier, or reasons are blank or absent where you expected them.

Likely causes:

  • Required upstream review inputs were missing.

  • A review-related step failed or its outputs were not joined back into the final report.

  • The field is not applicable to that antigen source.

Recommended checks:

  • Compare the reviewed report with the review_flags.tsv and review_scores.tsv sidecars.

  • Check the run QC summary and workflow logs for upstream failures.

  • Use Interpreting the LENS reports to distinguish blank, missing, and not-applicable fields.

The same peptide-HLA combination appears multiple times

Symptoms:

  • The same peptide and allele appear in multiple rows.

Likely causes:

  • The same pMHC is supported by multiple biological origins, such as different transcripts, variants, or source events.

Recommended checks:

  • Use candidate_id to distinguish rows.

  • Review the source-specific context columns to see why the rows differ.

  • This is normal behavior and is described in Interpreting the LENS reports.

The high-confidence report is much smaller than expected

Symptoms:

  • *.high_confidence.tsv has far fewer rows than the reviewed report.

Likely causes:

  • The high-confidence report is a downstream shortlist, not just a resorted copy of the reviewed report.

  • Source-specific high-confidence filters and final_tier = PASS may remove many candidates.

Recommended checks:

  • Compare the base, reviewed, and high-confidence reports side by side.

  • Use the reviewed report when you want the broader interpretation set and the high-confidence report when you want a narrower shortlist.