Skip to content

Commit

Permalink
Support gzipped genome in gem index process
Browse files Browse the repository at this point in the history
  • Loading branch information
emi80 committed Oct 6, 2022
1 parent aeed44e commit 87bbbe8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/gem.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ process indexing {
file "genome_index.gem"

script:
def cat = genome.name.endsWith('.gz') ? 'zcat' : 'cat'
"""
sed 's/ .*//' ${genome} > genome_processed.fa
${cat} ${genome} | sed 's/ .*//' > genome_processed.fa
gem-indexer -i genome_processed.fa \
-o genome_index \
-T ${task.cpus} \
Expand Down

0 comments on commit 87bbbe8

Please sign in to comment.