Skip to content

Commit 9a75d59

Browse files
committed
Remove gap costs changes for foldmason
1 parent 92120f9 commit 9a75d59

3 files changed

Lines changed: 2 additions & 29 deletions

File tree

backend/foldmasonmsa.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@ import (
55
"encoding/base64"
66
"os"
77
"path/filepath"
8-
"strconv"
98
"strings"
109
)
1110

1211
type FoldMasonMSAJob struct {
1312
Queries []string `json:"queries"`
1413
FileNames []string `json:"fileNames"`
15-
GapOpen int64 `json:"gapOpen"`
16-
GapExtend int64 `json:"gapExtend"`
1714
}
1815

1916
func (r FoldMasonMSAJob) Hash() Id {
@@ -22,8 +19,6 @@ func (r FoldMasonMSAJob) Hash() Id {
2219
for _, query := range r.Queries {
2320
h.Write([]byte(query))
2421
}
25-
h.Write([]byte(strconv.FormatInt(r.GapOpen, 10)))
26-
h.Write([]byte(strconv.FormatInt(r.GapExtend, 10)))
2722
bs := h.Sum(nil)
2823
return Id(base64.URLEncoding.WithPadding(base64.NoPadding).EncodeToString(bs))
2924
}
@@ -61,8 +56,6 @@ func NewFoldMasonMSAJobRequest(
6156
job := FoldMasonMSAJob{
6257
queries,
6358
fileNames,
64-
gapOpen,
65-
gapExtend,
6659
}
6760
request := JobRequest{
6861
job.Hash(),

backend/worker.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,10 +1435,6 @@ rm -rf -- "${BASE}/tmp"
14351435
filepath.Join(resultBase, "pdbs/"),
14361436
filepath.Join(resultBase, "foldmason"),
14371437
filepath.Join(resultBase, "tmp/"),
1438-
"--gap-open",
1439-
strconv.FormatInt(job.GapOpen, 10),
1440-
"--gap-extend",
1441-
strconv.FormatInt(job.GapExtend, 10),
14421438
"--report-mode",
14431439
"2",
14441440
"--report-paths",

frontend/FoldMasonSearch.vue

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
</template>
6363
</panel>
6464
</v-flex>
65-
<v-flex xs12>
65+
<!-- <v-flex xs12>
6666
<panel collapsible collapsed render-collapsed>
6767
<template slot="header">Alignment settings</template>
6868
<template slot="toolbar-extra">
@@ -92,7 +92,7 @@
9292
/>
9393
</div>
9494
</panel>
95-
</v-flex>
95+
</v-flex> -->
9696
<v-flex>
9797
<panel>
9898
<template slot="content">
@@ -132,16 +132,6 @@ import Databases from './Databases.vue';
132132
import QueryTextarea from "./QueryTextarea.vue";
133133
import DragUploadBox from "./DragUploadBox.vue";
134134
135-
const defaultParams = {
136-
wg: true,
137-
filterMsa: false,
138-
compBias: false,
139-
matchRatio: 0.52,
140-
gapOpen: 20,
141-
gapExtend: 2,
142-
refineIters: 0
143-
};
144-
145135
export default {
146136
name: "FoldMasonSearch",
147137
tool: "foldmason",
@@ -163,7 +153,6 @@ export default {
163153
inSearch: false,
164154
errorMessage: { type: null, message: "" },
165155
queries: [], // [ { name: "file", text: "ATOM..." }, { name: "file", text: "ATOM..." } ...]
166-
params: structuredClone(defaultParams),
167156
inFileDrag: false,
168157
accessionLoading: false,
169158
};
@@ -223,8 +212,6 @@ export default {
223212
params.append('fileNames[]', v.name);
224213
params.append('queries[]', new Blob([v.text], { type: 'text/plain' }), v.name);
225214
});
226-
params.append('gapOpen', this.params.gapOpen);
227-
params.append('gapExtend', this.params.gapExtend);
228215
229216
try {
230217
this.inSearch = true;
@@ -310,9 +297,6 @@ export default {
310297
);
311298
fr.readAsText(file)
312299
},
313-
resetParams() {
314-
this.params = structuredClone(defaultParams);
315-
},
316300
}
317301
};
318302
</script>

0 commit comments

Comments
 (0)