Skip to main content

Paramerter Generation

form json

{
"name": "count",
"label": "count",
"db": true,
"columns":["control","treatment"],
"rules": [
{
"required": true,
"message": "This field cannot be empty!"
}
],
"type": "CollectedGroupSelectSampleButton",
"group": "group_field"
}

react dom

<>
<Form.Item label={`${label} File`} name={[name, "file"]} rules={rules}>
<Select options={collectFiles} ></Select>
</Form.Item>
{(columns && Array.isArray(columns)) && columns.map((item: any, index: any) => (
<div key={index}>
<Form.Item label={`${item} Columns`} name={[name, item]} rules={rules}>
<GroupSelectSample sampleGrouped={sampleGrouped} sampleGroup={options} ></GroupSelectSample>
</Form.Item>
<Flex gap="small">
{item}
<Form.Item label={item} name={[name, "group",`${item}`]} noStyle >
<GroupSelectButton sampleGrouped={sampleGrouped} field={[name, item]}></GroupSelectButton>
</Form.Item>
<Form.Item name={[name,"group_name", `${item}`]} >
<Input size="small" placeholder="Optional group name"></Input>
</Form.Item>
<Form.Item name={[name, "color",`${item}`]} >
<ColorPickerComp projParameter={projParameter} />
</Form.Item>
</Flex>
</div>
))}
</>

ui

CollectedGroupSelectSampleButton

request params

{

"count": {
"file": 6492,
"control": [
"OL1",
"OL4",
"OL5",
"OL2",
"OL3"
],
"group": {
"control": [
"OL"
],
"treatment": [
"CF"
]
},
"group_name": {
"control": "Group1",
"treatment": "Group2"
},
"color": {
"control": "#c72929",
"treatment": "#0055de"
},
"treatment": [
"CF1",
"CF4",
"CF3",
"CF5",
"CF2"
]
}
}

parse params

