Hi All, I need some help here. I am trying to run ...
# rnaseq
r
Hi All, I need some help here. I am trying to run the nf-core/ rnaseq pipeline. I am trying process 13 samples (drosophila) using star aligner-salmon the CLI i am submitting is as follows: nextflow run nf-core/rnaseq -r 3.19.0 \ -name embryo-bulkseq \ -profile ucl_myriad \ -params-file /nf-params_batch2.json -bg -resume > embryo-bulkseq_log.txt I am getting an error of no space on disk left (please see attached pipeline report and log file for detailed error file. My HPC is saying my jobs are shutting the computer nodes see below their message: Jobs should not be writing anything to /tmp, they should be using $TMPDIR instead (which gets cleaned up at the end of a job). Your Nextflow jobs have a function like this which looks like it is wrongly setting base to /tmp as the default value and then setting TMPDIR based on that. It should be using the existing $TMPDIR variable that is already set. (Unless $1 is set, where it will use that value instead). nxf_mktemp() { local base=${1:-/tmp} mkdir -p "$base" if [[ $(uname) = Darwin ]]; then mktemp -d $base/nxf.XXXXXXXXXX else TMPDIR="$base" mktemp -d -t nxf.XXXXXXXXXX fi } Does someone has similar issue I am using UCL myriad HPC system and knows how to fix the set NXF_TEMP somewhere. I feel this is might be nextflow issue not sure. Anybody had similar issue and can tell me how they fixed it would be great. I have used this pipeline in june and didnt this issue.
t
Have you tried setting
export NXF_TEMP=/path/to/your/scratch
(e.g. in the script that starts the pipeline, or in your shell)? A "nuclear option" to by-pass
/tmp
would be bind-mounting your scratch with Singularity:
Copy code
singularity {
    runOptions = "-B /path/to/yout/scratch:/tmp"
}
(put that in a config file to use with
-c
) Note that the
ucl_myriad
profile already has this:
Copy code
singularity {
   // other stuff ... 
   runOptions = "-B ${HOME},${PWD} --no-mount /scratch --writable-tmpfs"
}
I'm not sure if all that is necessary, if if some of it is, you may have to add it to your
runOptions
. You could also talk to your sysadmins and see what they want you to do. 🤞
p
If you feel the need to ask in multiple places, it's often better to post a link to the message so all discussions happen in the same place
As for the
ucl_myriad
profile already having that, I'm not sure what Thomas means there.
It's probably a good idea for you to add a bind for
/tmp
as Thomas shows first.
t
What I meant is the the
ucl_myriad
profile already sets
runOptions
. I believe (but am not 100% sure) that if you also set it to something (e.g. to bind
/tmp
to the scratch), you would override that original setting, which may or may not be fine (e.g., I don't see the benefit of
-B ${HOME},${PWD}
for nf-core pipelines, and
--no-mount /scratch
might even be contrary to what you are trying to do, but maybe
--writable-tmpfs
is required on that cluster for some reason). If it is not fine, you'd have to incorporate the relevant things into your own
runOptions
, ideally after discussing this with the sysadmins.
r
@pontus I was unsure if the query was for nfcore or nextflow hence posted in both these channels, I am a new slack user so didn't know how to submit a link of the message. sorry for double posting. @Thomas Danhorn I tried by adding this : "export NXF_TEMP=/path/to/your/scratch" to my .bashrc in my HPC login node. but since nextflow isn't running the job only from my login node this didn't do much. This is what i have understood based on your suggestion is to set a new config file and set runoptions as you suggested first and you hope this will override the setting that ucl_myriad profile has?
t
The
.bashrc
should be the same, no matter what node you are on -- you only have a single
$HOME
where that resides, and it should be used whenever you use a shell anywhere. (But test in the scenario you are using, that it is actually used. There are complex rules, depending on if the shell is interactive, or not, a login shell, or not, etc,; normally it is set up that
.bashrc
is used pretty much always, but it does not hurt to check). And yes, if you add what I said above to a config file and use it with
-c
, the
/tmp
in any Singularity container should be redirected to scratch, so you don't have to do anything else -- just let the processes write to
/tmp
. (The Myriad profile does not do anything with
/tmp
.)
p
If you want to keep what the
ucl_mryiad
profile does, you can actually mix
runOptions
with similar effects by making sure singularity/apptainer sees the right environment (which can be done with
process.beforeScript
, so e.g.
beforeScript = 'export SINGULARITY_BIND=/somewhere:/tmp'
in a relevant process definition could be helpful.
r
Thank You shall give this a try and let u know how it goes
👍 1
🤞 1