Chinh Doan
12/10/2024, 2:47 PMnextflow run nf-core/spatialvi -profile singularity,test -r dev
Thank you.Erik Fasterius
12/11/2024, 7:48 AMChinh Doan
12/11/2024, 2:39 PMErik Fasterius
12/12/2024, 7:11 AMAndy Rampersaud
12/12/2024, 5:19 PMdocker.io-erikfas-spatialvi.img) is not finding the file: quality_controls.qmd . I ran the following commands:
#Open a Shell Inside the Container:
scc-singularity shell /projectnb/ar-rcs/client/chdoan/work/singularity/docker.io-erikfas-spatialvi.img
Singularity> cd /projectnb/ar-rcs/client/chdoan/work/06/b663ebea5cbb6ce6e7fa86f5af00fb/
Singularity> quarto render \
> quality_controls.qmd \
> --execute-params params.yml \
> --metadata subtitle:'Sample: CytAssist_11mm_FFPE_Human_Glioblastoma_2' \
> --output quality_controls.html
# Starting python3 kernel...Done
# Executing 'quality_controls.ipynb'
# Cell 1/17...Done
# Cell 2/17...Done
# Cell 3/17...Done
...
# Cell 17/17...Done
# Output created: quality_controls.html
Note: I had to cd to the work folder and then run the quarto command. Perhaps there's an update needed for the Nextflow code?
I'm also available to schedule a Zoom meeting with you if that would be easier for us to troubleshoot.Andy Rampersaud
12/16/2024, 9:10 PMquality_controls.qmd)?Erik Fasterius
12/17/2024, 7:07 AMAndy Rampersaud
12/17/2024, 6:35 PMAndy Rampersaud
12/17/2024, 6:37 PM#Open a Shell Inside the Container:
scc-singularity shell /projectnb/ar-rcs/client/chdoan/work/singularity/docker.io-erikfas-spatialvi.img
Singularity> quarto -v
# 1.3.450Erik Fasterius
12/18/2024, 7:16 AMAndy Rampersaud
12/18/2024, 4:44 PM# Work dir:
# /projectnb/ar-rcs/client/chdoan/work/59/cd829d8fff20da853552709b280d75
cd /projectnb/ar-rcs/client/chdoan/work/59/cd829d8fff20da853552709b280d75
ls -alht
-rw-r--r-- 1 aramp10 scv 1 Dec 18 11:41 .exitcode
drwxr-sr-x 4 aramp10 scv 4.0K Dec 18 11:41 .
-rw-r--r-- 1 aramp10 scv 534 Dec 18 11:41 .command.err
-rw-r--r-- 1 aramp10 scv 534 Dec 18 11:41 .command.log
drwxr-sr-x 4 aramp10 scv 4.0K Dec 18 11:41 .xdg_cache_home
drwxr-sr-x 2 aramp10 scv 4.0K Dec 18 11:41 artifacts
-rw-r--r-- 1 aramp10 scv 327 Dec 18 11:41 params.yml
-rw-r--r-- 1 aramp10 scv 0 Dec 18 11:41 .command.trace
-rw-r--r-- 1 aramp10 scv 0 Dec 18 11:41 .command.out
lrwxrwxrwx 1 aramp10 scv 76 Dec 18 11:41 _extensions -> /usr3/graduate/aramp10/.nextflow/assets/nf-core/spatialvi/assets/_extensions
lrwxrwxrwx 1 aramp10 scv 85 Dec 18 11:41 sdata_raw.zarr -> /projectnb/ar-rcs/client/chdoan/work/b2/83a9a7cf0a3e80d7e0b77620721dd8/sdata_raw.zarr
lrwxrwxrwx 1 aramp10 scv 82 Dec 18 11:41 quality_controls.qmd -> /usr3/graduate/aramp10/.nextflow/assets/nf-core/spatialvi/bin/quality_controls.qmd
-rw-r--r-- 1 aramp10 scv 0 Dec 18 11:41 .command.begin
-rw-r--r-- 1 aramp10 scv 1.6K Dec 18 11:41 .command.sh
-rw-r--r-- 1 aramp10 scv 11K Dec 18 11:41 .command.runErik Fasterius
12/20/2024, 8:09 AMErik Fasterius
12/20/2024, 3:29 PMErik Fasterius
12/20/2024, 3:34 PMChinh Doan
12/20/2024, 4:45 PMAndy Rampersaud
12/20/2024, 5:34 PMsingularity exec --no-home --pid -B /usr3/graduate/aramp10/.nextflow/assets/nf-core/spatialvi -B /projectnb/ar-rcs/client/chdoan/work /projectnb/ar-rcs/client/chdoan/work/singularity/docker.io-erikfas-spatialvi.img
Note: the "work" folder is mounted. We tried many different things but these edits allowed it run:
Edit this file:
/usr3/graduate/aramp10/.nextflow/assets/nf-core/spatialvi/modules/nf-core/quartonotebook/main.nf
export TMPDIR=/projectnb/ar-rcs/client/chdoan/work
This export command would go above the # Render notebook command and then the test commands for the pipeline will run successfully.
This is our current working solution and this will only work if the pipeline is run from this specific folder. Could you suggest a way to make this solution more general?Christophe Avenel
12/20/2024, 9:15 PM/tmp) doesn't exist on your system.
By looking a bit at nextflow and nf-core issues, I found one possible fix (here: https://github.com/nextflow-io/nextflow/issues/2685#issuecomment-1058238754) for you, by mounting /tmp to your $TMPDIR in Singularity:
In the nextflow.config , add the following runOption value in the singularity block:
singularity {
singularity.enabled = true
singularity.autoMounts = true
conda.enabled = false
docker.enabled = false
podman.enabled = false
shifter.enabled = false
charliecloud.enabled = false
apptainer.enabled = false
runOptions = "--bind \${TMPDIR}:/tmp"
}
(Make sure you do have a $TMPDIR set, and that it exists)
I don't know how I didn't see that when we discussed this earlier!Andy Rampersaud
12/26/2024, 8:14 PMnextflow.config but unfortunately it failed with the same error (Quarto) message.
When users submit jobs, our system does set TMPDIR:
echo $TMPDIR
# /scratch/1656769.1.p-int
Another note:
Regarding edits to the .../quartonotebook/main.nf , I noticed that this works:
export TMPDIR=/projectnb/ar-rcs/client/chdoan/work
But this will fail:
export TMPDIR=/projectnb/ar-rcs/client/chdoan
This leads me to think that there's something specific about Quarto that needs the "work" subfolder. Maybe there's something about not having permission/access to the parent folder.
For now we have a working solution, perhaps someone can find a more general one that can work with our system.Erik Fasterius
01/09/2025, 10:51 AM/work directory is just the name of the subdirectory inside the container that is defined in the image, there is nothing special about it per se and it could be named something different (so not Quarto-related). I don't know why your system has problems with this, but at least you got it working - I will close the related GitHub issue for now. It definitely seems that it's a system-specific problem here, so I think you'll have to talk to your sysadmin if you really want to get to the bottom of it.Andy Rampersaud
01/09/2025, 7:06 PM