{
"group_field": "group",
"count": {
"id": 6492,
"analysis_result_id": "07ebc87a-6796-421c-95bb-fe21557f964b",
"file_name": "count",
"component_id": "96a34143-2cde-4c34-813f-e0c88454cd78",
"content": "/opt/brave_prod/workspace/analysis/9a6af4fb-0af6-4752-af79-9adec161e7c2/457113ad-cda6-4b8f-8710-13e7a87a87c2/f2eeb170-ee62-43fc-acc0-cf4c66c66810/output/count.tsv",
"content_type": "json",
"analysis_id": "f2eeb170-ee62-43fc-acc0-cf4c66c66810",
"project": "9a6af4fb-0af6-4752-af79-9adec161e7c2",
"analysis_type": "upstream_analysis",
"analysis_result_hash": "d312bd1d9c8fc932e1f63ebdc6a49c3f",
"analysis_name": "Combine Gene",
"component_name": "Combine Gene Count",
"file_type": "collected",
"project_name": "leipu",
"form_type": "CollectedGroupSelectSampleButton",
"control": [
{
"id": 6492,
"analysis_result_id": "07ebc87a-6796-421c-95bb-fe21557f964b",
"columns_name": "OL1",
"group": "OL",
"sample_id": "f4bd27d6-a206-4aa7-837b-5450a976aaad",
"project": "9a6af4fb-0af6-4752-af79-9adec161e7c2",
"sample_name": "OL1",
"sample_group": null,
"sample_source": null,
"selcted_group_name": "OL",
"re_groups_name": "Group1"
},
{
"id": 6492,
"analysis_result_id": "07ebc87a-6796-421c-95bb-fe21557f964b",
"columns_name": "OL4",
"group": "OL",
"sample_id": "5c6bce37-b5ea-418b-90a3-bdfcb763aa7a",
"project": "9a6af4fb-0af6-4752-af79-9adec161e7c2",
"sample_name": "OL4",
"sample_group": null,
"sample_source": null,
"selcted_group_name": "OL",
"re_groups_name": "Group1"
},
{
"id": 6492,
"analysis_result_id": "07ebc87a-6796-421c-95bb-fe21557f964b",
"columns_name": "OL5",
"group": "OL",
"sample_id": "751ea228-f2dc-4fef-9363-40d62c26943d",
"project": "9a6af4fb-0af6-4752-af79-9adec161e7c2",
"sample_name": "OL5",
"sample_group": null,
"sample_source": null,
"selcted_group_name": "OL",
"re_groups_name": "Group1"
},
{
"id": 6492,
"analysis_result_id": "07ebc87a-6796-421c-95bb-fe21557f964b",
"columns_name": "OL2",
"group": "OL",
"sample_id": "7bc7bc37-18da-48b2-9b14-30f6e894a087",
"project": "9a6af4fb-0af6-4752-af79-9adec161e7c2",
"sample_name": "OL2",
"sample_group": null,
"sample_source": null,
"selcted_group_name": "OL",
"re_groups_name": "Group1"
},
{
"id": 6492,
"analysis_result_id": "07ebc87a-6796-421c-95bb-fe21557f964b",
"columns_name": "OL3",
"group": "OL",
"sample_id": "332ec1c4-b0c6-41af-90b3-79997ae5de00",
"project": "9a6af4fb-0af6-4752-af79-9adec161e7c2",
"sample_name": "OL3",
"sample_group": null,
"sample_source": null,
"selcted_group_name": "OL",
"re_groups_name": "Group1"
}
],
"treatment": [
{
"id": 6492,
"analysis_result_id": "07ebc87a-6796-421c-95bb-fe21557f964b",
"columns_name": "CF1",
"group": "CF",
"sample_id": "8d302e23-e50e-4d23-b1f7-4dc4328a3075",
"project": "9a6af4fb-0af6-4752-af79-9adec161e7c2",
"sample_name": "CF1",
"sample_group": null,
"sample_source": null,
"selcted_group_name": "CF",
"re_groups_name": "Group2"
},
{
"id": 6492,
"analysis_result_id": "07ebc87a-6796-421c-95bb-fe21557f964b",
"columns_name": "CF4",
"group": "CF",
"sample_id": "4f4fee2b-c7df-47b5-b177-0f31f7c54701",
"project": "9a6af4fb-0af6-4752-af79-9adec161e7c2",
"sample_name": "CF4",
"sample_group": null,
"sample_source": null,
"selcted_group_name": "CF",
"re_groups_name": "Group2"
},
{
"id": 6492,
"analysis_result_id": "07ebc87a-6796-421c-95bb-fe21557f964b",
"columns_name": "CF3",
"group": "CF",
"sample_id": "1d65201b-c8a1-43e6-9fbc-3054aa416499",
"project": "9a6af4fb-0af6-4752-af79-9adec161e7c2",
"sample_name": "CF3",
"sample_group": null,
"sample_source": null,
"selcted_group_name": "CF",
"re_groups_name": "Group2"
},
{
"id": 6492,
"analysis_result_id": "07ebc87a-6796-421c-95bb-fe21557f964b",
"columns_name": "CF5",
"group": "CF",
"sample_id": "5e7df75c-ab7f-4ba5-9f70-12e27a03c52b",
"project": "9a6af4fb-0af6-4752-af79-9adec161e7c2",
"sample_name": "CF5",
"sample_group": null,
"sample_source": null,
"selcted_group_name": "CF",
"re_groups_name": "Group2"
},
{
"id": 6492,
"analysis_result_id": "07ebc87a-6796-421c-95bb-fe21557f964b",
"columns_name": "CF2",
"group": "CF",
"sample_id": "cd10a228-54b1-4285-977b-e9b86372464a",
"project": "9a6af4fb-0af6-4752-af79-9adec161e7c2",
"sample_name": "CF2",
"sample_group": null,
"sample_source": null,
"selcted_group_name": "CF",
"re_groups_name": "Group2"
}
]
},
"colors": {
"count": {
"control": "#c72929",
"treatment": "#0055de"
}
},
"groups_name": {
"count": {
"control": "OL",
"treatment": "CF"
}
},
"re_groups_name": {
"count": {
"control": "Group1",
"treatment": "Group2"
}
},
"groups": [
"count"
]
}

python parse