Skip to content

Commit 9c13275

Browse files
committed
Skip targets in expand that don't have associated alignments
1 parent afec6f7 commit 9c13275

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/util/expandaln.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,11 @@ int expandaln(int argc, const char **argv, const Command& command, bool returnAl
268268

269269
unsigned int bResKey = resultAb.dbKey;
270270
size_t bResId = resultBcReader->getId(bResKey);
271-
// if (isCa3m) {
272-
// unsigned int key;
273-
// CompressedA3M::extractMatcherResults(key, resultsBc, resultBcReader.getData(bResId, thread_idx), resultBcReader.getEntryLen(bResId), *cReader, false);
271+
if (bResId == UINT_MAX) {
272+
Debug(Debug::WARNING) << "Missing alignments for sequence " << bResKey << "\n";
273+
continue;
274+
}
274275
Matcher::readAlignmentResults(resultsBc, resultBcReader->getData(bResId, thread_idx), false);
275-
276276
if (filterBc) {
277277
bool hasRep = false;
278278
for (size_t k = 0; k < resultsBc.size(); ++k) {

0 commit comments

Comments
 (0)