Skip to content
Snippets Groups Projects
Commit 4e0ed4ff authored by Hottlet Valentin's avatar Hottlet Valentin
Browse files

Refine error_margin handling based on method type.

parent 397b1fe1
No related branches found
No related tags found
1 merge request!8Tests docker
...@@ -207,7 +207,11 @@ def launch_software(run_id, req): ...@@ -207,7 +207,11 @@ def launch_software(run_id, req):
if 'limit_path' in req: if 'limit_path' in req:
limit_arg = req["limit_path"] limit_arg = req["limit_path"]
command += " -l " + limit_arg command += " -l " + limit_arg
if 'error_margin' in req: if 'error_margin' in req and method != "allpeptides":
error_arg = req["error_margin"]
command += " -e " + str(error_arg)
elif method == "allpeptides" and 'error_margin' in req:
if 'spectra_dir' in req:
error_arg = req["error_margin"] error_arg = req["error_margin"]
command += " -e " + str(error_arg) command += " -e " + str(error_arg)
if 'taxo_file' in req: if 'taxo_file' in req:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment