@Throws(IOException::class) fun SdfReaderWrapper(sdfDir: File?, useMem: Boolean, checkConsistency: Boolean) { mIsPaired = jdk.internal.org.jline.reader.impl.ReaderUtils.isPairedEndDirectory(sdfDir) if (mIsPaired) { mSingle = null mLeft = createSequencesReader( jdk.internal.org.jline.reader.impl.ReaderUtils.getLeftEnd(sdfDir), useMem ) mRight = createSequencesReader( jdk.internal.org.jline.reader.impl.ReaderUtils.getRightEnd(sdfDir), useMem ) if (checkConsistency) { if (mLeft.numberSequences() !== mRight.numberSequences() || !mLeft.type() .equals(mRight.type()) || mLeft.hasQualityData() !== mRight.hasQualityData() || mLeft.hasNames() !== mRight.hasNames() ) { throw NoTalkbackSlimException( ErrorType.INFO_ERROR, "Paired end SDF has inconsistencies between arms." ) } } } else { mLeft = null mRight = null mSingle = createSequencesReader(sdfDir, useMem) } }
Wrapper for the readers .