Peter Chovanec
09/01/2024, 7:02 PMFailed to close filehandle No space left on device
The alignment step seems to be writing temp files to the local node storage instead of the TMPDIR location and filling it up. Is there a way to redirect the tmp output of the alignment? I'm using Bismark as the aligner.
Bismark seems to have a --temp_dir but its not used in the nf-core pipeline.Sateesh_Peri
09/02/2024, 5:51 AM--temp_dir and also --gzip options via ext.args for the align module in conf/modules.config and use it to save gzipped tmp file to a path you likePeter Chovanec
09/02/2024, 6:33 PMPeter Chovanec
09/02/2024, 6:34 PMRunning Bismark Parallel version. Number of parallel instances to be spawned: 4
Current working directory is: /work/4578865.1.eeskin_pod_36.q/nxf.iLMc9V4b52
...
Created G -> A converted version of the FastQ file H9_naive_5iLA_hTSC_DNAme_rep1_2_val_2.fq.gz.temp.1 (28442995 sequences in total)
Failed to close filehandle No space left on device
Created G -> A converted version of the FastQ file H9_naive_5iLA_hTSC_DNAme_rep1_2_val_2.fq.gz.temp.2 (28442994 sequences in total)
Failed to close filehandle No space left on device
Created G -> A converted version of the FastQ file H9_naive_5iLA_hTSC_DNAme_rep1_2_val_2.fq.gz.temp.3 (28442994 sequences in total)
Failed to close filehandle No space left on device
Created G -> A converted version of the FastQ file H9_naive_5iLA_hTSC_DNAme_rep1_2_val_2.fq.gz.temp.4 (28442994 sequences in total)
Failed to close filehandle No space left on deviceEdmund
09/02/2024, 8:10 PMPeter Chovanec
09/02/2024, 8:30 PMwithName: BISMARK_ALIGN {
ext.args = { [
params.aligner == 'bismark_hisat' ? ' --hisat2' : ' --bowtie2',
params.aligner == 'bismark_hisat' && params.known_splices ? " --known-splicesite-infile <(hisat2_extract_splice_sites.py ${known_splices})" : '',
params.pbat ? ' --pbat' : '',
( params.single_cell || params.non_directional || params.zymo ) ? ' --non_directional' : '',
params.unmapped ? ' --unmapped' : '',
params.relax_mismatches ? " --score_min L,0,-${params.num_mismatches}" : '',
params.local_alignment ? " --local" : '',
'--temp_dir /u/scratch/a/ajcollie',
!meta.single_end && params.minins ? " --minins ${params.minins}" : '',
meta.single_end ? '' : (
params.maxins ? " --maxins ${params.maxins}" : (
params.em_seq ? " --maxins 1000" : ''
)
)
].join(' ').trim() }
publishDir = [
[
path: { "${params.outdir}/${params.aligner}/alignments/unmapped" },
mode: params.publish_dir_mode,
pattern: "*.fq.gz",
enabled: params.unmapped
],
[
path: { "${params.outdir}/${params.aligner}/alignments" },
mode: params.publish_dir_mode,
pattern: "*.bam",
enabled: (params.save_align_intermeds || params.skip_deduplication || params.rrbs)
],
[
path: { "${params.outdir}/${params.aligner}/alignments/logs" },
mode: params.publish_dir_mode,
pattern: "*.txt"
]
]
}
Do you want the entire config?Peter Chovanec
09/02/2024, 8:33 PMCurrent working directory is: /work/4578865.1.eeskin_pod_36.q/nxf.iLMc9V4b52 is the local node storage. Right now I am playing the lottery hoping to get a node with enough local storage, 9/10 jobs have finished so far...Edmund
09/02/2024, 9:49 PMEdmund
09/02/2024, 9:53 PMenv {
TMPDIR = "/u/scratch/a/ajcollie"
}
Or is TMPDIR set? Just wondering I had a recent issue with MultiQC suddenly not being able to use the tmpdir a few weeks ago...Edmund
09/02/2024, 9:54 PMEdmund
09/02/2024, 9:54 PMPeter Chovanec
09/02/2024, 10:14 PMTMPDIR is set. I was wondering if they had a different one. I tried TMP, and TEMP . Based on the docs https://www.hoffman2.idre.ucla.edu/Using-H2/Storage/Storage.html it is TMPDIRPeter Chovanec
09/02/2024, 10:14 PMTMPDIREdmund
09/02/2024, 10:21 PMprocess {
withName: BISMARK_ALIGN {
scratch '$SCRATCH'
}
}Peter Chovanec
09/02/2024, 10:49 PMEdmund
09/02/2024, 10:52 PMEdmund
09/02/2024, 10:56 PMSateesh_Peri
09/03/2024, 3:06 AM.command.sh from that workDir...I wanna see if its being set correctly at the endEdmund
09/03/2024, 2:12 PMPeter Chovanec
09/04/2024, 4:32 AM#!/bin/bash -euo pipefail
bismark \
-1 H9_naive_5iLA_hTSC_DNAme_rep1_1_val_1.fq.gz -2 H9_naive_5iLA_hTSC_DNAme_rep1_2_val_2.fq.gz \
--genome BismarkIndex \
--bam \
--bowtie2 --multicore 4
cat <<-END_VERSIONS > versions.yml
"NFCORE_METHYLSEQ:METHYLSEQ:BISMARK:BISMARK_ALIGN":
bismark: $(echo $(bismark -v 2>&1) | sed 's/^.*Bismark Version: v//; s/Copyright.*$//')
END_VERSIONSPeter Chovanec
09/04/2024, 4:35 AMPeter Chovanec
09/04/2024, 4:43 AMNow writing methylation information for file >>CpG_OT_H9_naive_5iLA_hTSC_DNAme_rep1_1_val_1_bismark_bt2_pe.deduplicated.txt.gz<< to individual files for each chromosome
Failed to open filehandle: No space left on device at /usr/local/bin/bismark2bedGraph line 279, <IN> line 24495416.
Warning: unable to close filehandle $temp_fhs{...} properly: No space left on device at /usr/local/bin/bismark2bedGraph line 279, <IN> line 24495416.
Warning: unable to close filehandle $temp_fhs{...} properly: No space left on device at /usr/local/bin/bismark2bedGraph line 279, <IN> line 24495416.
Warning: unable to close filehandle $temp_fhs{...} properly: No space left on device at /usr/local/bin/bismark2bedGraph line 279, <IN> line 24495416.
Warning: unable to close filehandle $temp_fhs{...} properly: No space left on device at /usr/local/bin/bismark2bedGraph line 279, <IN> line 24495416.
Warning: unable to close filehandle $temp_fhs{...} properly: No space left on device at /usr/local/bin/bismark2bedGraph line 279, <IN> line 24495416.
Warning: unable to close filehandle $temp_fhs{...} properly: No space left on device at /usr/local/bin/bismark2bedGraph line 279, <IN> line 24495416.
Warning: unable to close filehandle $temp_fhs{...} properly: No space left on device at /usr/local/bin/bismark2bedGraph line 279, <IN> line 24495416.
Warning: unable to close filehandle $temp_fhs{...} prEdmund
09/04/2024, 1:05 PMFelix Krueger
09/04/2024, 1:33 PMPeter Chovanec
09/04/2024, 8:23 PMPeter Chovanec
09/04/2024, 8:33 PM