-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from c3g/develop
Version 0.7.1
- Loading branch information
Showing
11 changed files
with
171,251 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
include chord_metadata_service/chord/workflows/*.wdl | ||
include chord_metadata_service/chord/tests/*.json | ||
include chord_metadata_service/dats/* | ||
include chord_metadata_service/mcode/tests/*.json | ||
include chord_metadata_service/package.cfg | ||
include chord_metadata_service/restapi/tests/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,6 @@ | |
"TEST_FHIR_SEARCH_QUERY", | ||
] | ||
|
||
|
||
VALID_DATA_USE_1 = { | ||
"consent_code": { | ||
"primary_category": {"code": "GRU"}, | ||
|
@@ -31,19 +30,16 @@ | |
] | ||
} | ||
|
||
|
||
VALID_PROJECT_1 = { | ||
"title": "Project 1", | ||
"description": "Some description", | ||
} | ||
|
||
|
||
VALID_DATS_CREATORS = [ | ||
{ | ||
"name": "1000 Genomes Project" | ||
} | ||
] | ||
|
||
{ | ||
"name": "1000 Genomes Project" | ||
} | ||
] | ||
|
||
INVALID_DATS_CREATORS = [ | ||
{ | ||
|
@@ -98,82 +94,127 @@ def valid_table_1(dataset_id, model_compatible=False): | |
|
||
def dats_dataset(project_id, creators): | ||
return { | ||
"version": "1.0", | ||
"project": project_id, | ||
"privacy": "public open", | ||
"licenses": [ | ||
{ | ||
"name": "BY-NC-SA" | ||
} | ||
], | ||
"creators": creators, | ||
"types": [ | ||
{ | ||
"information": { | ||
"value": "genomics" | ||
} | ||
} | ||
], | ||
"title": "1000 Genomes Project", | ||
"description": "The 1000 Genomes Project provides a comprehensive description of common human variation by " | ||
"applying a combination of whole-genome sequencing, deep exome sequencing and dense microarray " | ||
"genotyping to a diverse set of 2504 individuals from 26 populations. Over 88 million variants " | ||
"are characterised, including >99% of SNP variants with a frequency of >1% for a variety of " | ||
"ancestries.", | ||
"storedIn": { | ||
"name": "European Bioinformatics Institute" | ||
}, | ||
"primaryPublications": [ | ||
{ | ||
"identifier": { | ||
"identifier": "https://doi.org/10.1038/nature15393" | ||
}, | ||
"title": "A global reference for human genetic variation", | ||
"dates": [ | ||
{ | ||
"type": { | ||
"value": "Primary reference publication date" | ||
}, | ||
"date": "2015-10-01 00:00:00" | ||
"version": "1.0", | ||
"project": project_id, | ||
"privacy": "public open", | ||
"licenses": [ | ||
{ | ||
"name": "BY-NC-SA" | ||
} | ||
], | ||
"creators": creators, | ||
"types": [ | ||
{ | ||
"information": { | ||
"value": "genomics" | ||
} | ||
], | ||
"authors": [ | ||
{ | ||
"name": "1000 Genomes Project" | ||
} | ||
], | ||
"title": "1000 Genomes Project", | ||
"description": "The 1000 Genomes Project provides a comprehensive description of common human variation by " | ||
"applying a combination of whole-genome sequencing, deep exome sequencing and dense microarray " | ||
"genotyping to a diverse set of 2504 individuals from 26 populations. Over 88 million variants " | ||
"are characterised, including >99% of SNP variants with a frequency of >1% for a variety of " | ||
"ancestries.", | ||
"storedIn": { | ||
"name": "European Bioinformatics Institute" | ||
}, | ||
"primaryPublications": [ | ||
{ | ||
"identifier": { | ||
"identifier": "https://doi.org/10.1038/nature15393" | ||
}, | ||
"title": "A global reference for human genetic variation", | ||
"dates": [ | ||
{ | ||
"type": { | ||
"value": "Primary reference publication date" | ||
}, | ||
"date": "2015-10-01 00:00:00" | ||
} | ||
], | ||
"authors": [ | ||
{ | ||
"name": "1000 Genomes Project" | ||
} | ||
] | ||
} | ||
], | ||
"isAbout": [ | ||
{ | ||
"identifier": { | ||
"identifier": "9606", | ||
"identifierSource": "https://www.ncbi.nlm.nih.gov/taxonomy/9606" | ||
}, | ||
"name": "Homo sapiens" | ||
} | ||
], | ||
"dates": [ | ||
{ | ||
"type": { | ||
"value": "CONP DATS JSON fileset creation date" | ||
}, | ||
"date": "2019-06-17 13:16:33" | ||
} | ||
], | ||
"distributions": [ | ||
{ | ||
"formats": [ | ||
"VCF" | ||
], | ||
"size": 10, | ||
"unit": { | ||
"value": "GB" | ||
}, | ||
"access": { | ||
"landingPage": "https://example.org", | ||
"authorizations": [ | ||
{ | ||
"value": "public" | ||
} | ||
] | ||
}, | ||
"storedIn": { | ||
"name": "European Bioinformatics Institute" | ||
} | ||
] | ||
} | ||
], | ||
"isAbout": [ | ||
{ | ||
"identifier": { | ||
"identifier": "9606", | ||
"identifierSource": "https://www.ncbi.nlm.nih.gov/taxonomy/9606" | ||
}, | ||
"name": "Homo sapiens" | ||
} | ||
], | ||
"dates": [ | ||
{ | ||
"type": { | ||
"value": "CONP DATS JSON fileset creation date" | ||
}, | ||
"date": "2019-06-17 13:16:33" | ||
} | ||
], | ||
"hasPart": [], | ||
"extraProperties": [ | ||
{ | ||
"category": "contact", | ||
"values": [ | ||
{ | ||
"value": "Jennifer Tremblay-Mercier, Research Co-ordinator, " | ||
"[email protected], 514-761-6131 #3329" | ||
} | ||
], | ||
"alternateIdentifiers": [ | ||
{ | ||
"identifier": "test alternative id" | ||
} | ||
], | ||
"relatedIdentifiers": [ | ||
{ | ||
"identifier": "test related id" | ||
} | ||
], | ||
"spatialCoverage": [ | ||
{ | ||
"@type": "Place", | ||
"name": "Worldwide" | ||
} | ||
], | ||
"dimensions": [ | ||
{ | ||
"name": { | ||
"value": "test dimensions" | ||
} | ||
] | ||
} | ||
], | ||
"data_use": VALID_DATA_USE_1 | ||
} | ||
], | ||
"hasPart": [], | ||
"extraProperties": [ | ||
{ | ||
"category": "contact", | ||
"values": [ | ||
{ | ||
"value": "Jennifer Tremblay-Mercier, Research Co-ordinator, " | ||
"[email protected], 514-761-6131 #3329" | ||
} | ||
] | ||
} | ||
], | ||
"data_use": VALID_DATA_USE_1 | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.