Skip to content

Commit

Permalink
Merge pull request #82 from nf-osi/additional-models
Browse files Browse the repository at this point in the history
Additional models
  • Loading branch information
cconrad8 authored Oct 16, 2024
2 parents 9395701 + cc2a008 commit 6e5c7bf
Show file tree
Hide file tree
Showing 5 changed files with 631 additions and 6 deletions.
8 changes: 2 additions & 6 deletions NF-Tools-Schemas/animal-model/submitAnimalModel.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,7 @@
}
}
}
},
"required": [
"userInfo.developerName",
"userInfo.developerAffiliation"
]
}
}
},
{
Expand Down Expand Up @@ -320,4 +316,4 @@
}
}
]
}
}
23 changes: 23 additions & 0 deletions NF-Tools-Schemas/antibody/SubmitAntibodyUiSchema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"basicInfo": {
"description": {
"ui:widget": "textarea",
"ui:placeholder": "Provide a brief description (~20 words)",
"ui:options": {
"rows": 5
}
},
"hostOrganism": {
"ui:widget": "radio",
"ui:inline": "true"
},
"reactiveSpecies": {
"ui:widget": "select",
"ui:inline": "true"
},
"clonality": {
"ui:widget": "select",
"ui:inline": "true"
}
}
}
253 changes: 253 additions & 0 deletions NF-Tools-Schemas/antibody/submitAntibody.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Submit Antibody",
"type": "object",
"properties": {
"userInfo": {
"type": "object",
"title": "Your Information",
"properties": {
"firstandlastName": {
"type": "string",
"title": "First and Last Name"
},
"email": {
"type": "string",
"title": "Contact Email",
"format": "email"
},
"institution": {
"type": "string",
"title": "Institution/Affiliation",
"default": ""
},
"isDeveloper": {
"type": "string",
"title": "Are you the developer?",
"enum": [
"Yes",
"No"
],
"default": "Yes"
}
},
"required": [
"firstandlastName",
"email",
"isDeveloper"
]
},
"basicInfo": {
"type": "object",
"title": "",
"properties": {
"antibodyName": {
"type": "string",
"title": "Name of Antibody"
},
"synonyms": {
"type": "string",
"title": "Synonyms"
},
"description": {
"type": "string",
"title": "Description (~20 words)"
},
"hostOrganism": {
"type": "string",
"title": "Host Organism",
"enum": [
"Mouse",
"Rabit",
"Unknown"
]
},
"reactiveSpecies": {
"type": "object",
"title": "Reactive Species",
"properties": {
"Human": {
"type": "boolean"
},
"Mouse": {
"type": "boolean"
},
"Rat": {
"type": "boolean"
},
"Chicken": {
"type": "boolean"
},
"Rabbit": {
"type": "boolean"
},
"Pig": {
"type": "boolean"
},
"Dog": {
"type": "boolean"
},
"Zebrafish": {
"type": "boolean"
},
"Fish": {
"type": "boolean"
},
"Non-humanprimate": {
"type": "boolean"
},
"GuineaPig": {
"type": "boolean"
},
"Hamster": {
"type": "boolean"
},
"Cow": {
"type": "boolean"
},
"Monkey": {
"type": "boolean"
},
"Avian": {
"type": "boolean"
},
"Horse": {
"type": "boolean"
},
"Rodent": {
"type": "boolean"
},
"Drosophila": {
"type": "boolean"
},
"Unknown": {
"type": "boolean"
}
}
}
},
"required": [
"antibodyName",
"description",
"hostOrganism",
"reactiveSpecies"
]
},
"conjugated": {
"type": "string",
"title": "Conjugated",
"enum": [
"Yes",
"Non-conjugated"
]
},
"targetAntigen": {
"type": "string",
"title": "Target Antigen"
},
"clonality": {
"type": "string",
"title": "Clonality",
"enum": [
"Monoclonal",
"Polyclonal",
"Secondary",
"Recombinant",
"Control",
"Cocktail",
"Isotope Control",
"Unknown"
]
},
"publicationDOI": {
"type": "string",
"title": "Publication Link (DOI)"
},
"itemAcquisition": {
"type": "string",
"title": "How to acquire",
"enum": [
"Contact Developer",
"Purchase from Vendor",
"Other"
],
"default": "Contact Developer"
}
},
"allOf": [
{
"if": {
"properties": {
"userInfo": {
"properties": {
"isDeveloper": {
"const": "No"
}
}
}
}
},
"then": {
"properties": {
"userInfo": {
"properties": {
"developerName": {
"type": "string",
"title": "Developer Name"
},
"developerAffiliation": {
"type": "string",
"title": "Developer Affiliation"
}
}
}
}
}
},
{
"if": {
"properties": {
"itemAcquisition": {
"const": "Purchase from Vendor"
}
}
},
"then": {
"properties": {
"vendor": {
"type": "string",
"title": "Vendor Name"
},
"catalogNumber": {
"type": "string",
"title": "Catalog Number"
},
"catalogURL": {
"type": "string",
"title": "Link to vendor page"
}
}
}
},
{
"if": {
"properties": {
"itemAcquisition": {
"const": "Other"
}
}
},
"then": {
"properties": {
"additionalDetails": {
"type": "string",
"title": "Please provide additional details."
}
},
"required": [
"additionalDetails"
]
}
}
]
}
Loading

0 comments on commit 6e5c7bf

Please sign in to comment.