Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnSeidel committed Nov 14, 2022
1 parent bd080e6 commit fd1837b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clustering/Clustering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ Clustering::Clustering(const std::string &seqDB, const std::string &seqDBIndex,
seqDbr->open(DBReader<unsigned int>::SORT_BY_ID);

SequenceWeights *sequenceWeights = new SequenceWeights(sequenceWeightFile.c_str());
float localid2weight[seqDbr->getSize()];
float *localid2weight = new float[seqDbr->getSize()];
for (size_t id = 0; id < seqDbr->getSize(); id++) {
size_t key = seqDbr->getDbKey(id);
localid2weight[id] = sequenceWeights->getWeightById(key);
}
seqDbr->sortIndex(localid2weight);
delete[] localid2weight;

} else
seqDbr->open(DBReader<unsigned int>::SORT_BY_LENGTH);
Expand Down

0 comments on commit fd1837b

Please sign in to comment.