From d478cba4e12cfafe0345666628bbeb0fbe49e13f Mon Sep 17 00:00:00 2001 From: Rob Court Date: Sat, 9 Dec 2023 19:29:53 +0000 Subject: [PATCH] removing any passed double quotes problem issue: UPDATE feature_expression SET hemidriver = "FBtp0121686" WHERE tg = "FBtp0118626" AND comment = "when combined with @FBtp0121686:P{R39H12-GAL4.DBD}@ (combination referred to as '"T4/T5a,d-splitGal4"')" --- src/uk/ac/ebi/vfb/neo4j/flybase2neo/expression_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uk/ac/ebi/vfb/neo4j/flybase2neo/expression_runner.py b/src/uk/ac/ebi/vfb/neo4j/flybase2neo/expression_runner.py index 55452512..aa6fdda4 100644 --- a/src/uk/ac/ebi/vfb/neo4j/flybase2neo/expression_runner.py +++ b/src/uk/ac/ebi/vfb/neo4j/flybase2neo/expression_runner.py @@ -128,8 +128,8 @@ def proc_splits(eng): m2 = re.match('.*{.*(DBD|AD).*}', m.group(2)) # If it is a split: if m2: - hemidriver_id = m.group(1) - hemidriver_type = m2.group(1) + hemidriver_id = m.group(1).replace('"', '') + hemidriver_type = m2.group(1).replace('"', '') # link hemidriver to feature_expression table in temp DB eng.execute('UPDATE feature_expression SET hemidriver = "%s" ' 'WHERE tg = "%s" '