Skip to content
Snippets Groups Projects
Commit 6cc38931 authored by nservant's avatar nservant
Browse files

[Fix] bug in --fasta parameter

parent ebbf0d5c
No related branches found
No related tags found
No related merge requests found
......@@ -181,9 +181,9 @@ if ( params.bwt2_index ){
}
else if ( params.fasta ) {
lastPath = params.fasta.lastIndexOf(File.separator)
fasta_base = params.fasta.substring(lastPath+1)
bwt2_base = fasta_base.toString() - ~/(\.fa)?(\.fasta)?(\.fas)?(\.fsa)?$/
lastPath = params.fasta.lastIndexOf(File.separator)
fasta_base = params.fasta.substring(lastPath+1)
bwt2_base = fasta_base.toString() - ~/(\.fa)?(\.fasta)?(\.fas)?(\.fsa)?$/
Channel.fromPath( params.fasta )
.ifEmpty { exit 1, "Genome index: Fasta file not found: ${params.fasta}" }
......
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