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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Appendix C<br />
# <strong>Sample</strong> analysis from Cleansin_Graphics_7_23.py after visual batch inspection (Graphic,<br />
Graphic_nobatch, <strong>or</strong> Graphic_MSR (raw data) functions in same file)<br />
def Driver(usr, pswd, db, gfiles, logfile):<br />
Cel_Probe_Filter(usr, pswd, db, gfiles[0], logfile)<br />
Cel_Probeset_Filter(usr, pswd, db, gfiles[1], logfile)<br />
def Cel_Probe_Filter(usr, pswd, db, gfile, logfile):<br />
cur, conn= make_connect(usr, pswd, db)<br />
msk, Lmsk, state=get_inc_mask(cur)<br />
cc=zeros(len(Lmsk))<br />
states=get_unique_states(cur)<br />
f<strong>or</strong> i in range(len(state)):<br />
cc[i]=states.index(state[i])<br />
r.pdf(gfile, height=11, width=8)<br />
r.par(mfrow=r.c(2,1))<br />
fp=open(logfile,'a')<br />
f<strong>or</strong> i in range(len(states)):<br />
ptr=nonzero(equal(i,cc))<br />
mu, prbs = zeros(len(ptr), Float), zeros(len(ptr), Float)<br />
x=range(len(ptr))<br />
nbr=len(ptr)<br />
k=0<br />
f<strong>or</strong> j in ptr:<br />
tmp='select signalrawintensity from '+ msk[j]+'_sr4'<br />
cur.execute(tmp)<br />
rows=cur.fetchall()<br />
prbs[k]=len(rows)<br />
mu[k]=(sum(rows)[0])/prbs[k]<br />
k+=1<br />
# plot intensities<br />
r.plot(x, mu, main='Intensity Filter ('+states[i]+')',<br />
xlab='Array Number', ylab='Average Cel Intensity', pch=21, col='blue',<br />
ylim=r.c(r.mean(mu)-(2.5*r.sd(mu)), r.mean(mu)+(2.5*r.sd(mu))))<br />
# 2 std dev<br />
r.lines(x, r.rep(r.mean(mu)-(2*r.sd(mu)), nbr),<br />
col=r.rgb(227/256.,26/256.,28/256.), lty=3, lwd=1)<br />
r.lines(x, r.rep(r.mean(mu)+(2*r.sd(mu)), nbr),<br />
col=r.rgb(227/256.,26/256.,28/256.), lty=3, lwd=1)<br />
# 1 std dev<br />
r.lines(x, r.rep(r.mean(mu)-r.sd(mu), nbr),<br />
col='turquoise', lty=4, lwd=1)<br />
r.lines(x, r.rep(r.mean(mu)+r.sd(mu), nbr),<br />
col='turquoise', lty=4, lwd=1)<br />
# mean<br />
r.lines(x, r.rep(r.mean(mu), nbr), lty=2, lwd=2)<br />
138