Sample A: Cover Page of Thesis, Project, or Dissertation Proposal
Sample A: Cover Page of Thesis, Project, or Dissertation Proposal
Sample A: Cover Page of Thesis, Project, or Dissertation Proposal
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
cur, conn=UpdateW<strong>or</strong>kReg(cur, conn, 'Intersect_'+k, exp,<br />
'Intersect_'+k, usr, k+'_sr'+str(rgr), 'statistical_filter', notes+i)<br />
desc=['probeset_id','pm_mm_other','x','y','probe_index','SRIs']<br />
fp.write('\nCreated Table:\tIntersect_'+k+'\n')<br />
fp=UpdateOntology3(usr, pswd, db, desc, exp,<br />
'Intersect_'+k, 'Intersect_'+k, notes+i, 'statistical rig<strong>or</strong> not<br />
enf<strong>or</strong>ced', fp)<br />
conn.close()<br />
fp.close()<br />
# Intersect all two class datasets<br />
def ModelIntersect(usr, pswd, db, logfile, gt=4):<br />
cur, conn= make_connect(usr, pswd, db)<br />
states=get_unique_states(cur)<br />
vals=['probe_index', 'x', 'y', 'pm_mm_other']<br />
exp=get_exp(usr, pswd, db)<br />
notes='intersection <strong>of</strong> '<br />
fp=open(logfile, 'a')<br />
f<strong>or</strong> i in range(len(states)-1):<br />
class1=states[i]<br />
pt=find(class1,' ')<br />
if pt>0:<br />
class1=states[i][:pt]+states[i][pt+1:]<br />
msk1, Lmsk1, state1, cel1=get_inc_state(cur, states[i])<br />
tmp1='create table temp1 as select<br />
intersect_'+class1+'.probeset_id'<br />
f<strong>or</strong> k in vals:<br />
tmp1=tmp1+ ', intersect_'+class1+'.'+k<br />
f<strong>or</strong> k in msk1:<br />
tmp1=tmp1+ ', intersect_'+class1+'.'+k+' as '+k<br />
f<strong>or</strong> j in range(i+1, len(states)):<br />
tmp=tmp1<br />
class2=states[j]<br />
pt=find(class2,' ')<br />
if pt>0:<br />
class2=states[j][:pt]+states[j][pt+1:]<br />
msk2, Lmsk2, state2, cel2=get_inc_state(cur,<br />
states[j])<br />
f<strong>or</strong> k in msk2:<br />
tmp=tmp+ ', intersect_'+class2+'.'+k+' as '+k<br />
tmp=tmp+' where intersect_'+class1+'.x =<br />
intersect_'+class2+'.x and intersect_'+class1+'.y =<br />
intersect_'+class2+'.y '<br />
tmp=tmp+ '<strong>or</strong>der by intersect_'+class1+'.probeset_id,<br />
intersect_'+class1+'.probe_index'<br />
cur.execute(tmp)<br />
conn.commit()<br />
#print '\n\n', tmp, '\n\n'<br />
145