Skip to content

Commit

Permalink
Allow setting separate multimer search options
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Apr 29, 2024
1 parent 7dd0001 commit 199ce4c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions backend/databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type Params struct {
FullHeader bool `json:"full_header"`
Index string `json:"index"`
Search string `json:"search"`
Multimer string `json:"multimer"`
Status Status `json:"status"`
}

Expand Down Expand Up @@ -177,6 +178,7 @@ func UpgradeParams(filename string) (Params, error) {
paramsNew.Order = paramsOld.Display.Order
paramsNew.Index = paramsOld.Display.Index
paramsNew.Search = paramsOld.Display.Search
paramsNew.Multimer = ""
paramsNew.Status = paramsOld.Status

err = SaveParams(filename, paramsNew)
Expand Down
1 change: 1 addition & 0 deletions backend/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ func server(jobsystem JobSystem, config ConfigRoot) {
false,
req.FormValue("index"),
req.FormValue("search"),
"",
StatusPending,
}

Expand Down
8 changes: 7 additions & 1 deletion backend/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,13 @@ mv -f -- "${BASE}/query.lookup_tmp" "${BASE}/query.lookup"
"--complex-report-mode",
"0",
}
parameters = append(parameters, strings.Fields(params.Search)...)

par := params.Search
if params.Multimer != "" {
par = params.Multimer
}

parameters = append(parameters, strings.Fields(par)...)

if job.Mode == "summary" {
parameters = append(parameters, "--greedy-best-hits")
Expand Down

0 comments on commit 199ce4c

Please sign in to comment.