Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sage this.mRefContext is null error #133

Open
RP-Silk opened this issue Feb 24, 2025 · 1 comment
Open

Sage this.mRefContext is null error #133

RP-Silk opened this issue Feb 24, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@RP-Silk
Copy link

RP-Silk commented Feb 24, 2025

Description of the bug

When trying to run oncoanalyser in offline mode, the pipeline runs fine until the SAGE_CALLING somatic and germline processes. At this point I get a this.mRefContext is null error. I have provided all reference data in a separate local config file, but Sage seems to be complaining that it doesn't have access to the reference material it needs? Do I need to point sage to the right reference files when running in offline mode so that it doesn't try to download it itself? Unfortunately, it's quite difficult to share log files as the research environment I am working on is very strict for exporting data.

Command used and terminal output

`nextflow run main.nf \
    --input params.csv \
    --outdir results \
    --genome GRCh38_hmf \
    --mode wgts \
    -c refdata.local.config \
    -c hpc.config \
    -resume`

Relevant files

Command error: INFO: Mounting image with FUSE. /usr/local/bin/sage: line 6: warning: setlocale: LC ALL: cannot change locale (en_US.UTF-8): No such file or directory java. lang.NullPointerException: Cannot invoke "com.hartwig.hmftools. sage. candidate.RefContext.processAltRead(String, St ring, int, int, com.hartwig.hmftools.sage.common.ReadContext)" because "this.mRefContext" is null at com.hartwig.hmftools.sage.candidate.AltRead.updateRefContext(AltRead.java:73) at com.hartwig.hmftools.sage.candidate.RefContextConsumer.processRead(RefContextConsumer.java: 188) at com.hartwig.hmftools.sage.evidence.CandidateEvidence.lambda$readBam$1(CandidateEvidence.java:52) at com.hartwig.hmftools.common.samtools.BamSlicer.slice(BamSlicer.java:72) at com.hartwig.hmftools.sage.common.SamSlicer.slice(SamSlicer.java:28) at com.hartwig.hmftools.sage.evidence.CandidateEvidence.readBam(CandidateEvidence.java:72) at com.hartwig.hmftools.sage.evidence.CandidateEvidence. readBam(CandidateEvidence.java:60) at com.hartwig.hmftools.sage.pipeline.CandidateStage.findCandidates(CandidateStage.java:59) at com.hartwig.hmftools.sage.pipeline.RegionTask. run(RegionTask.java:97) at com.hartwig.hmftools.sage.pipeline.RegionThread. run(RegionThread.java: 98)

System information

Nextflow version: 24.10.4
Hardware: HPC
Executor: LSF
Container engine: Singularity
OS: Linux
nf-core/oncoanalyser version: master

@RP-Silk RP-Silk added the bug Something isn't working label Feb 24, 2025
@scwatts
Copy link
Collaborator

scwatts commented Feb 25, 2025

Hi @RP-Silk, can you please post your configuration files, samplesheet, and the params.csv file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants