Commit 32692078 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fix dict generate

parent 339c0413
......@@ -132,7 +132,10 @@ object Reference {
* @param fastaFile Fasta file
*/
def requireDict(fastaFile: File): Unit = {
val dict = new File(fastaFile.getAbsolutePath.stripSuffix(".fa").stripSuffix(".fasta") + ".dict")
val dict = new File(fastaFile.getAbsolutePath
.stripSuffix(".fna")
.stripSuffix(".fa")
.stripSuffix(".fasta") + ".dict")
if (!dict.exists()) Logging.addError("Reference is missing a dict file")
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment