Skip to content
Snippets Groups Projects
Verified Commit d5cacb23 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

samtools: add gzip for samtools faidx

parent f6605a7d
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,13 @@ process index_fasta {
script:
"""
samtools faidx ${params.index_fasta} ${fasta}
if gzip -t file.gz; then
zcat ${fasta} > ${fasta.simpleName}.fasta
samtools faidx ${params.index_fasta} ${fasta.simpleName}.fasta
else
samtools faidx ${params.index_fasta} ${fasta}
fi
"""
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment