Filter dataset by datasetType and nest them
Currently, the datasetType
is used for filtering datasets and at the same time nested
parameter will populate the outputDatasets
.
/dataset?limit=1&sortBy=startDate&sortOrder=-1&investigationId=1018306037&nested=true
Example:
[
{
"id": 1107484791,
"name": "buffer_after_water [2023-03-12 14:13:57:71]",
"startDate": "2023-03-12T14:13:56.974+01:00",
"endDate": "2023-03-12T14:13:56.974+01:00",
"location": "/data/visitor/mx2445/bm29/20230312/Round3_batchmode_12mar23_sc/Round3_batchmode_12mar23_sc_buffer_after_water",
"investigation": {
"id": 1018306037,
"investigationInstruments": [
{
"id": 1107211132,
"createId": "ingester",
"createTime": "2023-03-12T07:31:08.947+01:00",
"modId": "ingester",
"modTime": "2023-03-12T07:31:08.947+01:00",
"instrument": {
"id": 13168157,
"createId": "255362",
}
}
],
"investigationUsers": [],
"keywords": [],
"name": "MX-2445",
"parameters": [],
"publications": [],
"releaseDate": "2026-03-12T08:00:00.000+01:00",
"samples": [],
"shifts": [],
"startDate": "2023-03-11T09:30:00.000+01:00",
"studyInvestigations": [],
"summary": "Structural biology research groups located in India constitute the INDIA-BAG and will utilize MX & SAXS to study different biological macromolecules. The non-proprietary agreement signed between ESRF and the Department",
"title": "Structural Biology of Macromolecules and Macromolecular complexes from India",
"visitId": "MX/2445 BM29 11-03-2023/12-03-2023"
},
"type": "acquisition",
"sampleName": "Round3_batchmode_12mar23_sc",
"sampleId": 1107427835,
"parameters": [
{
"name": "endDate",
"value": "2023-03-12T14:13:56.969834",
"id": 1107484803,
"units": "NA"
},
{
"name": "Sample_name",
"value": "Round3_batchmode_12mar23_sc",
"id": 1107484809,
"units": "NA"
},
{
"name": "definition",
"value": "SAXS",
"id": 1107484799,
"units": "NA"
},
{
"name": "startDate",
"value": "2023-03-12T14:12:13.209987",
"id": 1107484805,
"units": "NA"
},
{
"name": "output_datasetNames",
"value": "integrate",
"id": 1107484837,
"units": "NA"
},
{
"name": "output_datasets",
"value": "/data/visitor/mx2445/bm29/20230312/Round3_batchmode_12mar23_sc/Round3_batchmode_12mar23_sc_buffer_after_water/processed/integrate",
"id": 1107484836,
"units": "NA"
}
],
"meta": {
"page": {
"totalWithoutFilters": [
166
],
"total": [
166
],
"totalPages": 166,
"currentPage": 1
}
},
"outputDatasets": [
{
"id": 1107484831,
"name": "integrate [2023-03-12 14:14:01:464]",
"startDate": "2023-03-12T14:14:01.269+01:00",
"endDate": "2023-03-12T14:14:01.269+01:00",
"location": "/data/visitor/mx2445/bm29/20230312/Round3_batchmode_12mar23_sc/Round3_batchmode_12mar23_sc_buffer_after_water/processed/integrate",
"investigation": {
"id": 1018306037,
"createId": "ingester",
"investigationGroups": [],
"investigationInstruments": [
{
"id": 1107211132,
"createId": "ingester",
"createTime": "2023-03-12T07:31:08.947+01:00",
"modId": "ingester",
"modTime": "2023-03-12T07:31:08.947+01:00",
"instrument": {
"id": 13168157,
"createId": "255362",
"createTime": "2016-11-22T12:48:32.445+01:00",
"modId": "demariaa/255362",
"modTime": "2023-02-03T10:03:30.951+01:00",
"datasetInstruments": [],
"description": "Small angle X-ray scattering on solutions",
"fullName": "BM29 - BioSAXS",
"instrumentScientists": [],
"investigationInstruments": [],
"name": "BM29",
"shifts": [],
"type": "Beamline",
"url": "https://www.esrf.fr/home/UsersAndScience/Experiments/MX/About_our_beamlines/bm29.html"
}
}
],
"investigationUsers": [],
"keywords": [],
"name": "MX-2445",
"parameters": [],
"publications": [],
"releaseDate": "2026-03-12T08:00:00.000+01:00",
"samples": [],
"shifts": [],
"startDate": "2023-03-11T09:30:00.000+01:00",
"studyInvestigations": [],
"summary": "Structural biology research groups located in India constitute the INDIA-BAG and will utilize MX & SAXS to study different biological macromolecules. The non-proprietary agreement signed between ESRF and the Department of Biotechnology (DBT) enables studies that provide fundamental ",
"title": "Structural Biology of Macromolecules and Macromolecular complexes from India",
"visitId": "MX/2445 BM29 11-03-2023/12-03-2023"
},
"type": "processed",
"sampleName": "Round3_batchmode_12mar23_sc",
"sampleId": 1107427835,
"parameters": [
{
"name": "Sample_name",
"value": "Round3_batchmode_12mar23_sc",
"id": 1107484839,
"units": "NA"
},
{
"name": "definition",
"value": "SAXS",
"id": 1107484838,
"units": "NA"
},
{
"name": "startDate",
"value": "2023-03-12T14:14:01.269456",
"id": 1107484860,
"units": "NA"
},
{
"name": "datasetName",
"value": "integrate",
"id": 1107484858,
"units": "NA"
},
{
"name": "input_datasets",
"value": "/data/visitor/mx2445/bm29/20230312/Round3_batchmode_12mar23_sc/Round3_batchmode_12mar23_sc_buffer_after_water",
"id": 1107484859,
"units": "NA"
},
{
"name": "input_datasetIds",
"value": "1107484791",
"id": 1107484862,
"units": "NA"
},
]
}
]
}
]