Linking Cohorts and Datasets #157
Replies: 3 comments 10 replies
-
UPDATE: {
"properties": {
"datasetId": { "type": "string"},
"biosampleId": { "type": "string"},
"individualId": { "type": "string"},
"analysisId": { "type": "string"},
"runId": { "type": "string"}
},
"oneOf": [
{ "not": {
"anyOf": [
{ "required": ["biosampleId"] },
{ "required": ["individualId"] },
{ "required": ["analysisId"] },
{ "required": ["runId"] }
]
}
},
{ "required": ["biosampleId"] },
{ "required": ["individualId"] },
{ "required": ["analysisId"] },
{ "required": ["runId"] }
]
} So here we may have at most one of "biosampleId", "individualId", "analysisId" or "runId" defined. The same pattern should be applied to all entryTypes so we always have only one root to the Individual Cheers, D. |
Beta Was this translation helpful? Give feedback.
-
No, we have. CaseLevelVariant |
Beta Was this translation helpful? Give feedback.
-
I'm still not sure what you're going at here (I do understand to provide But both these can be managed externally; i.e. having a lookup collection for individuals, cohorts ... etc. And for variants, store them as individual calls where then every call has its associated In our example we have in MongoDB datasetId == databaseName; and have samples or individuals tagged for the cohorts they belong to (a better way probbaly would be a separate lookup). So +1 for a datasetIds as query parameter etc., but I wouldn't model them into entities. IMO |
Beta Was this translation helpful? Give feedback.
-
Hi all,
Although we have the nice general model schema in the documentation: models, there is no standard link between models and Cohorts & Datasets defined.
The CINECA synthetic dataset have non-formal "ids" property in the dataset.
Looking at the previous chart, IMO we must add
into the individual entity (the m..n individual -> cohort link) and then add
in the cohort (linking each cohort to the corresponding dataset).
Having this data, I would be able to check the GA4GH Visas either via cohort or dataset permissions.
Best,
Dmitry
Beta Was this translation helpful? Give feedback.
All reactions