Json Message Format


Json messages format

The alias field is optional. If omitted or left empty, the system will automatically assign it a unique code


Analysis

Analysis
{
  "alias": "",
  "title": "",
  "description": "",
  "studyId": "",
  "sampleReferences": [
    {
      "value": "",
      "label": ""
    }
  ],
  "analysisCenter": "",
  "analysisDate": "",
  "analysisTypeId": "", → /enums/analysis_types
  "files": [
    {
      "fileId ": "",
      "fileName": "",
      "checksum": "",
      "unencryptedChecksum": "",
      "fileTypeId":"" -> /enums/analysis_file_types
    }
  ],
  "attributes": [
    {
      "tag": "",
      "value": "",
      "unit": ""
    }
  ],
  "genomeId": "", → /enums/reference_genomes
  "chromosomeReferences": [ → /enums/reference_chromosomes
    {
      "value": "",
      "label": ""
    }
  ],
  "experimentTypeId": [ "" ], → /enums/experiment_types
  "platform": ""
}
In files, either fileId or fileName is mandatory. You can set both but fileId will have priority.


DAC

{
  "alias": "",
  "title": "",
  "contacts": [
    {
      "contactName": "",
      "email": "",
      "organisation": "",
      "phoneNumber": "",
      "mainContact": ""
    }
  ]
}  


Dataset

{
  "alias": "",
  "datasetTypeIds": [ "" ], → /enums/dataset_types
  "policyId": "",
  "runsReferences": [ "" ],
  "analysisReferences": [ "" ],
  "title": "",
  "description":"",
  "datasetLinks": [
    {
      "label": "",
      "url": ""
    }
  ],
  "attributes": [
    {
      "tag": "",
      "value": ""
    }
  ]
}
At least, one run or one analysis must appear inside runsReferences/analysisReferences. You can use either CRG or EBI internal Ids.


Experiment

{
  "alias": "",
  "title": "",
  "instrumentModelId": "", → /enums/instrument_models
  "librarySourceId": "", → /enums/library_sources
  "librarySelectionId": "", → /enums/library_selections
  "libraryStrategyId": "", → /enums/library_strategies
  "designDescription": "",
  "libraryName": "",
  "libraryConstructionProtocol": "",
  "libraryLayoutId": "", → 0 (paired), 1 (single)
  "pairedNominalLength": 0,
  "pairedNominalSdev": 0,
  "sampleId": "",
  "studyId": ""
}
 


Policy

{
  "alias": "",
  "dacId": "",
  "title": "",
  "policyText": "",
  "url": ""
}
  


Run

{
  "alias": "",
  "sampleId": "",
  "runFileTypeId": "", → /enums/file_types
  "experimentId": "",
  "files": [
    {
	“fileId”: “”,
      "fileName": "",
      "checksum": "",
      "unencryptedChecksum": "",
      "checksumMethod": ""
    }
  ]
}
In files, either fileId or fileName is mandatory. You can set both but fileId will have priority. The full filename should be referenced in the field "fileName" followed by the extension ".gpg". If the data has been deposited in a folder within your ega-box, the complete path to the file should be referenced in the "fileName" field


Sample

{
  "alias": "",
  "title": "",
  "description": "",
  "caseOrControlId": "", → /enums/case_control
  "genderId": "", → /enums/genders
  "organismPart": "",
  "cellLine": "",
  "region": "",
  "phenotype": "",
  "subjectId": "",
  "anonymizedName": "",
  "bioSampleId": "",
  "sampleAge": "",
  "sampleDetail": "",
  "attributes": [
    {
      "tag": "",
      "value": ""
    }
  ]
}
Use attributes field if you have any custom attribute that does not match with the predefine ones (phenotype, organismPart, genderId, etc.).


Study

{
  "alias": "",
  "studyTypeId": "", → /enums/study_types
  "shortName": "",
  "title": "",
  "studyAbstract": "",
  "ownTerm": "",
  "pubMedIds": [ "" ],
  "customTags": [
    {
      "tag": "",
      "value": ""
    }
  ]
}
  


Submission

{
	“title” : “”,
	“description” : “”,
	“submissionSubset” : { JSON object, see  SubmissionSubSetData ·  }
}
The field in blue can be used during the validation/submission step to indicate that only a subset of objects belonging to this submission project must be validated/submitted.


SubmissionSubsetData

SubmissionSubsetData
{
“analysisIds” : [ “” ],
“dacIds” : [ “” ],
“datasetIds” : [ “” ,
“experimentIds” : [ “” ],
“policyIds” : [ “” ],
“runIds” : [ “” ],
“sampleIds” : [ “” ],
“studyIds” : [ “” ]
}