Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anngvu committed Nov 26, 2024
1 parent 3736659 commit dae43cd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/register-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ do
break
fi
done
done
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Protocol:
yq '.slots |= with_entries(select(.value.in_subset[] == "portal" or .value.in_subset[] == "registered"))' modules/props.yaml > relevant_props.yaml
yq ea '. as $$item ireduce ({}; . * $$item )' modules/Data/Data.yaml modules/Assay/Assay.yaml > relevant_enums.yaml
cat header.yaml relevant_props.yaml relevant_enums.yaml modules/Template/Protocol.yaml > temp.yaml
gen-json-schema --inline --no-metadata --not-closed temp.yaml > tmp.json
gen-json-schema --inline --no-metadata --not-closed --title-from=title temp.yaml > tmp.json
json-dereference -s tmp.json -o tmp.json
jq '."$$defs".Protocol | ."$$id"="https://repo-prod.prod.sagebase.org/repo/v1/schema/type/registered/org.synapse.nf-protocol"' tmp.json > registered-json-schemas/Protocol.json
rm -f relevant_props.yaml relevant_enums.yaml temp.yaml tmp.json
Expand Down
16 changes: 12 additions & 4 deletions registered-json-schemas/Protocol.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
{
"additionalProperties": false,
"description": "Template for describing a protocol document.",
"description": "Describes protocol document based on https://bioschemas.org/profiles/LabProtocol/0.7-DRAFT.",
"properties": {
"author": {
"description": "The author of the resource; preferably use an ORCID ID, GitHub profile link, etc., if available and a text name if not.",
"type": "string"
"items": {
"type": "string"
},
"title": "Author(s)",
"type": "array"
},
"citation": {
"description": "Citation (e.g. doi) that usage of data or resource should be cited with.",
"title": "Citation",
"type": "string"
},
"comments": {
"description": "Brief free-text comments that may also be important to understanding the resource.",
"title": "Comments",
"type": "string"
},
"license": {
"description": "Link to a license or name of license applicable for the resource.",
"type": "string"
"title": "License"
},
"protocolAssay": {
"description": "Main assay type that this protocol is related to, e.g. this is a prep protocol for single-cell RNA-seq assay. This is especially helpful for newly-developed or in-house assays.\n",
"title": "Protocol assay",
"enum": [
"2D AlamarBlue absorbance",
"2D AlamarBlue fluorescence",
Expand Down Expand Up @@ -209,15 +216,16 @@
"word recognition score",
"STR profile"
],
"title": "AssayEnum",
"type": "string"
},
"protocolPurpose": {
"description": "Brief description of the protocol purpose.",
"title": "Protocol purpose",
"type": "string"
},
"sampleType": {
"description": "Type of sample used",
"title": "Sample type",
"type": "string"
},
"title": {
Expand Down

0 comments on commit dae43cd

Please sign in to comment.