Commit 7cb8e0ee authored by Mikaël Salson's avatar Mikaël Salson

controllers/default.py: rename repertoires

original_names and keys in the distributions.repertoires dictionary must be identical
Fix #4033
parent 8194bba6
Pipeline #102269 passed with stages
in 8 minutes and 43 seconds
......@@ -340,7 +340,11 @@ def get_data():
data["samples"]["run_id"] = []
for i in range(len(data["samples"]["original_names"])) :
o_n = data["samples"]["original_names"][i].split('/')[-1]
data["samples"]["original_names"][i] = data["samples"]["original_names"][i].split('/')[-1]
if 'distributions' in data and 'repertoires' in data['distributions']:
data['distributions']['repertoires'][o_n] = data['distributions']['repertoires'][data["samples"]["original_names"][i]]
del data['distributions']['repertoires'][data["samples"]["original_names"][i]]
data["samples"]["original_names"][i] = o_n
data["samples"]["config_id"].append(request.vars['config'])
data["samples"]["db_key"].append('')
data["samples"]["commandline"].append(command)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment