Skip to content

Commit 611c36f

Browse files
committed
Fixed Foldseek Multimer result display
1 parent 7893397 commit 611c36f

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

frontend/ResultFoldseekDB.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ export default {
411411
type: Boolean,
412412
default: false
413413
},
414+
isComplex: {
415+
type: Boolean,
416+
default: false,
417+
},
414418
},
415419
watch: {
416420
filteredHitsTaxIds: {
@@ -481,9 +485,9 @@ export default {
481485
hasEntries() {
482486
return this.entry ? this.entryLength > 0 : false
483487
},
484-
isComplex() {
485-
return this.entry?.alignments?.[0]?.[0]?.complexqtm != null
486-
},
488+
// isComplex() {
489+
// return this.entry?.alignments?.[0]?.[0]?.complexqtm != null
490+
// },
487491
anySelected() {
488492
return this.selectedCounts > 0
489493
},

frontend/ResultView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
:tableMode="tableMode" :entryidx="entryidx" :entry="entry" :toggleSourceDb="toggleSourceDb"
101101
:mode="mode" :selectedStates="selectedStates[entryidx]" :selectedCounts="selectedCountPerDb[entryidx]"
102102
:totalSelectedCounts="selectedCounts" :selectUpperbound="selectUpperbound" :alignment="alignment"
103-
:onlyOne="hits.results.length == 1"
103+
:onlyOne="hits.results.length == 1" :isComplex="isComplex"
104104
@switchTableMode="(n) => switchTableMode(n)"
105105
@forwardDropdown="(e, h) => forwardDropdown(e, h)"
106106
@showAlignment="(i, e) => showAlignment(i, entry.db, e)"
@@ -272,7 +272,7 @@ export default {
272272
return this.hits?.mode ?? "";
273273
},
274274
isComplex() {
275-
if (this.hits?.results?.[0]?.alignments?.[0]?.[0]?.complexqtm != null) {
275+
if (this.hits?.queries?.length > 1) {
276276
return true;
277277
}
278278
return false;

0 commit comments

Comments
 (0)