Skip to content

Commit 6e9e18d

Browse files
committed
Merge branch 'main' into 1.4.0
# Changes to be committed: # new file: Best_Practices # new file: VERSION.py # modified: docs/io-domain.md # modified: docs/provenance-domain.md # modified: examples/HCV1a.json # modified: examples/HIVE_metagenomics.json # modified: examples/glycosylation-sites-UniCarbKB.json # modified: scripts/validate.py
2 parents 88b9426 + 5c7f83d commit 6e9e18d

File tree

8 files changed

+47
-34
lines changed

8 files changed

+47
-34
lines changed

Best_Practices

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

VERSION.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
VERSION_MAJOR = "1.4"
2+
VERSION_MINOR = ".0"
3+
VERSION = VERSION_MAJOR + ('.' + VERSION_MINOR if VERSION_MINOR else '')

docs/io-domain.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Condensed exampled:
1212

1313
```json
1414
"io_domain": {
15-
"input_subdomain": {
16-
},
15+
"input_subdomain": [
16+
],
1717
"output_subdomain": [
1818
]
1919
},

docs/provenance-domain.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ The fields from the `contributor` object (described in [section 2.1.9](/provenan
9393
### 2.1.4 Inheritance/derivation "derived_from"
9494

9595
If the object is derived from another, this field will specify the parent object, in the form of the ‘object_id’. If the object is novel than the field is not included.
96+
=======
9697

9798
```json
9899
"derived_from" : "https://github.com/biocompute-objects/BCO_Specification/blob/1.2.1-beta/HCV1a.json"
@@ -159,7 +160,7 @@ This is a list to hold contributor identifiers and a description of their type o
159160

160161
### 2.1.10 License "license"
161162

162-
A space for Creative Commons licence or other licence information (text). The default or recommended licence can be _Creative Commons Attribution 4.0 International_ identified as https://spdx.org/licenses/CC-BY-4.0.html
163+
A space for Creative Commons licence or other license information (text). The default or recommended licence can be _Creative Commons Attribution 4.0 International_ identified as https://spdx.org/licenses/CC-BY-4.0.html
163164

