Skip to content

Commit

Permalink
Added taxonomy report parameter in StructureSearchJob branch (#95)
Browse files Browse the repository at this point in the history
* add taxonomy report parameter in StructureSearchJob branch

* make a separate if branch for taxonomy report option
  • Loading branch information
jaebeom-kim authored Dec 2, 2024
1 parent f9bc266 commit 9390348
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ mv -f -- "${BASE}/query.lookup_tmp" "${BASE}/query.lookup"
parameters = append(parameters, "--greedy-best-hits")
}

if params.Taxonomy {
parameters = append(parameters, "--report-mode")
parameters = append(parameters, "0")
}

if params.Taxonomy && job.TaxFilter != "" {
parameters = append(parameters, "--taxon-list")
parameters = append(parameters, job.TaxFilter)
Expand Down

0 comments on commit 9390348

Please sign in to comment.