aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset/datastructure/datastructure.py
blob: ed429cb457d506e109ca93851074a0951a00aa7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import sys
sys.path.append('.')
sys.path.append('..')

from utilities import db

def get_type(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()
    
	
print get_type()