Convert Rami's DataRun feature to something useful to us.
authorDiane Trout <diane@caltech.edu>
Sat, 11 Jun 2011 00:14:16 +0000 (17:14 -0700)
committerDiane Trout <diane@caltech.edu>
Sat, 11 Jun 2011 00:24:19 +0000 (17:24 -0700)
commite31e82da5beb1760cd59952be67a758014a27c51
tree84df1d2f99676c3b315a208929a2f02abc2e1fdf
parentd4d9aafe47132a76b17792bfe7a4202a20f2c0c2
Convert Rami's DataRun feature to something useful to us.
(and more)

The data run captures some of the core values of a run, namely
the location of the result directory (relative to settings.RESULT_HOME_DIR)
and what the run cycle start/stop was.

The code will also scan the result directory looking for files whose
names match patterns stored in the FileType table and link those
to the DataRun in a DataFile table.

An unresolved issue is when & how often to scan the result directory --
currently when a live site flowcell is viewed it will look in the result
directory and import whatever it sees there. If it sees that result folder
again it wont bother to try and import it.

I might imagine problems if someone's hitting reload on a flowcell page
while the result files are being copied in.

I still need to implement a table to store results imported from the
run xml file. Also the old result folder scanning code used in the library
page should probably be updated to use the newer DataRun files.

Lastly there were some layout changes to a few pages and some
CSS rules got relocated.
16 files changed:
htsworkflow/frontend/experiments/admin.py
htsworkflow/frontend/experiments/fixtures/initial_data.json [new file with mode: 0644]
htsworkflow/frontend/experiments/fixtures/test_flowcells.json
htsworkflow/frontend/experiments/models.py
htsworkflow/frontend/experiments/tests.py
htsworkflow/frontend/experiments/urls.py
htsworkflow/frontend/experiments/views.py
htsworkflow/frontend/samples/models.py
htsworkflow/frontend/samples/views.py
htsworkflow/frontend/static/css/app.css
htsworkflow/frontend/templates/experiments/flowcell_detail.html
htsworkflow/frontend/templates/experiments/flowcell_lane_detail.html
htsworkflow/frontend/templates/sample_header.html [new file with mode: 0644]
htsworkflow/frontend/templates/samples/library_detail.html
htsworkflow/frontend/urls.py
htsworkflow/pipelines/test/test_retrive_config.py