-
Notifications
You must be signed in to change notification settings - Fork 1
Python Wrapper
Handles design run submissions.
design_?d(): Presents the empty design page.
design_?d_run(): Handles the AJAX POST request.
- It parses and tests the inputs, spawns a job in background using threading.Thread, and adds JOB_ID to database.
- It creates a waiting page HTML for display.
- A JSON response is returned for page refreshing, while the threaded job runs in parallel.
demo_?d(): Presents the demo result page.
demo_?d_run(): Handles the AJAX POST request for running demo. It takes default parameter and spawns the threading.Thread job.
random_?d(): is to test for random input and remains unknown to public. It generates a random sequence first, and follow the same steps as other jobs.
design_?d_wrapper(): Calls
primerizedesign code and processes the result.
- It creates a error, or fail, or success page HTML for display, overwriting the previous waiting page.
- It renders a graphical HTML result page by parsing the result instance from
primerize. - It updates the JOB_ID entry in MySQL of its status, time and results.
For 2D and 3D:
- The result folder is zipped using zipfile in python.
- A JSON file is saved for d3.js 96-well plate drawing. Wild-Type primers are overridden by color green.
design_?d_from_?d(): Like /result/, it pre-fills the form with previous inputs, and redirects to design_?d() with flag from_?d set. The HTTP_REFERER in the request.META is required to parse JOB_ID.
New Admin Setup
Admin Responsibility
Server Environment
Overview
Linux
Python