DataManagement » History » Version 6

Anonymous, 07/16/2007 03:06 PM

1 1 Anonymous
2 6 Anonymous
h1. Data Management and Representation
3 1 Anonymous
4 1 Anonymous
5 1 Anonymous
6 6 Anonymous
h2. Definitions
7 6 Anonymous
8 6 Anonymous
9 6 Anonymous
* *User* (to be implemented in the future):
10 6 Anonymous
*** Represented by a unique email-address
11 6 Anonymous
*** Authentication to gain access to user data (requests, personalised settings)
12 6 Anonymous
*** Manage multiple requests
13 6 Anonymous
14 6 Anonymous
* *Request*:
15 6 Anonymous
*** Unique handle for the combination of a dataset, tasks, and request parameters
16 6 Anonymous
*** Request parameters: e.g. request description, settings for notification by email
17 6 Anonymous
18 6 Anonymous
* *Task*:
19 6 Anonymous
*** Something to be performed with the given dataset[[br]]
20 1 Anonymous
     e.g. calculation of PDB structure pictures (1D), or comparison of pairs of proteins with a given similarity method (2D)
21 6 Anonymous
*** Task parameters: e.g. parameters for each comparison method, output parameters for picture generation, ...
22 1 Anonymous
23 6 Anonymous
* *Job*:
24 6 Anonymous
*** Everything that lives in a queue[[br]]
25 1 Anonymous
     e.g. local queue (ProCKSI cluster), remote queue (University cluster), external queue (web service, grid)
26 6 Anonymous
*** Currently, a job is equal to a task:[[br]]
27 6 Anonymous
     e.g. task = pairwise comparison of the proteins in the _entire_ dataset with _several_ given similarity methods[[br]]
28 6 Anonymous
     jobs = _separate_ jobs calculating all pairwise comparisons of the entire dataset with _one_ similarity method
29 6 Anonymous
*** Future plans:[[br]]
30 1 Anonymous
     Divide 3D problem space into subsets of datasets and methods, each subset being an independent job[[br]]
31 6 Anonymous
     See next section for further details on the _3D Problem Space_
