Skip to content

Commit

Permalink
adds DUOS id field
Browse files Browse the repository at this point in the history
  • Loading branch information
idazucchi committed Mar 8, 2024
1 parent fdeda4e commit 065087e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/jsonBrowser/type.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ biostudies_accessions | A BioStudies study accession. | array | no | | BioStudi
funders | Funding source(s) supporting the project. | array | yes | [See module funder](module.md#funder) | Funding source(s) | |
estimated_cell_count | An estimated number of cells in this project | integer | no | | Estimated cell count | | 10000; 2100000
data_use_restriction | Data use restrictions that apply to the project. | string | yes | | Data use restriction | NRES, GRU, GRU-NCU | GRU
DUOS_id | A DUOS study accession. | array | no | | DUOS id | | DUOS-000108; DUOS-000114

## Specimen from organism
_Information about the specimen that was collected from the donor organism._
Expand Down
24 changes: 24 additions & 0 deletions json_schema/type/project/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,30 @@
"user_friendly": "Data use restriction",
"guidelines": "Must be one of: NRES, GRU, GRU-NCU. The use restriction codes are based on the DUO ontology where NRES corresponds to DUO:0000004, GRU corresponds to DUO:0000042, GRU-NCU corresponds to a combination of DUO:0000042 and DUO:0000046",
"example": "GRU"
},
"DUOS_id": {
"description": "A DUOS study accession.",
"type": "array",
"items": {
"type": "string",
"pattern": "^DUOS-\\d{1,6}$"
},
"example": "DUOS-000108; DUOS-000114",
"user_friendly": "DUOS id",
"guidelines": "Managed access projects are registered in DUOS to regulate access. If the project is managed access record the corresponding DUOS id here."
}
},
"if" : {
"properties": {
"data_use_restriction": {
"enum": [
"GRU",
"GRU-NCU"
]
}
}
},
"then" : {
"required": ["DUOS_id"]
}
}
1 change: 1 addition & 0 deletions json_schema/update_log.csv
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Schema,Change type,Change message,Version,Date
type/project/project.json,major,"Adds DUOS id field. Fixes #1550",,

0 comments on commit 065087e

Please sign in to comment.