Open tmushayahama opened 9 months ago
@tmushayahama please expand the JSON definition to include hidden and default selections
@tmushayahama, you need to update as necessary to feed this into Angular IFormStructure. Note, I have added action and method to indicate URL and request type POST; these have to be removed. 'controls' should make up the bulk of the form. There is no automated way to go from html form to JSON. You have to look at each field in the form and create a control field in JSON. I had to go through emails from @thomaspd to determine the genes and labels for the ontology drop down list. It is not specified in any API. Note, each gene in the text box should be delimited by newline.
{
"form": {
"action": "https://pantree-dev.usc.edu//webservices/go/overrep.jsp?",
"method": "POST",
"controls": [
{"type": "textarea",
"name": "input",
"value": "AKT1 BDNF CCKAR CHI3L1 CHRNA7 CLDN5 CNR1 COMT DPYSL2 DTNBP1 EGF GABRA1 GABRB2 GAD1 GRIK3 GRM3 IL10 MCHR1 MLC1 NEUROG1 NOS1 NOS1AP NOTCH4 NPY NRG1 OLIG2 PDE4B PLA2G4A PLXNA2 PPP3CC PRODH RELN RGS4 RTN4 SNAP25 SRR SYN2 TNF TP53 UFD1L XBP1 YWHAE"
},
{"type": "select",
"name": "ontology",
"value": "biological_process_IBA",
"options": [{"label": "biological process PAN-GO", "value": "biological_process_IBA"},
{"label": "molecular function PAN-GO", "value": "molecular_function_IBA"},
{"label": "cellular component PAN-GO", "value": "cellular_component_IBA"}]
},
{"type": "hidden",
"name": "species",
"value": "HUMAN"},
{"type": "hidden",
"name": "test_type",
"value": "FISHER"}
]
}
}
Can you provide me with complete structured data so we have it in one place. It's hard to scrap and compile the list from website or html
example dropdown list
List Of Genes
tagging @mugitty @thomaspd