It works. However, now it gives me the following error. Is there a way to apply toRealPath() with basename?
N E X T F L O W ~ version 21.10.6
Launching `main.nf` [high_ardinghelli] - revision: 86556531ff
executor > local (49)
[c3/7283af] process > BWAINDEX [100%] 1 of 1 ✔
[b8/06c905] process > FASTP (23) [100%] 24 of 24 ✔
[aa/f1fc0f] process > BWAMEM (6) [ 0%] 0 of 24
[/home/subudhak/Documents/COVID_Project/nextCov/work/c3/7283afa8ec4bf917d966c37ec390f9/Sars_cov_2.ASM985889v3.dna.toplevel.fa.fai]
Error executing process > 'BWAMEM (5)'
Caused by:
Process `BWAMEM (5)` terminated with an error exit status (1)
Command executed:
id=$(zcat 21_S21_L001_R1_P.fastq.gz | head -n 1 | cut -f 3-4 -d":" | sed 's/@//')
bwa mem -M -R "$(echo "@RG\tID:${id}\tSM:21_S21_L001\tPL:ILLUMINA")" -t 1 Sars_cov_2.ASM985889v3.dna.toplevel.fa 21_S21_L001_R1_P.fastq.gz 21_S21_L001_R2_P.fastq.gz | s
amtools sort -@ 1 -o 21_S21_L001.sorted.bam -
samtools index -@ 1 21_S21_L001.sorted.bam
Command exit status:
1
Command output:
(empty)
executor > local (49)
[c3/7283af] process > BWAINDEX [100%] 1 of 1 ✔
[b8/06c905] process > FASTP (23) [100%] 24 of 24 ✔
[ba/be5a18] process > BWAMEM (15) [100%] 23 of 23, failed: 23
[/home/subudhak/Documents/COVID_Project/nextCov/work/c3/7283afa8ec4bf917d966c37ec390f9/Sars_cov_2.ASM985889v3.dna.toplevel.fa.fai]
Error executing process > 'BWAMEM (5)'
Command error:
[E::bwa_idx_load_from_disk] fail to locate the index files
samtools sort: failed to read header from "-"
Work dir:
/home/subudhak/Documents/COVID_Project/nextCov/work/37/36a0ef6525b44c33e678e87e8cc517
Tip: when you have fixed the problem you can continue the execution adding the option `-resume` to the run command line