2010 ADWCreate an image uploader program from scratch » History » Version 8
Neil Voss, 06/11/2010 09:50 AM
1 | 1 | Neil Voss | h1. Create an image uploader program from scratch |
---|---|---|---|
2 | |||
3 | 2 | Neil Voss | |
4 | |||
5 | h2. Problem statement: |
||
6 | |||
7 | We want to upload images, including defocal pairs into the database |
||
8 | |||
9 | 4 | Neil Voss | * four types of data collection: tomogram, tiltseries (RCT/OTR), defocal pairs, and normal |
10 | * current version does tiltseries (maybe tomogram series) and normal, but not defocal pairs |
||
11 | 2 | Neil Voss | |
12 | 4 | Neil Voss | h2. Background info for defocal pairs |
13 | 1 | Neil Voss | |
14 | 4 | Neil Voss | images are linked using |
15 | 2 | Neil Voss | |
16 | 4 | Neil Voss | h2. New python program: |
17 | |||
18 | 1 | Neil Voss | h4. determine what the inputs are and what is required: |
19 | |||
20 | 7 | Neil Voss | # folder with mrc images – only support mrc files |
21 | # pixel size, specified in meters |
||
22 | # tiltseries/defocal information (# per set) – cannot have both<pre> |
||
23 | --images-per-tilt-series=3 --images-per-defocal-group=3</pre> |
||
24 | # two session modes, create new session or append to existing session |
||
25 | #* appending to a session is a dangerous things, so I am not going to support it. |
||
26 | #* single mode simplifies things dramatically |
||
27 | # input defocus and tilt angle: |
||
28 | #* optionally allow a batch file for individual defocus and angle information<pre> |
||
29 | 4 | Neil Voss | imagename <tab> defocus <tab> angle</pre> |
30 | 7 | Neil Voss | #* have override commandline flags<pre> |
31 | 4 | Neil Voss | --anglelist=-45,0,45 --defocus=-2.0e-6</pre> |
32 | 8 | Neil Voss | #* not required to allow future uploading from the web |
33 | 7 | Neil Voss | # four data collection modes: |
34 | #* *tomogram*: we cannot support uploading tomograms, pipeline requires Leginon information |
||
35 | #* *RCT/OTR*: requires a tiltseries connection |
||
36 | #* *defocal pairs*: require a AcquisitionImageTargetData connection, source:trunk/appion/appionlib/apDefocalPairs.py#L28 |
||
37 | #* *normal mode*: does not need any special treatment |
||
38 | 8 | Neil Voss | # override session name??? |
39 | # require a description |
||
40 | 4 | Neil Voss | |
41 | 8 | Neil Voss | h4. Create the program file |
42 | 4 | Neil Voss | |
43 | 8 | Neil Voss | * Find the feature request in redmine or file a new one |
44 | * Copy appionScript.py.template |
||
45 | * Make executable |
||
46 | * Commit to subversion |
||
47 | 4 | Neil Voss | |
48 | 8 | Neil Voss | h4. Preliminary setup |
49 | 3 | Neil Voss | |
50 | 8 | Neil Voss | * Input options |
51 | * Check conflicts |
||
52 | 3 | Neil Voss | |
53 | 8 | Neil Voss | h4. Setup program to do the work |
54 | 1 | Neil Voss | |
55 | 8 | Neil Voss | * Create session |
56 | * Obtain Scope/Camera information |
||
57 | * Uploading to the database |
||
58 | 1 | Neil Voss | |
59 | 8 | Neil Voss | h4. Test the program |
60 | 1 | Neil Voss | |
61 | 8 | Neil Voss | h4. Create web interface |