Opened 3 years ago

Last modified 3 years ago

#806 new task

Service lab: Add a new service lab preference page

Reported by: Rene Ranzinger Owned by:
Priority: normal Milestone: Module - Service lab plugin
Component: Service lab plugin Version: GRITS 1.1.x
Severity: major Keywords:
Cc:

Description (last modified by Rene Ranzinger)

This ticket is a prerequisite for #805.

Add a new service lab preference page "Maldi databases":

  • Dropdown with list of databases (database name)
  • Buttons to "Edit ... , "New ..." and "Delete" a database
  • Buttons for "Import database" and "Export database"
  • Information field (non-editable multi-line text) shows description of the database
  • This page looks similar to the eclipse preference for Java -> Code Style -> Formatter

Click on Edit or New will open a dialog with:

  • Name field (no duplicates to existing databases in the list)
  • Description field
  • Table with columns (the first two are mandatory)
    • m/z (double number)
    • composition (string)
    • GWS sequence (string)
      • if its typed by hand the string has to be tested by using
        Glycan glycanObj = Glycan.fromString( gwsSequence.trim() );
        
      • the sequence can also be uploaded by a *.gws file (example is attached). This is a text file and the content of the file needs to be tested with the code as well. You also need to check that the content does not contain ";".
  • Ok and Cancel
  • For new - user has to provide name, description and at least one row in the table
  • For edit - user can change name and description and modify the rows in the table (edit values, remove rows, add rows)
  • If clicked ok the database gets serialized into the preferences and the new database is added to the dropdown of the preference page

Click on Export will export the database into an Excel table with:

  • first row, first cell = name
  • second row, first cell = description
  • third row headers for the following rows: "Mass", "Structure", "GWS"
  • following rows contain the entries from the database
  • An Example file (glycan.xlsx) is attached

Click on Import will import the database from an Excel table following the same format used for export. If a database with the same name is already present in the preference the user is asked if he wishes to overwrite the existing database or if he wants to rename the new database.

When the preference page is closed with OK or Apply the database selected in the dropdown will be the default selection with annotating peaklists (see #805)

Attachments (2)

Glycan.xlsx (13.1 KB) - added by Rene Ranzinger 3 years ago.
structure.gws (58 bytes) - added by Rene Ranzinger 3 years ago.

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by Rene Ranzinger

Attachment: Glycan.xlsx added

comment:1 Changed 3 years ago by Rene Ranzinger

Description: modified (diff)

comment:2 Changed 3 years ago by Rene Ranzinger

Description: modified (diff)

comment:3 Changed 3 years ago by Rene Ranzinger

Description: modified (diff)

Changed 3 years ago by Rene Ranzinger

Attachment: structure.gws added

comment:4 Changed 3 years ago by Rene Ranzinger

Milestone: GRITS - 1.2Module - Service lab plugin
Note: See TracTickets for help on using tickets.