Use cases
For the time being, the following description of use cases is rather an idea how working with the LabInform datasafe package may look like than a description of what actually can be achieved.
Currently (as of 09/2024), a command-line interface (CLI) is still missing that would greatly facilitate working with the LabInform datasafe. Furthermore, the integration into Recipe-driven data analysis using the ASpecD framework and related packages is not yet complete.
Overview
General scenario: one central place for all research data
Pre-registering an LOI before data acquisition
Uploading data
Accessing data (I): manual access
Accessing data (II): from within a recipe
General scenario: one central place for all research data
The raison d’être of the LabInform datasafe is to have one central (local) place to store all “warm” research data and to provide access independent of the internal organisation of the data within the repository, by means of unique and persistent identifiers (LOIs).
Pre-registering a LOI before data acquisition
Uploading data
Accessing data (I): manual access
Accessing data (II): from within a recipe
Recipe-driven data analysis using the ASpecD framework and packages based on it is a paradigm-shift in data processing and analysis, requiring no longer programming skills. All tasks are defined using a simple YAML file that is afterwards “served” using a single command on the command line. Generally, an ASpecD recipe may look like this:
1format:
2 type: ASpecD recipe
3 version: '0.2'
4
5datasets:
6 - /path/to/first/dataset
7 - /path/to/second/dataset
8
9tasks:
10 - kind: processing
11 type: BaselineCorrection
12 properties:
13 parameters:
14 kind: polynomial
15 order: 0
16 - kind: singleplot
17 type: SinglePlotter1D
18 properties:
19 filename:
20 - first-dataset.pdf
21 - second-dataset.pdf
Here, the datasets are defined by paths in the (local) file system. How about using LOIs and having the data accessed directly from the datasafe? The same recipe would only change in lines 6 and 7:
1format:
2 type: ASpecD recipe
3 version: '0.2'
4
5datasets:
6 - loi:42.1001/ds/exp/sa/42/cwepr/1
7 - loi:42.1001/ds/exp/sa/42/cwepr/2
8
9tasks:
10 - kind: processing
11 type: BaselineCorrection
12 properties:
13 parameters:
14 kind: polynomial
15 order: 0
16 - kind: singleplot
17 type: SinglePlotter1D
18 properties:
19 filename:
20 - first-dataset.pdf
21 - second-dataset.pdf
Of course, this requires two things: a locally accessible installation of the LabInform datasafe and a specialised importer mechanism hooking into ASpecD to access the data from the locally configured datasafe via the LOI.