Skip to content
Snippets Groups Projects
Commit 4ea6d963 authored by nfontrod's avatar nfontrod
Browse files

src/nf_modules/Hisat2/test/index.nf : test index creation

parent cc5dda96
No related branches found
No related tags found
2 merge requests!12Creation of a nexflow module for Hisat2,!9Hisat2 working on SGE and docker
/*
* Hisat2 :
* Imputs : fastq files
* Imputs : fasta files
* Output : bam files
*/
/* fasta indexing */
params.fasta = "$baseDir/data/bam/*.fasta"
log.info "fasta files : ${params.fasta}"
Channel
.fromPath( params.fasta )
.ifEmpty { error "Cannot find any fasta files matching: ${params.fasta}" }
.set { fasta_file }
process index_fasta {
tag "$fasta.baseName"
publishDir "results/mapping/index/", mode: 'copy'
input:
file fasta from fasta_file
output:
file "*.index*" into index_files
script:
"""
hisat2-build ${fasta} ${fasta.baseName}.index
"""
}
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