params.reads = "*_{1,2}.clean.fq.gz"
Channel
.fromFilePairs( params.reads, size: 2 )
.ifEmpty { error "Cannot find any reads matching: ${params.reads}" }
.set { read_files }
hisat2_index = Channel.fromPath("/data/database/hg38/hisatIndex/grch38_snp_tran/genome_snp_tran*")
process test{
maxForks 1
publishDir 'result/', mode: "move"
input:
file hisat2_id from hisat2_index.collect()
set val(name), file(pair) from read_files
output:
file "*.sam" into samout
shell:
file_tag_new=name
index_base = hisat2_id[0].toString() - ~/.\d.ht2/
'''
hisat2 -p 10 --dta -x !{index_base} -1 !{pair[0]} -2 !{pair[1]} -S !{file_tag_new}.sam
'''
}
docker {
enabled = true
}
process{
container = 'bioinformatist/lncpipe:release-add-gffcompare'
}
[zq@S1 /data1/zq/nextflow]$ nextflow run test.nf
N E X T F L O W ~ version 0.26.0
Launching `test.nf` [friendly_cray] - revision: c797677305
[warm up] executor > local
[34/6c3a5d] Submitted process > test (1)
ERROR ~ Error executing process > 'test (1)'
Caused by:
Process `test (1)` terminated with an error exit status (1)
Command executed:
hisat2 -p 10 --dta -x genome_snp_tran -1 N1177_1.clean.fq.gz -2 N1177_2.clean.fq.gz -S N1177.sam
#touch N1177.sam
Command exit status:
1
Command output:
(empty)
Command error:
Error: Could not open alignment output file N1177.sam
Error: Encountered internal HISAT2 exception (#1)
Command: /opt/hisat2-2.1.0/hisat2-align-s --wrapper basic-0 -p 10 --dta -x genome_snp_tran -S N1177.sam -1 /tmp/7.inpipe1 -2 /tmp/7.inpipe2
(ERR): hisat2-align exited with value 1
Work dir:
/data1/zhaoqi/nextflow/work/34/6c3a5d16031fb476cc7531f88ca188
Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`
-- Check '.nextflow.log' file for details
--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/nextflow.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+unsubscribe@googlegroups.com.