Skip to content

Commit

Permalink
Add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
seppinho committed May 24, 2024
1 parent 7353436 commit 6cbc0a2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/local/index_creation.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
process INDEX_CREATION {
input:
path reference
val mtdna_tag

output:
path "ref*.{dict,fai}", emit: fasta_index_ch
path "ref.fasta", emit: ref_ch

"""
sed -e "s/^>.*/>$mtdna_tag/" $reference > ref.fasta
samtools faidx ref.fasta
samtools dict ref.fasta \
-o ref.dict
"""
}

0 comments on commit 6cbc0a2

Please sign in to comment.