From 54b841995aca04497c1f66baa719927c797ee269 Mon Sep 17 00:00:00 2001 From: barillac <barillac> Date: Tue, 18 Aug 2015 09:26:49 +0000 Subject: [PATCH] small fix SVN: 34485 --- .../dss/drop-boxes/add_strain_parents/add_strain_parents.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plasmid/source/core-plugins/weismigration/1/dss/drop-boxes/add_strain_parents/add_strain_parents.py b/plasmid/source/core-plugins/weismigration/1/dss/drop-boxes/add_strain_parents/add_strain_parents.py index 173fe4d204d..c33b3ffc582 100644 --- a/plasmid/source/core-plugins/weismigration/1/dss/drop-boxes/add_strain_parents/add_strain_parents.py +++ b/plasmid/source/core-plugins/weismigration/1/dss/drop-boxes/add_strain_parents/add_strain_parents.py @@ -56,6 +56,11 @@ def update_sample_with_parents(tr, sample_dict): parents_code_list.append(yeast_parent_id) print "PARENTS: ", parents_code_list sample_for_update.setParentSampleIdentifiers(parents_code_list) + elif re.search ("Kwy ", name): + yeast_parent_id = "/MATERIALS/"+name.replace("Kwy ","KWY").strip() + parents_code_list.append(yeast_parent_id) + print "PARENTS: ", parents_code_list + sample_for_update.setParentSampleIdentifiers(parents_code_list) elif re.search ("KWY ", name): yeast_parent_id = "/MATERIALS/"+name.replace("KWY ","KWY").strip() parents_code_list.append(yeast_parent_id) -- GitLab