aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset/datastructure.py
diff options
context:
space:
mode:
authorLei Yan2014-02-03 12:28:08 -0600
committerLei Yan2014-02-03 12:28:08 -0600
commitb462fae9df948dbf35232a764d61fbf10c930e82 (patch)
treeabadc34dc66b7fdf53adba9b6505ea327ba2a71f /wqflask/maintenance/dataset/datastructure.py
parentc1bd0f562b5249b9a6911e3873dad8dd853aaab7 (diff)
downloadgenenetwork2-b462fae9df948dbf35232a764d61fbf10c930e82.tar.gz
On branch master
Diffstat (limited to 'wqflask/maintenance/dataset/datastructure.py')
-rw-r--r--wqflask/maintenance/dataset/datastructure.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/wqflask/maintenance/dataset/datastructure.py b/wqflask/maintenance/dataset/datastructure.py
new file mode 100644
index 00000000..73e1c0d8
--- /dev/null
+++ b/wqflask/maintenance/dataset/datastructure.py
@@ -0,0 +1,17 @@
+import sys
+sys.path.append('.')
+sys.path.append('..')
+
+from utilities import db
+
+def get_probesetfreeze(inbredsetid):
+ cursor = db.get_cursor()
+ sql = """
+ SELECT ProbeSetFreeze.`Id`, ProbeSetFreeze.`Name`, ProbeSetFreeze.`FullName`
+ FROM ProbeSetFreeze, ProbeFreeze
+ WHERE ProbeSetFreeze.`ProbeFreezeId`=ProbeFreeze.`Id`
+ AND ProbeFreeze.`InbredSetId`=%s
+ """
+ cursor.execute(sql, (inbredsetid))
+ return cursor.fetchall()
+ \ No newline at end of file