You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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