help me: process index { input: file(fasta) output: path("${fasta}.amb") script: """ bwa…
- User
help me:
process index { input: file(fasta)
output: path("${fasta}.amb") script: """ bwa index ${fasta} """}
process x {
input: path(idx) tuple val(sample), file(reads) script: """ bwa mem ${idx} ${reads} | samtools view -b | samtools sort -o ${sample}.bam && picard MarkDuplicates -I ${sample}.bam -O ${sample}.dedup.bam -M metrics.txt --REMOVE_DUPLICATES true && samtools index ${sample}.dedup.bam """}
workflow { fasta = Channel.fromPath(params.fasta) fastqs = Channel.fromFilePairs("${params.dir}/_{1,2}.fastq.gz")
idx = index(fasta) x(idx, fastqs)}
Command output: executor > local (2) [7b/8dca23] process > index (1) [100%] 1 of 1 ✔ [37/33d617] process > x (1) [100%] 1 of 1, failed: 1 ✘ ERROR ~ Error executing process > 'x (1)'
Caused by: Process
x (1)terminated with an error exit status (1)Command executed:
bwa mem GCF_000017985.1_ASM1798v1_genomic.fna.amb SRR6170145_1.fastq.gz SRR6170145_2.fastq.gz | samtools view -b | samtools sort -o SRR6170145.bam && picard MarkDuplicates -I SRR6170145.bam -O SRR6170145.dedup.bam -M metrics.txt --REMOVE_DUPLICATES true && samtools index SRR6170145.dedup.bam
Command exit status: 1
Command output: (empty)
Command error: [E::bwa_idx_load_from_disk] fail to locate the index files [main_samview] fail to read the header from "-". samtools sort: failed to read header from "-"
- Assistant