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

Fix fai check

parent 6ac2ce38
......@@ -121,7 +121,6 @@ object Reference {
*/
def requireFai(fastaFile: File): Unit = {
val fai = new File(fastaFile.getAbsolutePath + ".fai")
require(fai.exists(), "Reference is missing a fai file")
if (fai.exists()) {
if (!IndexedFastaSequenceFile.canCreateIndexedFastaReader(fastaFile))
Logging.addError(s"Index of reference cannot be loaded, reference: $fastaFile")
......
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