32 1 Anonymous
33 6 Anonymous
* *Dataset*:
34 6 Anonymous
*** Currently: Collection of PDB structures, previously calculated similarity matrices 
35 6 Anonymous
*** Future plans: Previously calculated similarity matrices should be uploaded in a post-processing step, not in a pre-processing step (#28)
36 1 Anonymous
37 6 Anonymous
* *Results*:
38 6 Anonymous
*** Currently, entire similarity matrices of different sources 
39 6 Anonymous
*** Future plans: Generate similarity matrices directly from single pairwise comparison results stored in the database
40 1 Anonymous
41 1 Anonymous
42 6 Anonymous
43 6 Anonymous
h2. The 3D Problem and Solution Spaces
44 6 Anonymous
45 6 Anonymous
* *Problem Space*:[[br]]
46 1 Anonymous
   The problem space for an all-against-all comparison of a dataset of P protein structures using M different similarity comparison methods can be represented a 3D cube: [[br]]
47 1 Anonymous
   x: Dataset: list of proteins[[br]]
48 1 Anonymous
   y: Dataset: list of proteins[[br]]
49 1 Anonymous
   z: Tasks: list of similarity comparison methods
50 6 Anonymous
* *Partitionig the Problem Space*:[[br]]
51 1 Anonymous
   For a most efficient calculation of all cells in the 3D problem space, it can be subdivided into sub-cubes, which are called jobs when placed into the queue of a queing system. Examples:[[br]]
52 6 Anonymous
   a. Comparison of _one pair of proteins_ using _one method_ in the task list => [[PxPxM]] jobs, each performing 1 comparison
53 6 Anonymous
   b. All-against-all comparison of the _entire dataset_ with _one one method_ => M jobs, each performing PxP comparisons
54 6 Anonymous
   c. Comparison of _one pair of proteins_ using _all methods_ in the task list => PxP jobs, each performing M comparisons
55 3 Anonymous
   d. Intelligent partitioning of the 3D problem space, comparing a subset of proteins with a subset of methods
56 6 Anonymous
* *Solution Space*:[[br]]
57 6 Anonymous
   Each similarity comparison _methods_ can provide several similarity _measures_[[br]]
58 3 Anonymous
   For one slice in the 3D problems space using one particular method, we might get several slices in the 3D solution space providing several measures
59 6 Anonymous
* *Special Cases*:[[br]]
60 5 Anonymous
   The 3D problem space is reduced to a 2D problem space (1xPxM) when using methods that to not compare pairs of proteins but work on one single protein, e.g. calculating the PDB picture, or getting additional data from the iHOP web service.      
61 5 Anonymous
62 3 Anonymous
63 6 Anonymous
64 6 Anonymous
h2. Lifecycle of Requests
65 6 Anonymous
66 3 Anonymous
A new request is submitted in the browser:[[br]]
67 6 Anonymous
* the request is registered in the database, request parameters, the dataset (structures and matrices) and user tasks are added[[br]]
68 3 Anonymous
   Request Status: P = prepared[[br]]
69 6 Anonymous
The _cron_ administrational tools check the status of all _tasks_ periodically and sets the status of the _request_ accordingly:[[br]]
70 6 Anonymous
* As soon as the first task has been queued (Q) or been processed even further (R, C, F), the request is said to be _running_ and the status of the request is changed in the database.[[br]]
71 3 Anonymous
   Request Status: R = running
72 6 Anonymous
* As soon as the last task has finished successfully (F) or with errors (E), the request is said to have _finished_ and its status is changed in the database. The user gets a nofification email if requested.[[br]]
73 3 Anonymous
   Request Status: F = finished
74 6 Anonymous
* If a request has finished, and the expiration date (soft limit) has been exceeded, the request is said to have _expired_ and its status is changed in the database. The user gets a nofification email if requested.[[br]]
75 5 Anonymous
   Request Status: X = Expired
76 6 Anonymous
* If a request has been expired and the deletion date (hard limit) has been exceeded, the complete requeste including all tasks and data is deleted from the database and hard disk. The user gets a nofification email if requested.
77 5 Anonymous
78 5 Anonymous
79 5 Anonymous
80 6 Anonymous
h2. Lifecycle of Tasks
81 6 Anonymous
82 6 Anonymous
*Attention:* Currently, a _Job_ equals a _Task_.
83 6 Anonymous
84 5 Anonymous
A new request is submitted in the browser:[[br]]
85 6 Anonymous
* All _Tasks_, which the user has selected to be performed, are prepared and registered into the database.[[br]] 
86 3 Anonymous
   Status of Tasks: P = prepared
87 3 Anonymous
88 6 Anonymous
The _cron_ administrational tools (_sch jobs to the queing system. [[br]]
89 3 Anonymous
   Status of Tasks: Q = Queued[[br]]
90 3 Anonymous
   In a future version, the scheduler should analyse all tasks, partition the 3D problem space into sub-cubes, and submit these as jobs to the queing system.[[br]]
91 6 Anonymous
* If a _Task_ starts, it changes its own status in the database.[[br]]
92 6 Anonymous
   In a future version, the _scheduler_ should check the status of a task/job directly in the PBS queuing system, detect if it has started, and set the status in the database accordingly.[[br]]
93 3 Anonymous
   Status of Tasks: R = Running[[br]]
94 6 Anonymous
* If a _Task_ reaches its end, it changes its own status in the database.[[br]]
95 6 Anonymous
   In a future version, the _scheduler_ should check the status of a task/job directly in the PBS queuing system, detect if it has finished and set the status in the database accordingly.[[br]]
96 1 Anonymous
   Status of Tasks: C = Completed[[br]]
97 6 Anonymous
* If a _Task_ has been completed, its results are post-processed (e.g. registered in the database), and the status of the task is changed in the database, and an expiration and deletion date is set. The user gets a nofification email if requested.[[br]]
98 1 Anonymous
   Task Status: F = Finished (successfully)
99 6 Anonymous
* In case that there have occured any serious problems, the status of the task is changed in the database accordingly.[[br]]
100 1 Anonymous
   Task Status; E = Errors
101 1 Anonymous
 
102 6 Anonymous
103 6 Anonymous
h2. Task and Job Dependencies
104 6 Anonymous
105 6 Anonymous
* Some tasks must have finished successfully before a dependent task can be started:[[br]]
106 6 Anonymous
   e.g. _Contacts_ must have been calculated before _USM_ and _MaxCMO_ similarities can be calculated
107 1 Anonymous