164165
```json
165166
"license": "https://spdx.org/licenses/CC-BY-4.0.html"

examples/HCV1a.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"object_id": "https://w3id.org/biocompute/1.3.0/examples/HCV1a.json",
33
"etag": "8e03f6f65e2caae86770a64a9ebef3e0651d4675a96687e5b148fda181c9cdc0",
4-
"spec_version": "https://w3id.org/biocompute/1.3.0/",
4+
"spec_version": "https://w3id.org/ieee/ieee-2791-schema/",
55
"provenance_domain": {
66
"name": "HCV1a ledipasvir resistance SNP detection",
77
"version": "2.9",
@@ -71,7 +71,7 @@
7171
],
7272
"extension_domain": [
7373
{
74-
"extension_schema": "https://github.com/biocompute-objects/BCO_Specification/blob/1.4.0/schemas/extension_domain/fhir_extension.json",
74+
"extension_schema": "https://raw.githubusercontent.com/biocompute-objects/extension_domain/master/FHIR/fhir_extension.json",
7575
"fhir_extension": [
7676
{
7777
"fhir_endpoint": "http://fhirtest.uhn.ca/baseDstu3",
@@ -102,7 +102,7 @@
102102
]
103103
},
104104
{
105-
"extension_schema": "https://github.com/biocompute-objects/BCO_Specification/blob/1.4.0/schemas/extension_domain/fhir_extension.json",
105+
"extension_schema": "https://raw.githubusercontent.com/biocompute-objects/extension_domain/master/SCM/scm_extension.json",
106106
"scm_extension": {
107107
"scm_repository": "https://github.com/example/repo1",
108108
"scm_type": "git",

examples/HIVE_metagenomics.json

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"object_id": "https://w3id.org/biocompute/1.3.0/examples/HIVE_metagenomics.json",
3-
"checksum": "09d55a44601184330b05dae6c3d49e9c3821f528a93f958edec92504fef41970",
4-
"spec_version" : "https://w3id.org/biocompute/1.3.0/",
3+
"etag": "09d55a44601184330b05dae6c3d49e9c3821f528a93f958edec92504fef41970",
4+
"spec_version" : "https://w3id.org/ieee/ieee-2791-schema/",
55
"provenance_domain": {
66
"name": "Healthy human fecal metagenomic diversity",
77
"version": "1.0.0",
@@ -48,15 +48,18 @@
4848
"Identify the general community composition of organisms in a human [taxID:9606] fecal [UBERON:0001988] sample, ",
4949
"CensuScope is used to do a census of the composition of the read files. Based on a user-defined threshold, organisms identified are used for alignment in the Hexagon alignment."
5050
],
51-
"extension_domain":{
52-
"scm_extension": {
53-
"scm_repository": "https://github.com/biocompute-objects/HIVE_metagenomics",
54-
"scm_type": "git",
55-
"scm_commit": "e4620f642fb20557f6c679397696614305ed07b1",
56-
"scm_path": "biocompute-objects/HIVE_metagenomics",
57-
"scm_preview": "https://github.com/example/repo1/blob/c9ffea0b60fa3bcf8e138af7c99ca141a6b8fb21/workflow/hive-viral-mutation-detection.cwl"
58-
}
59-
},
51+
"extension_domain":[
52+
{
53+
"extension_schema": "https://raw.githubusercontent.com/biocompute-objects/extension_domain/master/SCM/scm_extension.json",
54+
"scm_extension": {
55+
"scm_repository": "https://github.com/biocompute-objects/HIVE_metagenomics",
56+
"scm_type": "git",
57+
"scm_commit": "e4620f642fb20557f6c679397696614305ed07b1",
58+
"scm_path": "biocompute-objects/HIVE_metagenomics",
59+
"scm_preview": "https://github.com/example/repo1/blob/c9ffea0b60fa3bcf8e138af7c99ca141a6b8fb21/workflow/hive-viral-mutation-detection.cwl"
60+
}
61+
}
62+
],
6063
"description_domain": {
6164
"keywords": [
6265
"metagenome",

examples/glycosylation-sites-UniCarbKB.json

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"object_id": "https://w3id.org/biocompute/1.3.0/examples/glycosylation-sites-UniCarbKB",
3-
"checksum": "c0b41938a47f7b7689a34f5d89707f039e210f3cc22857b80070f73cbcd2e669",
4-
"spec_version" : "https://w3id.org/biocompute/1.3.0/",
3+
"etag": "c0b41938a47f7b7689a34f5d89707f039e210f3cc22857b80070f73cbcd2e669",
4+
"spec_version" : "https://w3id.org/ieee/ieee-2791-schema/",
55
"provenance_domain":{
66
"name": "glycosylation-sites-UniCarbKB",
77
"version": "1.0",
@@ -44,18 +44,26 @@
4444
"usability_domain":[
4545
"List of human [taxid:9606] proteins with information on glycosylation sites from UniCarbKB database [https://academic.oup.com/nar/article/42/D1/D215/1052197, https://doi.org/10.1093/nar/gkt1128]"
4646
],
47-
"extension_domain":{
48-
"license":{
49-
"data_license": "https://creativecommons.org/licenses/by/4.0/",
50-
"scripts_license": "https://www.gnu.org/licenses/gpl-3.0.en.html"
47+
"extension_domain":[
48+
{
49+
"extension_schema": "https://raw.githubusercontent.com/biocompute-objects/extension_domain/master/License/license_extension.json",
50+
"license_extension":{
51+
"data_license": "https://creativecommons.org/licenses/by/4.0/",
52+
"scripts_license": "https://www.gnu.org/licenses/gpl-3.0.en.html"
53+
}
5154
},
52-
"scm_extension":{
53-
"scm_repository": "https://github.com/GW-HIVE/glygen-backend-integration/",
54-
"scm_type": "git",
55-
"scm_commit": "d34b85553e775dd5452005d786fe6e47d6048ee0",
56-
"scm_path": "/data/projects/glygen/generated/datasets/reviewed/human_proteoform_glycosylation_sites_unicarbkb_glytoucan.readme.txt"
55+
{
56+
57+
"extension_schema": "https://raw.githubusercontent.com/biocompute-objects/extension_domain/master/SCM/scm_extension.json",
58+
"scm_extension":{
59+
"scm_repository": "https://github.com/GW-HIVE/glygen-backend-integration/",
60+
"scm_type": "git",
61+
"scm_commit": "d34b85553e775dd5452005d786fe6e47d6048ee0",
62+
"scm_path": "/data/projects/glygen/generated/datasets/reviewed/human_proteoform_glycosylation_sites_unicarbkb_glytoucan.readme.txt"
63+
}
5764
}
58-
},
65+
66+
],
5967
"description_domain":{
6068
"keywords":[
6169
"protein",
@@ -214,10 +222,8 @@
214222
},
215223
"error_domain":{
216224
"empirical_error":{
225+
"comment": "Unique value statistics for the dataset",
217226
"statistics":[
218-
{
219-
"comment": "Unique value statistics for the dataset"
220-
},
221227
{
222228
"key": "uniprotkb_canonical_ac",
223229
"value":92,
@@ -251,7 +257,7 @@
251257
{
252258
"key": "glycosylation_type",
253259
"value":3,
254-
"description": "Type of glycosylation [linkage type]"
260+
"description": "Type of glycosylation linkage type"
255261
}
256262
]
257263
},

scripts/validate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"""Used to test a BCO against the schema. The following commands were used to run the script:
77
88
cd BCO_specification/
9-
python -m venv env
109
source env/bin/activate
1110
pip install jsonschema jsonref
1211
python validate.py HCV1a.json $PWD/schemas/biocomputeobject.json

0 commit comments

Comments
 (0)