Skip to content

Commit

Permalink
Add pre-merge back in to HHsuite (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Aug 9, 2020
1 parent d755970 commit 9f32b44
Show file tree
Hide file tree
Showing 5 changed files with 1,687 additions and 1,584 deletions.
4 changes: 3 additions & 1 deletion src/hhalign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ void HHalign::run(FILE* query_fh, char* query_path) {

Hit hit_cur;
Hash<Hit>* previous_hits = new Hash<Hit>(1631, hit_cur);
Hash<Hit>* premerged_hits = new Hash<Hit>(1631, hit_cur);

Qali = new Alignment(par.maxseq, par.maxres);
Qali_allseqs = new Alignment(par.maxseq, par.maxres);
Expand Down Expand Up @@ -643,7 +644,7 @@ void HHalign::run(FILE* query_fh, char* query_path) {
perform_realign(q_vec, input_format, new_entries, 1);
}

mergeHitsToQuery(previous_hits, seqs_found, cluster_found, 1);
mergeHitsToQuery(previous_hits, premerged_hits, seqs_found, cluster_found, 1);

// Calculate pos-specific weights, AA frequencies and transitions -> f[i][a], tr[i][a]
Qali->FrequenciesAndTransitions(q, par.wg, par.mark, par.cons, par.showcons, pb, Sim, NULL, true);
Expand All @@ -660,4 +661,5 @@ void HHalign::run(FILE* query_fh, char* query_path) {
while (!previous_hits->End())
previous_hits->ReadNext().Delete(); // Delete hit object
delete previous_hits;
delete premerged_hits;
}
Loading

0 comments on commit 9f32b44

Please sign in to comment.