Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
32692078
Commit
32692078
authored
Nov 27, 2015
by
Peter van 't Hof
Browse files
Fix dict generate
parent
339c0413
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/Reference.scala
View file @
32692078
...
...
@@ -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"
)
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment