Hi,
I have another issue with SLURM. Now the job submission works well, but my trimgalore jobs are reported as failure when the exits normally (exit code 0).
The interesting part is that this is not a problem when I run the same code with local executor.
The slurm job seems to be exited normally given the exit code in the work directory;
#############################################################################Exit code:
############################################################################[kimb8@cn0059 3ec1a5c255448650cc468024b83543]$ cat .exitcode
0[kimb8@cn0059 3ec1a5c255448650cc468024b83543]$ head .command.env
#############################################################################Command line:
############################################################################[kimb8@cn0059 3ec1a5c255448650cc468024b83543]$ cat .command.sh
#!/bin/bash -ue
trim_galore polii_1d_ra.fastq
#############################################################################Standard error:
############################################################################[kimb8@cn0059 3ec1a5c255448650cc468024b83543]$ tail .command.err
74 435 0.6 1 276 159
75 714 0.6 1 66 648
76 45545 0.6 1 850 44695
RUN STATISTICS FOR INPUT FILE: polii_1d_ra.fastq
=============================================
41118759 sequences processed in total
Sequences removed because they became shorter than the length cutoff of 20 bp: 109107 (0.3%)
#############################################################################nextflow output;
############################################################################N E X T F L O W ~ version 0.20.2-SNAPSHOT
Launching NGI-ChIPseq/
main.nf====================================
ChIP-seq: v1.1
====================================
Reads : fastq/*.fastq
Genome : hg19
BWA Index : /fdb/igenomes/Homo_sapiens/UCSC/hg19/Sequence/BWAIndex/genome.fa
MACS Config : macssetup.config
Extend Reads : 100 bp
Current home : /home/kimb8
Current user : kimb8
Current path : /home/kimb8/projects/ccbr482_new/analysis/polii
R libraries : /home/kimb8/R/nxtflow_libs/
Script dir : /gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/NGI-ChIPseq
Working dir : /gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/work
Output dir : ./results
====================================
===================
d: DataflowQueue(queue=[DataflowVariable(value=[polii_1d_ra, nextflow.util.ArrayBag@54e22bdd]), DataflowVariable(value=[input_1d_co, nextflow.util.ArrayBag@3bd418e4]), DataflowVariable(value=[mycn_2d_co, nextflow.util.ArrayBag@544820b7]), DataflowVariable(value=[h3k4me3_1d_co, nextflow.util.ArrayBag@6b98a075]), DataflowVariable(value=[input_2d_co, nextflow.util.ArrayBag@2e61d218]), DataflowVariable(value=[mycn_2d_ra, nextflow.util.ArrayBag@3569fc08]), DataflowVariable(value=[h3k4me3_1d_ra, nextflow.util.ArrayBag@20b12f8a]), DataflowVariable(value=[polii_1d_co, nextflow.util.ArrayBag@e84a8e1]), DataflowVariable(value=[input_2d_ra, nextflow.util.ArrayBag@2e554a3b])])
===================
[input_1d_ra, [/gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/fastq/input_1d_ra.fastq]]
[polii_1d_ra, [/gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/fastq/polii_1d_ra.fastq]]
[input_1d_co, [/gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/fastq/input_1d_co.fastq]]
[mycn_2d_co, [/gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/fastq/mycn_2d_co.fastq]]
[h3k4me3_1d_co, [/gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/fastq/h3k4me3_1d_co.fastq]]
[input_2d_co, [/gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/fastq/input_2d_co.fastq]]
[mycn_2d_ra, [/gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/fastq/mycn_2d_ra.fastq]]
[h3k4me3_1d_ra, [/gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/fastq/h3k4me3_1d_ra.fastq]]
[polii_1d_co, [/gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/fastq/polii_1d_co.fastq]]
[input_2d_ra, [/gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/fastq/input_2d_ra.fastq]]
[warm up] executor > slurm
[93/3ec1a5] Submitted process > trim_galore (polii_1d_ra)
[f5/1a6d72] Submitted process > trim_galore (input_1d_co)
[f9/d77850] Submitted process > trim_galore (h3k4me3_1d_ra)
[81/af2691] Submitted process > trim_galore (h3k4me3_1d_co)
[28/f3d440] Submitted process > trim_galore (input_1d_ra)
[95/e14d2f] Submitted process > fastqc (polii_1d_co)
[7e/84241f] Submitted process > fastqc (h3k4me3_1d_co)
[3a/6e7c9e] Submitted process > fastqc (input_2d_co)
[50/342db3] Submitted process > fastqc (mycn_2d_co)
[7f/38282c] Submitted process > trim_galore (mycn_2d_ra)
[6d/7c7953] Submitted process > fastqc (input_1d_ra)
[58/f537b7] Submitted process > trim_galore (polii_1d_co)
[71/b9a9b6] Submitted process > fastqc (polii_1d_ra)
[35/49a8ad] Submitted process > fastqc (h3k4me3_1d_ra)
[ad/e35988] Submitted process > trim_galore (input_2d_co)
[5f/da730c] Submitted process > fastqc (input_1d_co)
[ab/472207] Submitted process > trim_galore (mycn_2d_co)
[90/59cc5d] Submitted process > fastqc (mycn_2d_ra)
[a9/da0e79] Submitted process > trim_galore (input_2d_ra)
[f1/f6d736] Submitted process > fastqc (input_2d_ra)
Error executing process > 'trim_galore (polii_1d_ra)'
Caused by:
Process 'trim_galore (polii_1d_ra)' terminated for an unknown reason -- Likely it has been terminated by the external system
Command executed:
trim_galore polii_1d_ra.fastq
Command exit status:
-
Command output:
1.8
Command error:
/usr/local/lmod/lmod/lmod/init/bash: line 96: PS1: unbound variable
No quality encoding type selected. Assuming that the data provided uses Sanger encoded Phred scores (default)
Path to Cutadapt set as: 'cutadapt' (default)
Cutadapt seems to be working fine (tested command 'cutadapt --version')
AUTO-DETECTING ADAPTER TYPE
===========================
Attempting to auto-detect adapter type from the first 1 million sequences of the first file (>> polii_1d_ra.fastq <<)
Found perfect matches for the following adapter sequences:
Adapter type Count Sequence Sequences analysed Percentage
Illumina 3794 AGATCGGAAGAGC 1000000 0.38
Nextera 3 CTGTCTCTTATA 1000000 0.00
smallRNA 0 ATGGAATTCTCG 1000000 0.00
Using Illumina adapter for trimming (count: 3794). Second best hit was Nextera (count: 3)
Writing report to 'polii_1d_ra.fastq_trimming_report.txt'
SUMMARISING RUN PARAMETERS
==========================
Input filename: polii_1d_ra.fastq
Trimming mode: single-end
Trim Galore version: 0.4.0
Cutadapt version: 1.8
Quality Phred score cutoff: 20
Quality encoding type selected: ASCII+33
Adapter sequence: 'AGATCGGAAGAGC' (Illumina TruSeq, Sanger iPCR; auto-detected)
Maximum trimming error rate: 0.1 (default)
Minimum required adapter overlap (stringency): 1 bp
Minimum required sequence length before a sequence gets removed: 20 bp
Writing final adapter and quality trimmed output to polii_1d_ra_trimmed.fq
>>> Now performing quality (cutoff 20) and adapter trimming in a single pass for the adapter sequence: 'AGATCGGAAGAGC' from file polii_1d_ra.fastq <<<
10000000 sequences processed
20000000 sequences processed
Work dir:
/gpfs/gsfs4/users/CCBR/user/kimb8/ccbr482_new/analysis/polii/work/93/3ec1a5c255448650cc468024b83543
Tip: when you have fixed the problem you can continue the execution appending to the nextflow command line the option '-resume'
Execution cancelled -- Finishing pending tasks before exit