POST

This post describes an important enhancement to Squonk Viz that allows you to curate your data using forms that can handle relational data.

Early versions of Squonk Viz allowed you to view your data, but didn’t let you edit it. We’ve now added some field types that are editable. Currently there are 3 types:

  1. boolean (true/false)
  2. categorical (e.g. High, Medium, Low)
  3. score (e.g. a score between 0 and 10)

The main purpose of this is to facilitate curation of your data, for instance, selecting compounds you want to purchase or ranking a series of compound for follow-up actions. You can add these fields using the Add list field … function in the Data Centre.

add list field

In our example we add:

  • a boolean field named Favourite
  • a score field (0 -10) name Score

To allow these fields to be edited we have added forms functionality that allows record by record display of data. A form is just a visual component that can use the selection in another component to filter or mark the records and allows you to control the layout of the data fields within the form.

In our example we choose the records to display in the form using the selection in a scatter plot to filter the form input and display the structure and some of its properties, including the ones we want to use for data curation.

design mode

The result looks like this:

form overview

Note how you can navigate through the records:

form navigation

If you look at the editable fields up close you can see how they work.

form edit

Editing data can also be done in other components where it makes sense, such as the MoleculeCardGrid component.

When data is edited using any of these approaches the changes are saved to the database and queries can be run to filter on the edited data e.g. show only records that have a score of 8 or more.

Forms also allow you to handle relational data e.g. a master compound record with multiple child activities records, but to best describe this we first need to describe Import Services which is the easiest way to generate relational data, and we’ll do that in another post.

You can access Squonk here.

latest posts
by year
by category
Blog
Containers
Software design
Automation
IaC
Docking
Fragment network
Kubernetes
Web
Ansible
Python
Squonk