Skip to content

Commit

Permalink
Fix input file name and prefix in genomeIndex process - more fixes for
Browse files Browse the repository at this point in the history
  • Loading branch information
emi80 committed Jul 12, 2018
1 parent bb22380 commit e0b442f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipsa.nf
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ log.info ""
if (params.genome =~ /.fa(sta)?$/) {
process genomeIndex {
input:
file genome from file(params.genome)
file("genome.fa") from genomeChan

output:
set file("${prefix}.dbx"), file("${prefix}.idx") into genomeIdx

script:
prefix = genome.name.replace(/.fa/, '')
prefix = file(params.genome).name.replaceAll(/.fa(sta)?$/, '')
"""
transf -dir ./${genome} -dbx ${prefix}.dbx -idx ${prefix}.idx -exactdir
transf -dir ./genome.fa -dbx ${prefix}.dbx -idx ${prefix}.idx -exactdir
"""
}
} else {
Expand Down

0 comments on commit e0b442f

Please sign in to comment.