02.08.2013 Views

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

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A<br />

# This is the main driver function in the CleansingPrep_6_23.py file which prepares the<br />

ProbeFATE system f<strong>or</strong> the BaFL filter cleansing<br />

# tables parameter is a list <strong>of</strong> files to imp<strong>or</strong>t <strong>or</strong> create<br />

# example files are in the Supplementary Materials:<br />

1) MissingQuantitation.csv quantitation types which I add to the system<br />

2) Known.csv calculates <strong>or</strong> uses previously calculated deltaG (OligoArrayAux ) values<br />

f<strong>or</strong> probes with known sequences, flag meth[0] differentiates<br />

3) <strong>Sample</strong>Mask.csv a file which describes the data (abbrev. sample sd, <strong>or</strong>ig sample id,<br />

the associated .cel file, disease class, and the file source f<strong>or</strong> this inf<strong>or</strong>mation<br />

4) SNP_by_pos.csv a file created w/ Sunita.py, which parses the inf<strong>or</strong>mation from<br />

AffyMAPSDetect<strong>or</strong> output<br />

5) probe_mapping.csv file is created through ENSEMBL mappings <strong>or</strong> probes, flag[1]<br />

indicates whether the latest ENSEMBL build is used otherwise the build needs to be<br />

provided<br />

def prepareCleansing(db, usr, pswd, fpath, logfile, tables, meth):<br />

# tables = [added_qts, sample_info, snp_info, xhybrid_info]<br />

# add new qts<br />

i=0<br />

CreateNew_QTs(db, usr, pswd, tables[0], logfile)<br />

i+=1<br />

# map known chip sequence info<br />

if lower(meth[0])=='copy':<br />

Copy_deltaG(db, usr, pswd, tables[1], logfile)<br />

i+=1<br />

elif lower(meth[0][:4])=='calc':<br />

Calc_deltaG(db, usr, pswd, fpath, logfile)<br />

else:<br />

print 'Method:', meth[0], 'does not exist.'<br />

return -1<br />

# set sample mask<br />

<strong>Sample</strong>_mask(db, usr, pswd, logfile, tables[i])<br />

i+=1<br />

# map SNP info<br />

SNP_mask(db, usr, pswd, tables[i], logfile)<br />

i+=1<br />

# map xhybridization info<br />

if lower(meth[1])=='new':<br />

new_Xhybrid(db, usr, pswd, tables[i], logfile)<br />

else:<br />

version_Xhybrid(db, usr, pswd, tables[i], logfile, meth[1])<br />

Mod_wk_registry(db, usr, pswd)<br />

print '\nXHYBRID INFO MAPPED\n'<br />

print '\n\tALMOST READY TO PROBE CLEANSE\n'<br />

131

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!