Sateesh_Peri
10/25/2024, 12:09 PMtouch -c BwamethIndex/*
if [ ! -f BwamethIndex/genome.fa ]; then
ln -s $(readlink genome.fa) BwamethIndex/genome.fa;
fi
bwameth.py \
\
\
-t 4 \
--reference BwamethIndex/genome.fa \
SRR389222_sub2_trimmed.fq.gz \
| samtools view -@ 4 -bhS -o SRR389222_sub2.bam -
error:
Command error:
ln: genome.fa: File existsMaxime Garcia
10/25/2024, 12:13 PMSateesh_Peri
10/25/2024, 12:14 PMif [ ! -e BwamethIndex/genome.fa ]; then
ln -s $(readlink genome.fa) BwamethIndex/genome.fa
fi
The -e flag checks for both files and symbolic links, so this will prevent the ln command from being executed if BwamethIndex/genome.fa already exists in any form. This should resolve the File exists error.Sateesh_Peri
10/25/2024, 12:14 PMMaxime Garcia
10/25/2024, 12:15 PMSateesh_Peri
10/25/2024, 12:15 PMSateesh_Peri
10/25/2024, 12:26 PMSateesh_Peri
10/25/2024, 12:27 PMSateesh_Peri
10/25/2024, 12:37 PMln -sf \$(readlink $fasta) $index/$fastaSateesh_Peri
10/25/2024, 12:38 PMMaxime Garcia
10/25/2024, 12:39 PMSateesh_Peri
10/25/2024, 12:49 PMMaxime Garcia
10/25/2024, 1:04 PMEbrahim Afyounian
02/09/2025, 6:55 PMS3 workDir (I am running the pipeline using CPU (and not GPU) on the Finnish IT Center for Science servers which, as far as I can tell, do not use Amazon S3 storage service). Interestingly, I started a batch of 10 samples a couple days ago and the pipeline completed successfully without this error. But today, I started a new batch of ~50 samples, and I got this error. It seems that this error happened only for [at least] one sample and not all (but I am not 100% sure, this is because, if I check a the work subdirectory for a running BWAMETH_ALIGN process (despite pipeline failure), I can see that the BAM file is increasing in size).
Any ideas how to address this issue?Ebrahim Afyounian
02/10/2025, 8:24 AMexecutor = 'slurm' and -profile singularity .Maxime Garcia
02/10/2025, 12:04 PMMaxime Garcia
02/10/2025, 12:04 PMEbrahim Afyounian
02/11/2025, 7:25 AM<https://github.com/nf-core/methylseq> [confident_legentil] DSL2 - revision: 4415e90a60 [3.0.0] with N E X T F L O W ~ version 24.10.3 .
• 7 out of 45 samples have this issue. The rest went just fine.
• I think we can rule out any specific node as a cause for this. Because, I can see that these seven jobs had failed on different nodes. And at least there is one BWAMETH_ALIGN job running for another sample on the same node, that the other job failed.Ebrahim Afyounian
02/11/2025, 7:53 AM.command.run , I replaced ln -f with ln -sf for the FASTA file.
nxf_stage() {
...
ln -sf PATH/TO/genome.fa genome.fa
}