Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

350 lines
11KB

  1. {
  2. "formMode": "batch",
  3. "fields": [
  4. {
  5. "tmplType": "sample_id",
  6. "type": "number",
  7. "label": "Sample ID",
  8. "name": "sample_id",
  9. "question": "How many samples? For auto generating sample id.",
  10. "placeholder": "How many samples? For auto generating sample id.",
  11. "model": "sample_id",
  12. "disabled": false,
  13. "min": 1,
  14. "max": 100,
  15. "config": {
  16. "initialValue": 1,
  17. "rules": [
  18. {
  19. "type": "number",
  20. "required": true,
  21. "message": "Please input a number."
  22. }
  23. ]
  24. }
  25. },
  26. {
  27. "tmplType": "radio",
  28. "label": "Platform?",
  29. "model": "pl",
  30. "options": [
  31. {
  32. "label": "BGI",
  33. "value": "BGI"
  34. },
  35. {
  36. "label": "ILLUMINA",
  37. "value": "ILLUMINA"
  38. }
  39. ],
  40. "config": {
  41. "rules": [
  42. {
  43. "type": "string",
  44. "required": true,
  45. "message": "Please select a platform."
  46. }
  47. ]
  48. }
  49. },
  50. {
  51. "tmplType": "file",
  52. "label": "Reference Bed Dict",
  53. "model": "reference_bed_dict",
  54. "readOnly": false,
  55. "multiple": false,
  56. "filterType": ".dict",
  57. "question": "A sequence dictionary for a reference sequence.",
  58. "placeholder": "A sequence dictionary for a reference sequence.",
  59. "config": {
  60. "initialValue": "oss://pgx-reference-data/GRCh38.d1.vd1/GRCh38.d1.vd1.dict",
  61. "rules": [
  62. {
  63. "required": true,
  64. "message": "Please select a bed file."
  65. }
  66. ]
  67. }
  68. },
  69. {
  70. "tmplType": "radio",
  71. "label": "FASTQ/VCF File?",
  72. "model": "fastq_or_vcf",
  73. "options": [
  74. {
  75. "label": "FASTQ",
  76. "value": "fastq"
  77. },
  78. {
  79. "label": "VCF",
  80. "value": "vcf"
  81. }
  82. ],
  83. "config": {
  84. "rules": [
  85. {
  86. "type": "string",
  87. "required": true,
  88. "message": "Please select a file type."
  89. }
  90. ]
  91. }
  92. },
  93. {
  94. "tmplType": "file",
  95. "label": "D5 VCF Files",
  96. "model": "vcf_D5",
  97. "readOnly": false,
  98. "multiple": true,
  99. "visibleVariable": "fastq_or_vcf",
  100. "expectedValue": "vcf",
  101. "filterType": "vcf",
  102. "placeholder": "Select files for D5 vcf.",
  103. "config": {
  104. "rules": [
  105. {
  106. "type": "array",
  107. "required": true,
  108. "message": "Please select files for D5 vcf."
  109. }
  110. ]
  111. }
  112. },
  113. {
  114. "tmplType": "file",
  115. "label": "D5 Read1 Files",
  116. "model": "fastq_1_D5",
  117. "readOnly": false,
  118. "multiple": true,
  119. "visibleVariable": "fastq_or_vcf",
  120. "expectedValue": "fastq",
  121. "filterType": "_R[12].fastq.gz|_R[12].fq.gz",
  122. "placeholder": "Select files for D5 read1.",
  123. "config": {
  124. "rules": [
  125. {
  126. "type": "array",
  127. "required": true,
  128. "message": "Please select files for D5 read1."
  129. }
  130. ]
  131. }
  132. },
  133. {
  134. "tmplType": "file",
  135. "label": "D5 Read2 Files",
  136. "model": "fastq_2_D5",
  137. "readOnly": false,
  138. "multiple": true,
  139. "visibleVariable": "fastq_or_vcf",
  140. "expectedValue": "fastq",
  141. "filterType": "_R[12].fastq.gz|_R[12].fq.gz",
  142. "placeholder": "Select files for D5 read2.",
  143. "config": {
  144. "rules": [
  145. {
  146. "type": "array",
  147. "required": true,
  148. "message": "Please select files for D5 read2."
  149. }
  150. ]
  151. }
  152. },
  153. {
  154. "tmplType": "file",
  155. "label": "D6 VCF Files",
  156. "model": "vcf_D6",
  157. "readOnly": false,
  158. "multiple": true,
  159. "visibleVariable": "fastq_or_vcf",
  160. "expectedValue": "vcf",
  161. "filterType": "vcf",
  162. "placeholder": "Select files for D6 vcf.",
  163. "config": {
  164. "rules": [
  165. {
  166. "type": "array",
  167. "required": true,
  168. "message": "Please select files for D6 vcf."
  169. }
  170. ]
  171. }
  172. },
  173. {
  174. "tmplType": "file",
  175. "label": "D6 Read1 Files",
  176. "model": "fastq_1_D6",
  177. "readOnly": false,
  178. "multiple": true,
  179. "visibleVariable": "fastq_or_vcf",
  180. "expectedValue": "fastq",
  181. "filterType": "_R[12].fastq.gz|_R[12].fq.gz",
  182. "placeholder": "Select files for D6 read1.",
  183. "config": {
  184. "rules": [
  185. {
  186. "type": "array",
  187. "required": true,
  188. "message": "Please select files for D6 read1."
  189. }
  190. ]
  191. }
  192. },
  193. {
  194. "tmplType": "file",
  195. "label": "D6 Read2 Files",
  196. "model": "fastq_2_D6",
  197. "readOnly": false,
  198. "multiple": true,
  199. "visibleVariable": "fastq_or_vcf",
  200. "expectedValue": "fastq",
  201. "filterType": "_R[12].fastq.gz|_R[12].fq.gz",
  202. "placeholder": "Select files for D6 read2.",
  203. "config": {
  204. "rules": [
  205. {
  206. "type": "array",
  207. "required": true,
  208. "message": "Please select files for D6 read2."
  209. }
  210. ]
  211. }
  212. },
  213. {
  214. "tmplType": "file",
  215. "label": "F7 VCF Files",
  216. "model": "vcf_F7",
  217. "readOnly": false,
  218. "multiple": true,
  219. "visibleVariable": "fastq_or_vcf",
  220. "expectedValue": "vcf",
  221. "filterType": "vcf",
  222. "placeholder": "Select files for F7 vcf.",
  223. "config": {
  224. "rules": [
  225. {
  226. "type": "array",
  227. "required": true,
  228. "message": "Please select files for F7 vcf."
  229. }
  230. ]
  231. }
  232. },
  233. {
  234. "tmplType": "file",
  235. "label": "F7 Read1 Files",
  236. "model": "fastq_1_F7",
  237. "readOnly": false,
  238. "multiple": true,
  239. "visibleVariable": "fastq_or_vcf",
  240. "expectedValue": "fastq",
  241. "filterType": "_R[12].fastq.gz|_R[12].fq.gz",
  242. "placeholder": "Select files for F7 read1.",
  243. "config": {
  244. "rules": [
  245. {
  246. "type": "array",
  247. "required": true,
  248. "message": "Please select files for F7 read1."
  249. }
  250. ]
  251. }
  252. },
  253. {
  254. "tmplType": "file",
  255. "label": "F7 Read2 Files",
  256. "model": "fastq_2_F7",
  257. "readOnly": false,
  258. "multiple": true,
  259. "visibleVariable": "fastq_or_vcf",
  260. "expectedValue": "fastq",
  261. "filterType": "_R[12].fastq.gz|_R[12].fq.gz",
  262. "placeholder": "Select files for F7 read2.",
  263. "config": {
  264. "rules": [
  265. {
  266. "type": "array",
  267. "required": true,
  268. "message": "Please select files for F7 read2."
  269. }
  270. ]
  271. }
  272. },
  273. {
  274. "tmplType": "file",
  275. "label": "M8 VCF Files",
  276. "model": "vcf_M8",
  277. "readOnly": false,
  278. "multiple": true,
  279. "visibleVariable": "fastq_or_vcf",
  280. "expectedValue": "vcf",
  281. "filterType": "vcf",
  282. "placeholder": "Select files for M8 vcf.",
  283. "config": {
  284. "rules": [
  285. {
  286. "type": "array",
  287. "required": true,
  288. "message": "Please select files for M8 vcf."
  289. }
  290. ]
  291. }
  292. },
  293. {
  294. "tmplType": "file",
  295. "label": "M8 Read1 Files",
  296. "model": "fastq_1_M8",
  297. "readOnly": false,
  298. "multiple": true,
  299. "visibleVariable": "fastq_or_vcf",
  300. "expectedValue": "fastq",
  301. "filterType": "_R[12].fastq.gz|_R[12].fq.gz",
  302. "placeholder": "Select files for M8 read1.",
  303. "config": {
  304. "rules": [
  305. {
  306. "type": "array",
  307. "required": true,
  308. "message": "Please select files for M8 read1."
  309. }
  310. ]
  311. }
  312. },
  313. {
  314. "tmplType": "file",
  315. "label": "M8 Read2 Files",
  316. "model": "fastq_2_M8",
  317. "readOnly": false,
  318. "multiple": true,
  319. "visibleVariable": "fastq_or_vcf",
  320. "expectedValue": "fastq",
  321. "filterType": "_R[12].fastq.gz|_R[12].fq.gz",
  322. "placeholder": "Select files for M8 read2.",
  323. "config": {
  324. "rules": [
  325. {
  326. "type": "array",
  327. "required": true,
  328. "message": "Please select files for M8 read2."
  329. }
  330. ]
  331. }
  332. },
  333. {
  334. "tmplType": "actions",
  335. "buttons": [
  336. {
  337. "type": "cancel",
  338. "buttonType": "default",
  339. "buttonLabel": "Previous Step"
  340. },
  341. {
  342. "type": "submit",
  343. "buttonType": "primary",
  344. "buttonLabel": "Next Step",
  345. "validate": true
  346. }
  347. ]
  348. }
  349. ]
  350. }