14.08.2013 Views

Tutorial slides (PDF) - Clemson University

Tutorial slides (PDF) - Clemson University

Tutorial slides (PDF) - Clemson University

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.

Define actions<br />

in controllers/default.py<br />

def index():<br />

rows=db(db.dna.id).select(db.dna.id,db.dna.name)<br />

return dict(rows=rows)<br />

@auth.requires_login()<br />

def gene_size():<br />

dna = db.dna[request.args(0)] or \<br />

redirect(URL(r=request,f='index'))<br />

lengths = find_gene_size(dna.sequence)<br />

return hist(data={'Lengths':lengths})

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

Saved successfully!

Ooh no, something went wrong!