Data Management and Representation

Definitions

  • User (to be implemented in the future):
    • Represented by a unique email-address
    • Authentication to gain access to user data (requests, personalised settings)
    • Manage multiple requests
  • Request:
    • Unique handle for the combination of a dataset, tasks, and request parameters
    • Request parameters: e.g. request description, settings for notification by email
  • Task:
    • Something to be performed with the given dataset

      e.g. calculation of PDB structure pictures (1D), or comparison of pairs of proteins with a given similarity method (2D)

    • Task parameters: e.g. parameters for each comparison method, output parameters for picture generation, ...
  • Job:
    • Everything that lives in a queue

      e.g. local queue (ProCKSI cluster), remote queue (University cluster), external queue (web service, grid)

    • Currently, a job is equal to a task:

      e.g. task = pairwise comparison of the proteins in the entire dataset with several given similarity methods

      jobs = separate jobs calculating all pairwise comparisons of the entire dataset with one similarity method

    • Future plans:

      Divide 3D problem space into subsets of datasets and methods, each subset being an independent job

      See next section for further details on the 3D Problem Space

  • Dataset:
    • Currently: Collection of PDB structures, previously calculated similarity matrices
    • Future plans: Previously calculated similarity matrices should be uploaded in a post-processing step, not in a pre-processing step (#28)
  • Results:
    • Currently, entire similarity matrices of different sources
    • Future plans: Generate similarity matrices directly from single pairwise comparison results stored in the database

The 3D Problem and Solution Spaces

  • Problem Space:
    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:

    x: Dataset: list of proteins

    y: Dataset: list of proteins

    z: Tasks: list of similarity comparison methods

  • Partitionig the Problem Space:

    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:

    a. Comparison of one pair of proteins using one method in the task list => PxPxM jobs, each performing 1 comparison
    b. All-against-all comparison of the entire dataset with one one method => M jobs, each performing PxP comparisons
    c. Comparison of one pair of proteins using all methods in the task list => PxP jobs, each performing M comparisons
    d. Intelligent partitioning of the 3D problem space, comparing a subset of proteins with a subset of methods

  • Solution Space:

    Each similarity comparison methods can provide several similarity measures

    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

  • Special Cases:

    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.

Lifecycle of Requests

A new request is submitted in the browser:

  • the request is registered in the database, request parameters, the dataset (structures and matrices) and user tasks are added

    Request Status: P = prepared

The cron administrational tools check the status of all tasks periodically and sets the status of the request accordingly:

  • 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.

    Request Status: R = running

  • 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.

    Request Status: F = finished

  • 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.

    Request Status: X = Expired

  • 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.

Lifecycle of Tasks

Attention: Currently, a Job equals a Task.

A new request is submitted in the browser:

  • All Tasks, which the user has selected to be performed, are prepared and registered into the database.

    Status of Tasks: P = prepared

The cron administrational tools (_sch jobs to the queing system.

Status of Tasks: Q = Queued
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.
  • If a Task starts, it changes its own status in the database.

    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.

    Status of Tasks: R = Running

  • If a Task reaches its end, it changes its own status in the database.

    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.

    Status of Tasks: C = Completed

  • 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.

    Task Status: F = Finished (successfully)

  • In case that there have occured any serious problems, the status of the task is changed in the database accordingly.

    Task Status; E = Errors

Task and Job Dependencies

  • Some tasks must have finished successfully before a dependent task can be started:

    e.g. Contacts must have been calculated before USM and MaxCMO similarities can be calculated