Skip to content

Commit 08fc046

Browse files
committed
Deleted the code related to interface search mode
1 parent b357a72 commit 08fc046

File tree

5 files changed

+4
-42
lines changed

5 files changed

+4
-42
lines changed

backend/complexsearchjob.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ import (
1010
)
1111

1212
type ComplexSearchJob struct {
13-
Size int `json:"size" validate:"required"`
14-
Database []string `json:"database" validate:"required"`
15-
Mode string `json:"mode" validate:"oneof=3di tmalign 3diaa lolalign"`
16-
// Interface bool `json:"interface"`
17-
TaxFilter string `json:"taxfilter"`
13+
Size int `json:"size" validate:"required"`
14+
Database []string `json:"database" validate:"required"`
15+
Mode string `json:"mode" validate:"oneof=3di tmalign 3diaa lolalign"`
16+
TaxFilter string `json:"taxfilter"`
1817
query string
1918
}
2019

@@ -23,7 +22,6 @@ func (r ComplexSearchJob) Hash() Id {
2322
h.Write(([]byte)(JobComplexSearch))
2423
h.Write([]byte(r.query))
2524
h.Write([]byte(r.Mode))
26-
// h.Write([]byte(strconv.FormatBool(r.Interface)))
2725
if r.TaxFilter != "" {
2826
h.Write([]byte(r.TaxFilter))
2927
}
@@ -50,13 +48,11 @@ func (r ComplexSearchJob) WritePDB(path string) error {
5048
return nil
5149
}
5250

53-
// func NewComplexSearchJobRequest(query string, dbs []string, validDbs []Params, mode string, isInterface bool, resultPath string, email string, taxfilter string) (JobRequest, error) {
5451
func NewComplexSearchJobRequest(query string, dbs []string, validDbs []Params, mode string, resultPath string, email string, taxfilter string) (JobRequest, error) {
5552
job := ComplexSearchJob{
5653
max(strings.Count(query, "HEADER"), 1),
5754
dbs,
5855
mode,
59-
// isInterface,
6056
taxfilter,
6157
query,
6258
}

backend/server.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ func server(jobsystem JobSystem, config ConfigRoot) {
277277
var dbs []string
278278
var mode string
279279
var email string
280-
// var isInterface bool
281280
var iterativesearch bool
282281
var taxfilter string
283282

@@ -299,7 +298,6 @@ func server(jobsystem JobSystem, config ConfigRoot) {
299298
query = buf.String()
300299
dbs = req.Form["database[]"]
301300
mode = req.FormValue("mode")
302-
// isInterface = req.FormValue("interface") == "true"
303301
email = req.FormValue("email")
304302
iterativesearch = req.FormValue("iterativesearch") == "true"
305303
taxfilter = req.FormValue("taxfilter")
@@ -312,7 +310,6 @@ func server(jobsystem JobSystem, config ConfigRoot) {
312310
query = req.FormValue("q")
313311
dbs = req.Form["database[]"]
314312
mode = req.FormValue("mode")
315-
// isInterface = req.FormValue("interface") == "true"
316313
email = req.FormValue("email")
317314
iterativesearch = req.FormValue("iterativesearch") == "true"
318315
taxfilter = req.FormValue("taxfilter")
@@ -332,7 +329,6 @@ func server(jobsystem JobSystem, config ConfigRoot) {
332329
modeIdx := isIn("complex", modes)
333330
if modeIdx != -1 {
334331
modeWithoutComplex := strings.Join(append(modes[:modeIdx], modes[modeIdx+1:]...), "-")
335-
// request, err = NewComplexSearchJobRequest(query, dbs, databases, modeWithoutComplex, isInterface, config.Paths.Results, email, taxfilter)
336332
request, err = NewComplexSearchJobRequest(query, dbs, databases, modeWithoutComplex, config.Paths.Results, email, taxfilter)
337333
} else {
338334
request, err = NewStructureSearchJobRequest(query, dbs, databases, mode, config.Paths.Results, email, iterativesearch, taxfilter)

frontend/ApiDialog.vue

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
<span v-if="mode">
2222
&nbsp;&nbsp;-F 'mode={{mode}}' \<br>
2323
</span>
24-
<!-- <span v-if="interface">
25-
&nbsp;&nbsp;-F 'interface={{interface}}' \<br>
26-
</span> -->
2724
<span v-if="taxfilter">
2825
&nbsp;&nbsp;-F 'taxfilter={{taxfilter}}' \<br>
2926
</span>
@@ -48,7 +45,6 @@ with open(file, "rb") as f:
4845
<span style="white-space: normal;">
4946
<span v-if="email">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;("email", "{{ email }}"),<br></span>
5047
<span v-if="mode">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;("mode", "{{ mode }}"),<br></span>
51-
<!-- <span v-if="interface">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;("interface", "{{ interface }}"),<br></span> -->
5248
<span v-if="taxfilter">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;("taxfilter", "{{ taxfilter }}"),<br></span>
5349
<span v-for="(path, i) in database" :key="`db-${i}`">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;("database[]", "{{ path }}"),<br></span>
5450
<span v-for="(val, key) in $attrs" :key="key">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;("{{ key }}", "{{ val }}"),<br></span>
@@ -84,10 +80,6 @@ export default {
8480
type: String,
8581
default: ''
8682
},
87-
// interface: {
88-
// type: Boolean,
89-
// default: false
90-
// },
9183
database: {
9284
type: Array,
9385
default: []

frontend/MultimerSearch.vue

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
</template>
1313
</template>
1414
<template slot="toolbar-extra">
15-
<!-- :interface="interface" -->
1615
<api-dialog
1716
:disabled="searchDisabled"
1817
:email="email"
@@ -64,7 +63,6 @@
6463
:hideEmail="hideEmail"
6564
:multimer-only="true"
6665
></databases>
67-
<!-- :interface="interface" -->
6866

6967
<v-radio-group v-model="mode">
7068
<v-tooltip open-delay="300" top>
@@ -81,17 +79,6 @@
8179
></v-radio>
8280
</v-radio-group>
8381

84-
<!-- <v-checkbox v-model="interface" hide-details>
85-
<template v-slot:label>
86-
<v-tooltip open-delay="300" top>
87-
<template v-slot:activator="{ on }">
88-
<label v-on="on">Interface&nbsp;<v-icon color="#FFFFFFB3" style="margin-top:-3px" small v-on="on">{{ $MDI.HelpCircleOutline }}</v-icon></label>
89-
</template>
90-
<span v-html="$STRINGS.MODE_HELP_INTERFACE"></span>
91-
</v-tooltip>
92-
</template>
93-
</v-checkbox>
94-
-->
9582
<TaxonomyAutocomplete v-model="taxFilter"></TaxonomyAutocomplete>
9683

9784
<v-tooltip v-if="!$ELECTRON && !hideEmail" open-delay="300" top>
@@ -184,7 +171,6 @@ export default {
184171
mode: storage.getItem('mode') || ('complex-' + this.$STRINGS.MODE_DEFAULT_KEY),
185172
modes: Array.from({length: this.$STRINGS.MODE_COUNT - 0}, (_, i) => i + 1)
186173
.reduce((dict, i, _) => { dict[this.$STRINGS['MODE_KEY_' + i]] = this.$STRINGS['MODE_TITLE_' + i]; return dict; }, {}),
187-
// interface: (storage.getItem('interface') === 'true') || false,
188174
email: storage.getItem('email') || "",
189175
hideEmail: true,
190176
query: "",
@@ -228,9 +214,6 @@ export default {
228214
mode(value) {
229215
storage.setItem('mode', value);
230216
},
231-
// interface(value) {
232-
// storage.setItem('interface', value);
233-
// },
234217
email(value) {
235218
storage.setItem('email', value);
236219
},
@@ -253,7 +236,6 @@ export default {
253236
q: this.query,
254237
database: this.database,
255238
mode: this.mode,
256-
// interface: this.interface,
257239
email: this.email
258240
};
259241
if (typeof(request.q) === 'string' && request.q != '') {

frontend/assets/foldseek.en_US.po

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,6 @@ msgstr ""
150150
"<strong>LoLAlign:</strong> fast prefilter using the 3Di alphabet and "
151151
"alignment using LoL-align (probabilistic multi-domain structure alignment)"
152152

153-
msgid "MODE_HELP_INTERFACE"
154-
msgstr ""
155-
"Search for similar protein-protein interfaces."
156-
157153
msgid "MODE_COUNT"
158154
msgstr "3"
159155

0 commit comments

Comments
 (0)