Hey all :slightly_smiling_face: I am trying to run...
# oncoanalyser
f
Hey all 🙂 I am trying to run oncoanalyser on some wgs / wes data. I run into trouble with the ORANGE process and I do not understand what I need to change in order to make it run 🙂 This is the error message:
Copy code
Command error:
  INFO:    Environment variable SINGULARITYENV_TMPDIR is set, but APPTAINERENV_TMPDIR is preferred
  INFO:    Environment variable SINGULARITYENV_NXF_TASK_WORKDIR is set, but APPTAINERENV_NXF_TASK_WORKDIR is preferred
  INFO:    Environment variable SINGULARITYENV_NXF_DEBUG is set, but APPTAINERENV_NXF_DEBUG is preferred
  /usr/local/bin/orange: line 6: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
  Exception in thread "main" java.lang.IllegalArgumentException: Failed to determine tool directory for configuration [virus_dir/virusintrprtr].
  	at com.hartwig.hmftools.orange.util.PathResolver.resolveMandatoryToolDirectory(PathResolver.java:40)
  	at com.hartwig.hmftools.orange.OrangeWGSRefConfig.createConfig(OrangeWGSRefConfig.java:82)
  	at com.hartwig.hmftools.orange.OrangeConfig.createConfig(OrangeConfig.java:305)
  	at com.hartwig.hmftools.orange.OrangeApplication.main(OrangeApplication.java:28)
This is my run command:
Copy code
nextflow run nf-core/oncoanalyser \
  -revision 2.2.0 \
  -config /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-09_oncoanalyser/refdata.local.config \
  -profile m3c \
  --mode wgts \
  --processes_exclude virusinterpreter \
  --genome GRCh38_hmf \
  --input /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-09_oncoanalyser/imgag-fastq.csv \
  --outdir /mnt/lustre/groups/nahnsen/nahbu450/pm4onco/2025-09_oncoanalyser/imgag-fastq/ \
  -resume
I downloaded the reference data with:
Copy code
nextflow run nf-core/oncoanalyser \
  -revision 2.2.0 \
  -profile m3c \
  --mode prepare_reference \
  --ref_data_types wts,dna_alignment \
  --genome GRCh38_hmf \
  --outdir oncoanalyser-reference/
and then added the paths to the refdata.local.config as described in the readme 🙂
r
Hi Famke, thanks for your message! I see you've included virusinterpreter but that output is needed by ORANGE!
f
Should I just skip ORANGE then aswell if I do not need the virus information?
r
If you'd like the report to be generated (the ORANGE report) then yes you'd need the virus information - otherwise you can skip ORANGE as well 🙂
👍 1
f
Ah perfect, now I understand it a bit better. Maybe this can be added to the docs or you can automate that it does not try to run orange if I skip something that prevents orange from running? Or add a warning / early failure that orange cannot be run if one skips the virusinterpreter 🙂
this 1
r
Thanks for the feedback - that sounds like a sensible way to deal with this
👍 1
this 1
FYI: skipping virus-related processes also means no CUPPA prediction/output given that such input is required by that tool as well
👍 1
this 1
s
@Famke Bäuerle @Rayan Hassaïne thanks for investigating! I’ve taken a look at how oncoanalyser 2.2.0 is handling this scenario and it seems to behave correctly in the sense that Virus Interpreter results are not passed to ORANGE when they are not available
However, for the oncoanalyser 2.2.0 release, ORANGE was upgraded from 3.8.1 to 4.1 and there appears to be a regression in ORANGE 4.1 where Virus Interpreter input is always assumed to exist even when they are not provided to ORANGE
The relevant regression in ORANGE 4.1 is introduced here:
Copy code
$ git clone https://github.com/hartwigmedical/hmftools/
$ cd hmftools/
$ git diff orange-v3.8.1..orange-v4.1 -- orange/src/main/java/com/hartwig/hmftools/orange/OrangeWGSRefConfig.java | sed -n 72,85p

@@ -112,11 +79,8 @@ public interface OrangeWGSRefConfig
         String tumorSampleId = configBuilder.getValue(TUMOR_SAMPLE_ID);

         // Params required for WGS, Tumor only
-        String virusDir = pathResolver.resolveOptionalToolDirectory(VIRUS_DIR_CFG, VIRUS_INTERPRETER_DIR);
-        if(virusDir != null)
-        {
-            builder.annotatedVirusTsv(mandatoryPath(AnnotatedVirusFile.generateFileName(virusDir, tumorSampleId)));
-        }
+        String virusDir = pathResolver.resolveMandatoryToolDirectory(VIRUS_DIR_CFG, VIRUS_INTERPRETER_DIR);
+        builder.annotatedVirusTsv(mandatoryPath(AnnotatedVirusFile.generateFileName(virusDir, tumorSampleId)));

         String chordDir = pathResolver.resolveMandatoryToolDirectory(CHORD_DIR_CFG, CHORD_DIR);
         builder.chordPredictionTxt(mandatoryPath(ChordDataFile.generateFilename(chordDir, tumorSampleId)));
So despite oncoanalyser 2.2.0 not providing ORANGE any Virus Interpreter inputs, ORANGE 4.1 still assumes they exist and attempts to process them, which results in the error you’re seeing
This will be fixed upstream in ORANGE. Thanks again for reporting and investigating!
👍 1