Description of the bug
Hi all,
I understand the motivation for having the docker.io-nfcore-anndatar-20241129.img container that's used to run process: ANNDATAR_CONVERT (as a singularity/apptainer one at least) as a lightweight one.
However, I've noticed that it seems to rely on the user's R_lib path to grab the necessary libraries when running templates/anndatar_convert.R inside anndatar_convert.nf as an Apptainer/Singularity container on SLURM. This is great if everyone is using R v.4.2.2, however, if not (and this cannot be modified on your HPC cluster) then you obviously run into some errors importing dependencies for Seurat and SingleCellExperiment, particularly: Matrix and spam.
Right now, the container I've recreated using the dependencies of the current one is ~893MB so should be no harder to cache than the largest container in the pipeline right now (cellbender).
TIA.
Command used and terminal output
#!/bin/bash
## dependencies
module purge; module load bluebear
module load bear-apps/2022b
module load Nextflow/24.04.2
export NXF_SINGULARITY_CACHEDIR="/path/to/.apptainer"
#main
### cmd used before patching the aforementioned container
### used local pipeline dir after patching on my cluster
### cellranger_index comes straight from 10x website
nextflow run nf-core/scrnaseq -r 4.0.0 \
--input ../samplesheet.csv \
--outdir ../Outs_QC_and_counts_Mouse \
-profile bluebear \
--aligner cellranger \
--cellranger_index ../../Refs/refdata-gex-GRCm39-2024-A
Relevant files
anndatar_convert_singularity_recipe.zip
This zipfile contains the apptainer/singularity .def recipe I have created.
Cheers.
System information
Nextflow version: 24.04.2
Hardware: HPC
Executor: Slurm
Container engine: Apptainer (Singularity)
OS: Red Hat Enterprise Linux 8.10 (Ootpa)
Version of nf-core/scrnaseq: 4.0.0
Description of the bug
Hi all,
I understand the motivation for having the docker.io-nfcore-anndatar-20241129.img container that's used to run process:
ANNDATAR_CONVERT(as a singularity/apptainer one at least) as a lightweight one.However, I've noticed that it seems to rely on the user's R_lib path to grab the necessary libraries when running
templates/anndatar_convert.Rinsideanndatar_convert.nfas an Apptainer/Singularity container on SLURM. This is great if everyone is using R v.4.2.2, however, if not (and this cannot be modified on your HPC cluster) then you obviously run into some errors importing dependencies for Seurat and SingleCellExperiment, particularly: Matrix and spam.Right now, the container I've recreated using the dependencies of the current one is ~893MB so should be no harder to cache than the largest container in the pipeline right now (cellbender).
TIA.
Command used and terminal output
Relevant files
anndatar_convert_singularity_recipe.zip
This zipfile contains the apptainer/singularity .def recipe I have created.
Cheers.
System information
Nextflow version: 24.04.2
Hardware: HPC
Executor: Slurm
Container engine: Apptainer (Singularity)
OS: Red Hat Enterprise Linux 8.10 (Ootpa)
Version of nf-core/scrnaseq: 4.0.0