Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split subject-level data list in API response into imaging and phenotypic session arrays #263

Open
alyssadai opened this issue Jan 22, 2024 · 1 comment
Labels
someday Not a priority right now, but we want to keep this around to think or discuss more.

Comments

@alyssadai
Copy link
Contributor

alyssadai commented Jan 22, 2024

Current response:

[
  {
    "dataset_uuid": "http://neurobagel.org/vocab/e0c7d08c-edcc-4c2a-816a-306878ed7be2",
    "dataset_name": "BIDS synthetic",
    "dataset_portal_uri": "https://github.com/bids-standard/bids-examples",
    "dataset_total_subjects": 5,
    "records_protected": false,
    "num_matching_subjects": 5,
    "subject_data": [
      {
        "sub_id": "sub-01",
        "session_id": "ses-01",
        "num_phenotypic_sessions": 2,
        "num_imaging_sessions": 2,
        "session_type": "http://neurobagel.org/vocab/ImagingSession",
        "age": null,
        "sex": null,
        "diagnosis": [
          null
        ],
        "subject_group": null,
        "assessment": [
          null
        ],
        "image_modal": [
          "http://purl.org/nidash/nidm#T1Weighted",
          "http://purl.org/nidash/nidm#FlowWeighted"
        ],
        "session_file_path": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-01/ses-01"
      },
      {
        "sub_id": "sub-01",
        "session_id": "ses-01",
        "num_phenotypic_sessions": 2,
        "num_imaging_sessions": 2,
        "session_type": "http://neurobagel.org/vocab/PhenotypicSession",
        "age": 34.1,
        "sex": "http://purl.bioontology.org/ontology/SNOMEDCT/248152002",
        "diagnosis": [
          null
        ],
        "subject_group": "http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#C94342",
        "assessment": [
          "https://www.cognitiveatlas.org/task/id/trm_57964b8a66aed",
          "https://www.cognitiveatlas.org/task/id/tsk_4a57abb949ece"
        ],
        "image_modal": [
          null
        ],
        "session_file_path": null
      },

Motivations for keeping this response:

@alyssadai alyssadai added the flag:discuss Flag issue that needs to be discussed before it can be implemented. label Jan 22, 2024
@surchs
Copy link
Contributor

surchs commented Jan 24, 2024

alternative

[
  {
    "dataset_uuid": "http://neurobagel.org/vocab/e0c7d08c-edcc-4c2a-816a-306878ed7be2",
    "dataset_name": "BIDS synthetic",
    "dataset_portal_uri": "https://github.com/bids-standard/bids-examples",
    "dataset_total_subjects": 5,
    "records_protected": false,
    "num_matching_subjects": 5,
    "subject_data": {
      "imaging_sessions": [{
        "sub_id": "sub-01",
        "session_id": "ses-01",
        "num_phenotypic_sessions": 2,
        "num_imaging_sessions": 2,
        "image_modal": [
          "http://purl.org/nidash/nidm#T1Weighted",
          "http://purl.org/nidash/nidm#FlowWeighted"
        ],
        "session_file_path": "/data/neurobagel/bagel-cli/bids-examples/synthetic/sub-01/ses-01"
      }],
      "phenotypic_sessions": [{
        "sub_id": "sub-01",
        "session_id": "ses-01",
        "num_phenotypic_sessions": 2,
        "num_imaging_sessions": 2,
        "age": 34.1,
        "sex": "http://purl.bioontology.org/ontology/SNOMEDCT/248152002",
        "diagnosis": [
          null
        ],
        "subject_group": "http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#C94342",
        "assessment": [
          "https://www.cognitiveatlas.org/task/id/trm_57964b8a66aed",
          "https://www.cognitiveatlas.org/task/id/tsk_4a57abb949ece"
        ],
      }}],
[
  {
    "dataset_uuid": "http://neurobagel.org/vocab/e0c7d08c-edcc-4c2a-816a-306878ed7be2",
    "dataset_name": "BIDS synthetic",
    "dataset_portal_uri": "https://github.com/bids-standard/bids-examples",
    "dataset_total_subjects": 5,
    "records_protected": false,
    "num_matching_subjects": 5,
    "subject_data": "protected"

@alyssadai alyssadai added someday Not a priority right now, but we want to keep this around to think or discuss more. and removed flag:discuss Flag issue that needs to be discussed before it can be implemented. labels Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
someday Not a priority right now, but we want to keep this around to think or discuss more.
Projects
Status: No status
Development

No branches or pull requests

2 participants