@nfdi4plants/arctrl 1.2.0 → 2.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. package/ARC.js +53 -35
  2. package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
  3. package/Contract/ArcAssay.js +102 -0
  4. package/Contract/ArcInvestigation.js +78 -0
  5. package/Contract/ArcStudy.js +102 -0
  6. package/Contract/Contract.js +3 -3
  7. package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
  8. package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
  9. package/Core/Comment.js +97 -0
  10. package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
  11. package/Core/Conversion.js +1056 -0
  12. package/Core/Helper/Collections.js +318 -0
  13. package/Core/Helper/HashCodes.js +39 -0
  14. package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
  15. package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
  16. package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
  17. package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
  18. package/Core/OntologyAnnotation.js +186 -0
  19. package/Core/OntologySourceReference.js +92 -0
  20. package/Core/Person.js +194 -0
  21. package/Core/Process/ColumnIndex.js +248 -0
  22. package/Core/Process/Component.js +188 -0
  23. package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
  24. package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
  25. package/Core/Process/Factor.js +109 -0
  26. package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
  27. package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
  28. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
  29. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
  30. package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
  31. package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
  32. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
  33. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
  34. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
  35. package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
  36. package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
  37. package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
  38. package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
  39. package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
  40. package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +13 -13
  41. package/Core/Publication.js +116 -0
  42. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +43 -149
  43. package/Core/Table/ArcTableAux.js +532 -0
  44. package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
  45. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
  46. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +6 -6
  47. package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
  48. package/{Templates → Core}/Template.js +16 -17
  49. package/Core/Templates.js +84 -0
  50. package/FileSystem/Commit.js +2 -2
  51. package/FileSystem/FileSystem.js +4 -4
  52. package/FileSystem/FileSystemTree.js +46 -8
  53. package/FileSystem/Path.js +10 -2
  54. package/Json/ARC.js +25 -0
  55. package/Json/Assay.js +202 -0
  56. package/Json/Comment.js +130 -0
  57. package/Json/ConverterOptions.js +18 -0
  58. package/Json/Decode.js +128 -0
  59. package/Json/Encode.js +45 -0
  60. package/Json/Investigation.js +220 -0
  61. package/Json/OntologyAnnotation.js +169 -0
  62. package/Json/OntologySourceReference.js +122 -0
  63. package/Json/Person.js +250 -0
  64. package/Json/Process/AssayMaterials.js +22 -0
  65. package/Json/Process/Component.js +79 -0
  66. package/Json/Process/Data.js +102 -0
  67. package/Json/Process/DataFile.js +81 -0
  68. package/Json/Process/Factor.js +48 -0
  69. package/Json/Process/FactorValue.js +53 -0
  70. package/Json/Process/Material.js +107 -0
  71. package/Json/Process/MaterialAttribute.js +45 -0
  72. package/Json/Process/MaterialAttributeValue.js +70 -0
  73. package/Json/Process/MaterialType.js +60 -0
  74. package/Json/Process/Process.js +107 -0
  75. package/Json/Process/ProcessInput.js +59 -0
  76. package/Json/Process/ProcessOutput.js +71 -0
  77. package/Json/Process/ProcessParameterValue.js +69 -0
  78. package/Json/Process/ProcessSequence.js +53 -0
  79. package/Json/Process/PropertyValue.js +82 -0
  80. package/Json/Process/Protocol.js +147 -0
  81. package/Json/Process/ProtocolParameter.js +45 -0
  82. package/Json/Process/Sample.js +134 -0
  83. package/Json/Process/Source.js +101 -0
  84. package/Json/Process/StudyMaterials.js +24 -0
  85. package/Json/Process/Value.js +42 -0
  86. package/Json/Publication.js +142 -0
  87. package/Json/StringTable.js +44 -0
  88. package/Json/Study.js +306 -0
  89. package/{ISA/ISA.Json/ArcTypes → Json/Table}/ArcTable.js +53 -49
  90. package/Json/Table/CellTable.js +40 -0
  91. package/Json/Table/CompositeCell.js +65 -0
  92. package/{ISA/ISA.Json/ArcTypes → Json/Table}/CompositeHeader.js +22 -19
  93. package/Json/Table/Compression.js +38 -0
  94. package/Json/Table/IOType.js +37 -0
  95. package/Json/Table/OATable.js +40 -0
  96. package/Json/Table/Templates.js +107 -0
  97. package/Json/context/rocrate/isa_assay_context.js +32 -0
  98. package/Json/context/rocrate/isa_comment_context.js +23 -0
  99. package/Json/context/rocrate/isa_component_context.js +24 -0
  100. package/Json/context/rocrate/isa_data_context.js +25 -0
  101. package/Json/context/rocrate/isa_factor_context.js +25 -0
  102. package/Json/context/rocrate/isa_factor_value_context.js +23 -0
  103. package/{ISA/ISA.Json → Json}/context/rocrate/isa_investigation_context.js +5 -5
  104. package/{ISA/ISA.Json → Json}/context/rocrate/isa_material_attribute_context.js +4 -4
  105. package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
  106. package/Json/context/rocrate/isa_material_context.js +26 -0
  107. package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
  108. package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
  109. package/Json/context/rocrate/isa_organization_context.js +22 -0
  110. package/Json/context/rocrate/isa_person_context.js +33 -0
  111. package/Json/context/rocrate/isa_process_context.js +29 -0
  112. package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
  113. package/Json/context/rocrate/isa_protocol_context.js +28 -0
  114. package/{ISA/ISA.Json → Json}/context/rocrate/isa_protocol_parameter_context.js +4 -4
  115. package/Json/context/rocrate/isa_publication_context.js +25 -0
  116. package/Json/context/rocrate/isa_sample_context.js +24 -0
  117. package/Json/context/rocrate/isa_source_context.js +25 -0
  118. package/Json/context/rocrate/isa_study_context.js +40 -0
  119. package/Json/context/rocrate/property_value_context.js +4 -0
  120. package/Json/context/rocrate/rocrate_context.js +23 -0
  121. package/Json.js +193 -0
  122. package/README.md +33 -12
  123. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
  124. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
  125. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeColumn.js +10 -10
  126. package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
  127. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
  128. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
  129. package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
  130. package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +7 -7
  131. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
  132. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Comment.js +5 -5
  133. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
  134. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
  135. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
  136. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
  137. package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
  138. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
  139. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
  140. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
  141. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +23 -22
  142. package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
  143. package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
  144. package/Template.Web.js +27 -0
  145. package/WebRequest/WebRequest.Node.js +2 -2
  146. package/WebRequest/WebRequest.js +2 -2
  147. package/Xlsx.js +85 -0
  148. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
  149. package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
  150. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
  151. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
  152. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js +14 -14
  153. package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
  154. package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
  155. package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
  156. package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
  157. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
  158. package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
  159. package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
  160. package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
  161. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
  162. package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
  163. package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
  164. package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
  165. package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
  166. package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
  167. package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
  168. package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
  169. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
  170. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +3 -3
  171. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
  172. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
  173. package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
  174. package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
  175. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
  176. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
  177. package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
  178. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +19 -19
  179. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +5 -5
  180. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +2 -2
  181. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +1 -1
  182. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +2 -2
  183. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
  184. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/CHANGELOG.md +18 -0
  185. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
  186. package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
  187. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.js +337 -40
  188. package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
  189. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
  190. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
  191. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.js +2 -13
  192. package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/package.json +1 -1
  193. package/fable_modules/project_cracked.json +1 -1
  194. package/index.js +14 -12
  195. package/package.json +1 -1
  196. package/Contracts/Contracts.ArcTypes.js +0 -268
  197. package/FileSystemTree.js +0 -51
  198. package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
  199. package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
  200. package/ISA/ISA/Builder/Types.js +0 -243
  201. package/ISA/ISA/Fable.js +0 -123
  202. package/ISA/ISA/Helper.js +0 -505
  203. package/ISA/ISA/JsonTypes/Assay.js +0 -620
  204. package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
  205. package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
  206. package/ISA/ISA/JsonTypes/Comment.js +0 -58
  207. package/ISA/ISA/JsonTypes/Component.js +0 -165
  208. package/ISA/ISA/JsonTypes/Factor.js +0 -128
  209. package/ISA/ISA/JsonTypes/Investigation.js +0 -204
  210. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
  211. package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
  212. package/ISA/ISA/JsonTypes/Person.js +0 -152
  213. package/ISA/ISA/JsonTypes/Publication.js +0 -105
  214. package/ISA/ISA/JsonTypes/Study.js +0 -942
  215. package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
  216. package/ISA/ISA/UIHelper.js +0 -19
  217. package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -303
  218. package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -122
  219. package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -203
  220. package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -40
  221. package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -62
  222. package/ISA/ISA.Json/ArcTypes/IOType.js +0 -33
  223. package/ISA/ISA.Json/ArcTypes/OATable.js +0 -42
  224. package/ISA/ISA.Json/Assay.js +0 -129
  225. package/ISA/ISA.Json/Comment.js +0 -80
  226. package/ISA/ISA.Json/ConverterOptions.js +0 -51
  227. package/ISA/ISA.Json/Data.js +0 -253
  228. package/ISA/ISA.Json/Decode.js +0 -61
  229. package/ISA/ISA.Json/Factor.js +0 -194
  230. package/ISA/ISA.Json/GEncode.js +0 -40
  231. package/ISA/ISA.Json/Investigation.js +0 -89
  232. package/ISA/ISA.Json/Material.js +0 -232
  233. package/ISA/ISA.Json/Ontology.js +0 -200
  234. package/ISA/ISA.Json/Person.js +0 -186
  235. package/ISA/ISA.Json/Process.js +0 -305
  236. package/ISA/ISA.Json/Protocol.js +0 -281
  237. package/ISA/ISA.Json/Publication.js +0 -86
  238. package/ISA/ISA.Json/StringTable.js +0 -44
  239. package/ISA/ISA.Json/Study.js +0 -186
  240. package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +0 -34
  241. package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +0 -23
  242. package/ISA/ISA.Json/context/rocrate/isa_component_context.js +0 -24
  243. package/ISA/ISA.Json/context/rocrate/isa_data_context.js +0 -25
  244. package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +0 -25
  245. package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +0 -25
  246. package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +0 -25
  247. package/ISA/ISA.Json/context/rocrate/isa_material_context.js +0 -26
  248. package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +0 -25
  249. package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +0 -26
  250. package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +0 -22
  251. package/ISA/ISA.Json/context/rocrate/isa_person_context.js +0 -31
  252. package/ISA/ISA.Json/context/rocrate/isa_process_context.js +0 -31
  253. package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +0 -25
  254. package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +0 -30
  255. package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +0 -27
  256. package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +0 -26
  257. package/ISA/ISA.Json/context/rocrate/isa_source_context.js +0 -25
  258. package/ISA/ISA.Json/context/rocrate/isa_study_context.js +0 -42
  259. package/ISA/ISA.Json/context/rocrate/rocrate_context.js +0 -25
  260. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
  261. package/Path.js +0 -10
  262. package/Templates/Template.Json.js +0 -90
  263. package/Templates/Template.Web.js +0 -27
  264. package/Templates/Templates.js +0 -82
  265. package/fable_modules/fable-library-js.4.13.0/MapUtil.d.ts +0 -10
  266. /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
  267. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.d.ts +0 -0
  268. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.js +0 -0
  269. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
  270. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.js +0 -0
  271. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
  272. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
  273. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
  274. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
  275. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
  276. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
  277. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
  278. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
  279. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.js +0 -0
  280. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -0
  281. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.js +0 -0
  282. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
  283. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
  284. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
  285. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
  286. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
  287. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
  288. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
  289. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
  290. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.js +0 -0
  291. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
  292. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
  293. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
  294. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.js +0 -0
  295. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
  296. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
  297. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.d.ts +0 -0
  298. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.js +0 -0
  299. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
  300. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
  301. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
  302. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.js +0 -0
  303. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
  304. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.js +0 -0
  305. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
  306. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.js +0 -0
  307. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
  308. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.js +0 -0
  309. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
  310. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.js +0 -0
  311. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
  312. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
  313. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
  314. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.js +0 -0
  315. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
  316. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.js +0 -0
  317. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
  318. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.js +0 -0
  319. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
  320. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.js +0 -0
  321. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
  322. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
  323. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
  324. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.js +0 -0
  325. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
  326. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.js +0 -0
  327. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/README.md +0 -0
  328. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
  329. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.js +0 -0
  330. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
  331. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.js +0 -0
  332. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
  333. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
  334. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
  335. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
  336. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.d.ts +0 -0
  337. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.js +0 -0
  338. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
  339. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.js +0 -0
  340. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
  341. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
  342. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
  343. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.js +0 -0
  344. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.d.ts +0 -0
  345. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.js +0 -0
  346. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +0 -0
  347. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +0 -0
  348. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.d.ts +0 -0
  349. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.js +0 -0
  350. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
  351. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
  352. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
  353. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
  354. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
  355. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
  356. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
  357. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.js +0 -0
  358. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
  359. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.js +0 -0
  360. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
  361. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
  362. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
  363. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.js +0 -0
  364. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/big.d.ts +0 -0
  365. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
  366. /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
@@ -1,24 +1,24 @@
1
- import { Record } from "../../fable_modules/fable-library-js.4.13.0/Types.js";
2
- import { record_type, list_type, string_type } from "../../fable_modules/fable-library-js.4.13.0/Reflection.js";
3
- import { Remark, Comment$_$reflection } from "../ISA/JsonTypes/Comment.js";
4
- import { ofSeq, head, tail, isEmpty, concat, unzip, append, toArray, reverse, cons, empty, map, ofArray } from "../../fable_modules/fable-library-js.4.13.0/List.js";
1
+ import { Record } from "../fable_modules/fable-library-js.4.16.0/Types.js";
2
+ import { record_type, list_type, string_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
3
+ import { Remark, Comment$_$reflection } from "../Core/Comment.js";
4
+ import { head, tail, isEmpty, ofSeq, concat, unzip, append, reverse, cons, empty, map, ofArray } from "../fable_modules/fable-library-js.4.16.0/List.js";
5
5
  import { Remark_wrapRemark, Comment_toString, Comment_fromString } from "./Metadata/Comment.js";
6
- import { SparseRowModule_writeToSheet, SparseRowModule_fromFsRow, SparseRowModule_fromValues, SparseRowModule_tryGetValueAt, SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValueDefault_5BAE6133 } from "./Metadata/SparseTable.js";
7
- import { addToDict } from "../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
8
- import { value as value_1, defaultArg } from "../../fable_modules/fable-library-js.4.13.0/Option.js";
9
- import { List_distinctBy, List_distinct } from "../../fable_modules/fable-library-js.4.13.0/Seq2.js";
10
- import { comparePrimitives, getEnumerator, stringHash } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
11
- import { Option_fromValueWithDefault } from "./Metadata/Conversions.js";
12
- import { ArcStudy, ArcInvestigation } from "../ISA/ArcTypes/ArcTypes.js";
6
+ import { SparseRowModule_writeToSheet, SparseRowModule_fromFsRow, SparseRowModule_fromValues, SparseRowModule_tryGetValueAt, SparseTable_ToRows_759CAFC1, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValueDefault_5BAE6133 } from "./Metadata/SparseTable.js";
7
+ import { addToDict } from "../fable_modules/fable-library-js.4.16.0/MapUtil.js";
8
+ import { value as value_1, defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
9
+ import { Option_fromValueWithDefault, ResizeArray_iter } from "../Core/Helper/Collections.js";
10
+ import { List_distinctBy, List_distinct } from "../fable_modules/fable-library-js.4.16.0/Seq2.js";
11
+ import { comparePrimitives, getEnumerator, stringHash } from "../fable_modules/fable-library-js.4.16.0/Util.js";
12
+ import { ArcStudy, ArcInvestigation } from "../Core/ArcTypes.js";
13
13
  import { toRows as toRows_1, fromRows as fromRows_1 } from "./Metadata/OntologySourceReference.js";
14
14
  import { toRows as toRows_2, fromRows as fromRows_2 } from "./Metadata/Publication.js";
15
15
  import { toRows as toRows_3, fromRows as fromRows_3 } from "./Metadata/Contacts.js";
16
16
  import { toRows as toRows_4, fromRows as fromRows_4 } from "./Metadata/Study.js";
17
- import { iterateIndexed, map as map_1, toList, empty as empty_1, collect, singleton, append as append_1, delay } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
18
- import { tryFind, ofList } from "../../fable_modules/fable-library-js.4.13.0/Map.js";
19
- import { printf, toFail } from "../../fable_modules/fable-library-js.4.13.0/String.js";
20
- import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js";
21
- import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js";
17
+ import { iterateIndexed, map as map_1, toList, empty as empty_1, collect, singleton, append as append_1, delay } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
18
+ import { tryFind, ofList } from "../fable_modules/fable-library-js.4.16.0/Map.js";
19
+ import { printf, toFail } from "../fable_modules/fable-library-js.4.16.0/String.js";
20
+ import { FsWorksheet } from "../fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js";
21
+ import { FsWorkbook } from "../fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js";
22
22
 
23
23
  export class InvestigationInfo extends Record {
24
24
  constructor(Identifier, Title, Description, SubmissionDate, PublicReleaseDate, Comments) {
@@ -33,7 +33,7 @@ export class InvestigationInfo extends Record {
33
33
  }
34
34
 
35
35
  export function InvestigationInfo_$reflection() {
36
- return record_type("ARCtrl.ISA.Spreadsheet.ArcInvestigation.InvestigationInfo", [], InvestigationInfo, () => [["Identifier", string_type], ["Title", string_type], ["Description", string_type], ["SubmissionDate", string_type], ["PublicReleaseDate", string_type], ["Comments", list_type(Comment$_$reflection())]]);
36
+ return record_type("ARCtrl.Spreadsheet.ArcInvestigation.InvestigationInfo", [], InvestigationInfo, () => [["Identifier", string_type], ["Title", string_type], ["Description", string_type], ["SubmissionDate", string_type], ["PublicReleaseDate", string_type], ["Comments", list_type(Comment$_$reflection())]]);
37
37
  }
38
38
 
39
39
  export function InvestigationInfo_create(identifier, title, description, submissionDate, publicReleaseDate, comments) {
@@ -44,12 +44,12 @@ export function InvestigationInfo_get_Labels() {
44
44
  return ofArray(["Investigation Identifier", "Investigation Title", "Investigation Description", "Investigation Submission Date", "Investigation Public Release Date"]);
45
45
  }
46
46
 
47
- export function InvestigationInfo_FromSparseTable_651559CC(matrix) {
47
+ export function InvestigationInfo_FromSparseTable_3ECCA699(matrix) {
48
48
  const comments = map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, 0])), matrix.CommentKeys);
49
49
  return InvestigationInfo_create(SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Investigation Identifier", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Investigation Title", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Investigation Description", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Investigation Submission Date", 0]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", ["Investigation Public Release Date", 0]), comments);
50
50
  }
51
51
 
52
- export function InvestigationInfo_ToSparseTable_Z4D87C88C(investigation) {
52
+ export function InvestigationInfo_ToSparseTable_Z720BD3FF(investigation) {
53
53
  const matrix = SparseTable_Create_Z2192E64B(void 0, InvestigationInfo_get_Labels(), void 0, 2);
54
54
  let commentKeys = empty();
55
55
  addToDict(matrix.Matrix, ["Investigation Identifier", 1], investigation.Identifier);
@@ -57,15 +57,12 @@ export function InvestigationInfo_ToSparseTable_Z4D87C88C(investigation) {
57
57
  addToDict(matrix.Matrix, ["Investigation Description", 1], defaultArg(investigation.Description, ""));
58
58
  addToDict(matrix.Matrix, ["Investigation Submission Date", 1], defaultArg(investigation.SubmissionDate, ""));
59
59
  addToDict(matrix.Matrix, ["Investigation Public Release Date", 1], defaultArg(investigation.PublicReleaseDate, ""));
60
- if (!(investigation.Comments.length === 0)) {
61
- const array = investigation.Comments;
62
- array.forEach((comment) => {
63
- const patternInput = Comment_toString(comment);
64
- const n = patternInput[0];
65
- commentKeys = cons(n, commentKeys);
66
- addToDict(matrix.Matrix, [n, 1], patternInput[1]);
67
- });
68
- }
60
+ ResizeArray_iter((comment) => {
61
+ const patternInput = Comment_toString(comment);
62
+ const n = patternInput[0];
63
+ commentKeys = cons(n, commentKeys);
64
+ addToDict(matrix.Matrix, [n, 1], patternInput[1]);
65
+ }, investigation.Comments);
69
66
  return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
70
67
  Equals: (x, y) => (x === y),
71
68
  GetHashCode: stringHash,
@@ -74,11 +71,11 @@ export function InvestigationInfo_ToSparseTable_Z4D87C88C(investigation) {
74
71
 
75
72
  export function InvestigationInfo_fromRows(lineNumber, rows) {
76
73
  const tupledArg = SparseTable_FromRows_Z5579EC29(rows, InvestigationInfo_get_Labels(), lineNumber);
77
- return [tupledArg[0], tupledArg[1], tupledArg[2], InvestigationInfo_FromSparseTable_651559CC(tupledArg[3])];
74
+ return [tupledArg[0], tupledArg[1], tupledArg[2], InvestigationInfo_FromSparseTable_3ECCA699(tupledArg[3])];
78
75
  }
79
76
 
80
- export function InvestigationInfo_toRows_Z4D87C88C(investigation) {
81
- return SparseTable_ToRows_6A3D4534(InvestigationInfo_ToSparseTable_Z4D87C88C(investigation));
77
+ export function InvestigationInfo_toRows_Z720BD3FF(investigation) {
78
+ return SparseTable_ToRows_759CAFC1(InvestigationInfo_ToSparseTable_Z720BD3FF(investigation));
82
79
  }
83
80
 
84
81
  export function fromParts(investigationInfo, ontologySourceReference, publications, contacts, studies, assays, remarks) {
@@ -87,14 +84,14 @@ export function fromParts(investigationInfo, ontologySourceReference, publicatio
87
84
  const description = Option_fromValueWithDefault("", investigationInfo.Description);
88
85
  const submissionDate = Option_fromValueWithDefault("", investigationInfo.SubmissionDate);
89
86
  const publicReleaseDate = Option_fromValueWithDefault("", investigationInfo.PublicReleaseDate);
90
- const ontologySourceReferences = toArray(ontologySourceReference);
91
- const publications_1 = toArray(publications);
92
- const contacts_1 = toArray(contacts);
87
+ const ontologySourceReferences = Array.from(ontologySourceReference);
88
+ const publications_1 = Array.from(publications);
89
+ const contacts_1 = Array.from(contacts);
93
90
  const assays_1 = Array.from(assays);
94
91
  const studies_1 = Array.from(studies);
95
92
  const registeredStudyIdentifiers = Array.from(studyIdentifiers);
96
- const comments = toArray(investigationInfo.Comments);
97
- const remarks_1 = toArray(remarks);
93
+ const comments = Array.from(investigationInfo.Comments);
94
+ const remarks_1 = Array.from(remarks);
98
95
  return ArcInvestigation.make(investigationInfo.Identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications_1, contacts_1, assays_1, studies_1, registeredStudyIdentifiers, comments, remarks_1);
99
96
  }
100
97
 
@@ -244,7 +241,7 @@ export function fromRows(rows) {
244
241
 
245
242
  export function toRows(isLight, investigation) {
246
243
  let remarks, rows;
247
- return (remarks = ofArray(investigation.Remarks), (rows = delay(() => append_1(singleton(SparseRowModule_fromValues(["ONTOLOGY SOURCE REFERENCE"])), delay(() => append_1(toRows_1(ofArray(investigation.OntologySourceReferences)), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION"])), delay(() => append_1(InvestigationInfo_toRows_Z4D87C88C(investigation), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION PUBLICATIONS"])), delay(() => append_1(toRows_2("Investigation Publication", ofArray(investigation.Publications)), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION CONTACTS"])), delay(() => append_1(toRows_3("Investigation Person", ofArray(investigation.Contacts)), delay(() => (!isLight ? collect((studyIdentifier) => {
244
+ return (remarks = ofSeq(investigation.Remarks), (rows = delay(() => append_1(singleton(SparseRowModule_fromValues(["ONTOLOGY SOURCE REFERENCE"])), delay(() => append_1(toRows_1(ofSeq(investigation.OntologySourceReferences)), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION"])), delay(() => append_1(InvestigationInfo_toRows_Z720BD3FF(investigation), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION PUBLICATIONS"])), delay(() => append_1(toRows_2("Investigation Publication", ofSeq(investigation.Publications)), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION CONTACTS"])), delay(() => append_1(toRows_3("Investigation Person", ofSeq(investigation.Contacts)), delay(() => (!isLight ? collect((studyIdentifier) => {
248
245
  const study = defaultArg(investigation.TryGetStudy(studyIdentifier), new ArcStudy(studyIdentifier));
249
246
  return append_1(singleton(SparseRowModule_fromValues(["STUDY"])), delay(() => toRows_4(study, void 0)));
250
247
  }, investigation.RegisteredStudyIdentifiers) : empty_1())))))))))))))))))), (() => {
@@ -1,16 +1,16 @@
1
- import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js";
2
- import { map, append, iterateIndexed } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
1
+ import { FsWorksheet } from "../fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js";
2
+ import { map, append, iterateIndexed } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
3
3
  import { SparseRowModule_fromFsRow, SparseRowModule_fromValues, SparseRowModule_writeToSheet } from "./Metadata/SparseTable.js";
4
4
  import { fromRows as fromRows_1, toRows } from "./Metadata/Study.js";
5
- import { toConsole, printf, toFail } from "../../fable_modules/fable-library-js.4.13.0/String.js";
6
- import { defaultArg } from "../../fable_modules/fable-library-js.4.13.0/Option.js";
7
- import { getEnumerator } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
8
- import { ArcStudy } from "../ISA/ArcTypes/ArcTypes.js";
9
- import { createMissingIdentifier } from "../ISA/Identifier.js";
10
- import { empty } from "../../fable_modules/fable-library-js.4.13.0/List.js";
11
- import { ResizeArray_iter, ResizeArray_isEmpty, ResizeArray_choose } from "../ISA/Helper.js";
5
+ import { toConsole, printf, toFail } from "../fable_modules/fable-library-js.4.16.0/String.js";
6
+ import { defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
7
+ import { getEnumerator } from "../fable_modules/fable-library-js.4.16.0/Util.js";
8
+ import { ArcStudy } from "../Core/ArcTypes.js";
9
+ import { createMissingIdentifier } from "../Core/Helper/Identifier.js";
10
+ import { empty } from "../fable_modules/fable-library-js.4.16.0/List.js";
11
+ import { ResizeArray_iter, ResizeArray_isEmpty, ResizeArray_choose } from "../Core/Helper/Collections.js";
12
12
  import { toFsWorksheet, tryFromFsWorksheet } from "./AnnotationTable/ArcTable.js";
13
- import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js";
13
+ import { FsWorkbook } from "../fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js";
14
14
 
15
15
  export function ArcStudy_toMetadataSheet(study, assays) {
16
16
  let source_1;
@@ -35,7 +35,7 @@ export function ArcStudy_fromMetadataSheet(sheet) {
35
35
  /**
36
36
  * Reads an assay from a spreadsheet
37
37
  */
38
- export function ARCtrl_ISA_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D(doc) {
38
+ export function ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D(doc) {
39
39
  try {
40
40
  let patternInput;
41
41
  const matchValue = doc.TryGetWorksheetByName("isa_study");
@@ -65,7 +65,7 @@ export function ARCtrl_ISA_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D(doc
65
65
  }
66
66
  }
67
67
 
68
- export function ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9(study, assays) {
68
+ export function ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_353D0DB7(study, assays) {
69
69
  const doc = new FsWorkbook();
70
70
  const metaDataSheet = ArcStudy_toMetadataSheet(study, assays);
71
71
  doc.AddWorksheet(metaDataSheet);
@@ -1,10 +1,10 @@
1
- import { tryFind, maxBy, skip } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
2
- import { item, tryItem, skip as skip_1, initialize } from "../../fable_modules/fable-library-js.4.13.0/Array.js";
3
- import { defaultOf, comparePrimitives } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
4
- import { some, value } from "../../fable_modules/fable-library-js.4.13.0/Option.js";
5
- import { empty, tail, cons, head, reverse, isEmpty, tryPick } from "../../fable_modules/fable-library-js.4.13.0/List.js";
6
- import { tryGetValue } from "../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
7
- import { FSharpRef } from "../../fable_modules/fable-library-js.4.13.0/Types.js";
1
+ import { tryFind, maxBy, skip } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
2
+ import { item, tryItem, skip as skip_1, initialize } from "../fable_modules/fable-library-js.4.16.0/Array.js";
3
+ import { defaultOf, comparePrimitives } from "../fable_modules/fable-library-js.4.16.0/Util.js";
4
+ import { some, value } from "../fable_modules/fable-library-js.4.16.0/Option.js";
5
+ import { empty, tail, cons, head, reverse, isEmpty, tryPick } from "../fable_modules/fable-library-js.4.16.0/List.js";
6
+ import { tryGetValue } from "../fable_modules/fable-library-js.4.16.0/MapUtil.js";
7
+ import { FSharpRef } from "../fable_modules/fable-library-js.4.16.0/Types.js";
8
8
 
9
9
  /**
10
10
  * If at least i values exist in seq a, builds a new array that contains the elements of the given seq, exluding the first i elements
@@ -1,34 +1,37 @@
1
- import { reverse, cons, iterateIndexed, empty, map as map_1, toArray, initialize, singleton, length, ofArray } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
2
- import { OntologyAnnotation } from "../../ISA/JsonTypes/OntologyAnnotation.js";
3
- import { Option_fromValueWithDefault } from "./Conversions.js";
4
- import { unwrap, defaultArg, map } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
5
- import { ArcAssay } from "../../ISA/ArcTypes/ArcTypes.js";
6
- import { SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_651559CC } from "./SparseTable.js";
7
- import { Assay_fileNameFromIdentifier, removeMissingIdentifier, Assay_identifierFromFileName, createMissingIdentifier } from "../../ISA/Identifier.js";
1
+ import { reverse, cons, iterateIndexed, empty, map as map_1, initialize, singleton, length, ofArray } from "../../fable_modules/fable-library-js.4.16.0/List.js";
2
+ import { OntologyAnnotation } from "../../Core/OntologyAnnotation.js";
3
+ import { ResizeArray_iter, Option_fromValueWithDefault } from "../../Core/Helper/Collections.js";
4
+ import { unwrap, defaultArg, map } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
5
+ import { JsonTypes_composeTechnologyPlatform, JsonTypes_decomposeTechnologyPlatform } from "../../Core/Conversion.js";
6
+ import { ArcAssay } from "../../Core/ArcTypes.js";
7
+ import { SparseTable_ToRows_759CAFC1, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_3ECCA699 } from "./SparseTable.js";
8
+ import { Assay_fileNameFromIdentifier, removeMissingIdentifier, Assay_identifierFromFileName, createMissingIdentifier } from "../../Core/Helper/Identifier.js";
8
9
  import { Comment_toString, Comment_fromString } from "./Comment.js";
9
- import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
10
- import { List_distinct } from "../../../fable_modules/fable-library-js.4.13.0/Seq2.js";
11
- import { stringHash } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
10
+ import { addToDict } from "../../fable_modules/fable-library-js.4.16.0/MapUtil.js";
11
+ import { List_distinct } from "../../fable_modules/fable-library-js.4.16.0/Seq2.js";
12
+ import { stringHash } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
12
13
 
13
14
  export const labels = ofArray(["Measurement Type", "Measurement Type Term Accession Number", "Measurement Type Term Source REF", "Technology Type", "Technology Type Term Accession Number", "Technology Type Term Source REF", "Technology Platform", "File Name"]);
14
15
 
15
16
  export function fromString(measurementType, measurementTypeTermSourceREF, measurementTypeTermAccessionNumber, technologyType, technologyTypeTermSourceREF, technologyTypeTermAccessionNumber, technologyPlatform, fileName, comments) {
16
- const measurementType_1 = OntologyAnnotation.fromString(measurementType, measurementTypeTermSourceREF, measurementTypeTermAccessionNumber);
17
- const technologyType_1 = OntologyAnnotation.fromString(technologyType, technologyTypeTermSourceREF, technologyTypeTermAccessionNumber);
18
- const measurementType_2 = Option_fromValueWithDefault(OntologyAnnotation.empty, measurementType_1);
19
- const technologyType_2 = Option_fromValueWithDefault(OntologyAnnotation.empty, technologyType_1);
20
- const technologyPlatform_1 = map((name) => ArcAssay.decomposeTechnologyPlatform(name), technologyPlatform);
17
+ const measurementType_1 = OntologyAnnotation.create(measurementType, measurementTypeTermSourceREF, measurementTypeTermAccessionNumber);
18
+ const technologyType_1 = OntologyAnnotation.create(technologyType, technologyTypeTermSourceREF, technologyTypeTermAccessionNumber);
19
+ const measurementType_2 = Option_fromValueWithDefault(new OntologyAnnotation(), measurementType_1);
20
+ const technologyType_2 = Option_fromValueWithDefault(new OntologyAnnotation(), technologyType_1);
21
+ const technologyPlatform_1 = map(JsonTypes_decomposeTechnologyPlatform, technologyPlatform);
21
22
  return ArcAssay.make(fileName, measurementType_2, technologyType_2, technologyPlatform_1, [], [], comments);
22
23
  }
23
24
 
24
25
  export function fromSparseTable(matrix) {
25
26
  if ((matrix.ColumnCount === 0) && (length(matrix.CommentKeys) !== 0)) {
26
- const comments = SparseTable_GetEmptyComments_651559CC(matrix);
27
+ const comments = SparseTable_GetEmptyComments_3ECCA699(matrix);
27
28
  return singleton(ArcAssay.create(createMissingIdentifier(), void 0, void 0, void 0, void 0, void 0, comments));
28
29
  }
29
30
  else {
30
31
  return initialize(matrix.ColumnCount, (i) => {
31
- const comments_1 = toArray(map_1((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, i])), matrix.CommentKeys));
32
+ let comments_1;
33
+ const collection = map_1((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, i])), matrix.CommentKeys);
34
+ comments_1 = Array.from(collection);
32
35
  return fromString(SparseTable__TryGetValue_11FD62A8(matrix, ["Measurement Type", i]), SparseTable__TryGetValue_11FD62A8(matrix, ["Measurement Type Term Source REF", i]), SparseTable__TryGetValue_11FD62A8(matrix, ["Measurement Type Term Accession Number", i]), SparseTable__TryGetValue_11FD62A8(matrix, ["Technology Type", i]), SparseTable__TryGetValue_11FD62A8(matrix, ["Technology Type Term Source REF", i]), SparseTable__TryGetValue_11FD62A8(matrix, ["Technology Type Term Accession Number", i]), SparseTable__TryGetValue_11FD62A8(matrix, ["Technology Platform", i]), Assay_identifierFromFileName(SparseTable__TryGetValueDefault_5BAE6133(matrix, createMissingIdentifier(), ["File Name", i])), comments_1);
33
36
  });
34
37
  }
@@ -41,28 +44,25 @@ export function toSparseTable(assays) {
41
44
  const processedFileName = (a.Identifier.indexOf("MISSING_IDENTIFIER_") === 0) ? removeMissingIdentifier(a.Identifier) : Assay_fileNameFromIdentifier(a.Identifier);
42
45
  const i_1 = (i + 1) | 0;
43
46
  let mt_1;
44
- const mt = defaultArg(a.MeasurementType, OntologyAnnotation.empty);
45
- mt_1 = OntologyAnnotation.toString(mt, true);
47
+ const mt = defaultArg(a.MeasurementType, new OntologyAnnotation());
48
+ mt_1 = OntologyAnnotation.toStringObject(mt, true);
46
49
  let tt_1;
47
- const tt = defaultArg(a.TechnologyType, OntologyAnnotation.empty);
48
- tt_1 = OntologyAnnotation.toString(tt, true);
50
+ const tt = defaultArg(a.TechnologyType, new OntologyAnnotation());
51
+ tt_1 = OntologyAnnotation.toStringObject(tt, true);
49
52
  addToDict(matrix.Matrix, ["Measurement Type", i_1], mt_1.TermName);
50
53
  addToDict(matrix.Matrix, ["Measurement Type Term Accession Number", i_1], mt_1.TermAccessionNumber);
51
54
  addToDict(matrix.Matrix, ["Measurement Type Term Source REF", i_1], mt_1.TermSourceREF);
52
55
  addToDict(matrix.Matrix, ["Technology Type", i_1], tt_1.TermName);
53
56
  addToDict(matrix.Matrix, ["Technology Type Term Accession Number", i_1], tt_1.TermAccessionNumber);
54
57
  addToDict(matrix.Matrix, ["Technology Type Term Source REF", i_1], tt_1.TermSourceREF);
55
- addToDict(matrix.Matrix, ["Technology Platform", i_1], defaultArg(map((tp) => ArcAssay.composeTechnologyPlatform(tp), a.TechnologyPlatform), ""));
58
+ addToDict(matrix.Matrix, ["Technology Platform", i_1], defaultArg(map(JsonTypes_composeTechnologyPlatform, a.TechnologyPlatform), ""));
56
59
  addToDict(matrix.Matrix, ["File Name", i_1], processedFileName);
57
- if (!(a.Comments.length === 0)) {
58
- const array = a.Comments;
59
- array.forEach((comment) => {
60
- const patternInput = Comment_toString(comment);
61
- const n = patternInput[0];
62
- commentKeys = cons(n, commentKeys);
63
- addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
64
- });
65
- }
60
+ ResizeArray_iter((comment) => {
61
+ const patternInput = Comment_toString(comment);
62
+ const n = patternInput[0];
63
+ commentKeys = cons(n, commentKeys);
64
+ addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
65
+ }, a.Comments);
66
66
  }, assays);
67
67
  return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
68
68
  Equals: (x, y) => (x === y),
@@ -76,6 +76,6 @@ export function fromRows(prefix, lineNumber, rows) {
76
76
  }
77
77
 
78
78
  export function toRows(prefix, assays) {
79
- return SparseTable_ToRows_6A3D4534(toSparseTable(assays), unwrap(prefix));
79
+ return SparseTable_ToRows_759CAFC1(toSparseTable(assays), unwrap(prefix));
80
80
  }
81
81
 
@@ -1,8 +1,8 @@
1
- import { ActivePatterns_$007CRegex$007C_$007C } from "../../ISA/Regex.js";
2
- import { printf, toText } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
1
+ import { ActivePatterns_$007CRegex$007C_$007C } from "../../Core/Helper/Regex.js";
2
+ import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
3
3
  import { Option_fromValueWithDefault } from "./Conversions.js";
4
- import { Comment$ } from "../../ISA/JsonTypes/Comment.js";
5
- import { bind, defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
4
+ import { Comment$ } from "../../Core/Comment.js";
5
+ import { bind, defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
6
6
 
7
7
  export const Comment_commentValueKey = "commentValue";
8
8
 
@@ -41,7 +41,7 @@ export function Comment_wrapCommentKey(k) {
41
41
  export function Comment_fromString(k, v) {
42
42
  const name = Option_fromValueWithDefault("", k);
43
43
  const value = Option_fromValueWithDefault("", v);
44
- return Comment$.make(void 0, name, value);
44
+ return Comment$.make(name, value);
45
45
  }
46
46
 
47
47
  export function Comment_toString(c) {
@@ -1,12 +1,14 @@
1
- import { reverse, cons, iterateIndexed, empty, map, toArray, initialize, singleton, length, ofArray } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
2
- import { OntologyAnnotation_toAggregatedStrings, OntologyAnnotation_fromAggregatedStrings, Option_fromValueWithDefault } from "./Conversions.js";
3
- import { Person } from "../../ISA/JsonTypes/Person.js";
4
- import { SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_651559CC } from "./SparseTable.js";
1
+ import { reverse, cons, iterateIndexed, empty, map, initialize, singleton, length, ofArray } from "../../fable_modules/fable-library-js.4.16.0/List.js";
2
+ import { Person_setCommentFromORCID, Person_setOrcidFromComments } from "../../Core/Conversion.js";
3
+ import { OntologyAnnotation_toAggregatedStrings, OntologyAnnotation_fromAggregatedStrings } from "./Conversions.js";
4
+ import { Person } from "../../Core/Person.js";
5
+ import { SparseTable_ToRows_759CAFC1, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_3ECCA699 } from "./SparseTable.js";
5
6
  import { Comment_toString, Comment_fromString } from "./Comment.js";
6
- import { unwrap, defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
7
- import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
8
- import { List_distinct } from "../../../fable_modules/fable-library-js.4.13.0/Seq2.js";
9
- import { stringHash } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
7
+ import { addToDict } from "../../fable_modules/fable-library-js.4.16.0/MapUtil.js";
8
+ import { unwrap, defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
9
+ import { ResizeArray_iter } from "../../Core/Helper/Collections.js";
10
+ import { List_distinct } from "../../fable_modules/fable-library-js.4.16.0/Seq2.js";
11
+ import { stringHash } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
10
12
 
11
13
  export const lastNameLabel = "Last Name";
12
14
 
@@ -33,21 +35,21 @@ export const rolesTermSourceREFLabel = "Roles Term Source REF";
33
35
  export const labels = ofArray([lastNameLabel, firstNameLabel, midInitialsLabel, emailLabel, phoneLabel, faxLabel, addressLabel, affiliationLabel, rolesLabel, rolesTermAccessionNumberLabel, rolesTermSourceREFLabel]);
34
36
 
35
37
  export function fromString(lastName, firstName, midInitials, email, phone, fax, address, affiliation, role, rolesTermAccessionNumber, rolesTermSourceREF, comments) {
36
- let person;
37
- const roles_1 = Option_fromValueWithDefault([], OntologyAnnotation_fromAggregatedStrings(";", role, rolesTermSourceREF, rolesTermAccessionNumber));
38
- const comments_1 = Option_fromValueWithDefault([], comments);
39
- person = Person.make(void 0, void 0, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles_1, comments_1);
40
- return Person.setOrcidFromComments(person);
38
+ let roles_1;
39
+ return Person_setOrcidFromComments((roles_1 = OntologyAnnotation_fromAggregatedStrings(";", role, rolesTermSourceREF, rolesTermAccessionNumber), Person.make(void 0, lastName, firstName, midInitials, email, phone, fax, address, affiliation, roles_1, comments)));
41
40
  }
42
41
 
43
42
  export function fromSparseTable(matrix) {
43
+ let returnVal;
44
44
  if ((matrix.ColumnCount === 0) && (length(matrix.CommentKeys) !== 0)) {
45
- const comments = SparseTable_GetEmptyComments_651559CC(matrix);
46
- return singleton(Person.create(void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, comments));
45
+ const comments = SparseTable_GetEmptyComments_3ECCA699(matrix);
46
+ return singleton((returnVal = Person.create(), (returnVal.Comments = comments, returnVal)));
47
47
  }
48
48
  else {
49
49
  return initialize(matrix.ColumnCount, (i) => {
50
- const comments_1 = toArray(map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, i])), matrix.CommentKeys));
50
+ let comments_1;
51
+ const collection = map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, i])), matrix.CommentKeys);
52
+ comments_1 = Array.from(collection);
51
53
  return fromString(SparseTable__TryGetValue_11FD62A8(matrix, [lastNameLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [firstNameLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [midInitialsLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [emailLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [phoneLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [faxLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [addressLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [affiliationLabel, i]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [rolesLabel, i]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [rolesTermAccessionNumberLabel, i]), SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [rolesTermSourceREFLabel, i]), comments_1);
52
54
  });
53
55
  }
@@ -58,7 +60,7 @@ export function toSparseTable(persons) {
58
60
  let commentKeys = empty();
59
61
  iterateIndexed((i, p) => {
60
62
  const i_1 = (i + 1) | 0;
61
- const rAgg = OntologyAnnotation_toAggregatedStrings(";", defaultArg(p.Roles, []));
63
+ const rAgg = OntologyAnnotation_toAggregatedStrings(";", Array.from(p.Roles));
62
64
  addToDict(matrix.Matrix, [lastNameLabel, i_1], defaultArg(p.LastName, ""));
63
65
  addToDict(matrix.Matrix, [firstNameLabel, i_1], defaultArg(p.FirstName, ""));
64
66
  addToDict(matrix.Matrix, [midInitialsLabel, i_1], defaultArg(p.MidInitials, ""));
@@ -70,17 +72,13 @@ export function toSparseTable(persons) {
70
72
  addToDict(matrix.Matrix, [rolesLabel, i_1], rAgg.TermNameAgg);
71
73
  addToDict(matrix.Matrix, [rolesTermAccessionNumberLabel, i_1], rAgg.TermAccessionNumberAgg);
72
74
  addToDict(matrix.Matrix, [rolesTermSourceREFLabel, i_1], rAgg.TermSourceREFAgg);
73
- const matchValue = p.Comments;
74
- if (matchValue != null) {
75
- const array = matchValue;
76
- array.forEach((comment) => {
77
- const patternInput = Comment_toString(comment);
78
- const n = patternInput[0];
79
- commentKeys = cons(n, commentKeys);
80
- addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
81
- });
82
- }
83
- }, map((person) => Person.setCommentFromORCID(person), persons));
75
+ ResizeArray_iter((comment) => {
76
+ const patternInput = Comment_toString(comment);
77
+ const n = patternInput[0];
78
+ commentKeys = cons(n, commentKeys);
79
+ addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
80
+ }, p.Comments);
81
+ }, map(Person_setCommentFromORCID, persons));
84
82
  return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
85
83
  Equals: (x, y) => (x === y),
86
84
  GetHashCode: stringHash,
@@ -95,10 +93,10 @@ export function fromRows(prefix, lineNumber, rows) {
95
93
  export function toRows(prefix, persons) {
96
94
  const m = toSparseTable(persons);
97
95
  if (prefix == null) {
98
- return SparseTable_ToRows_6A3D4534(m);
96
+ return SparseTable_ToRows_759CAFC1(m);
99
97
  }
100
98
  else {
101
- return SparseTable_ToRows_6A3D4534(m, prefix);
99
+ return SparseTable_ToRows_759CAFC1(m, prefix);
102
100
  }
103
101
  }
104
102
 
@@ -1,12 +1,13 @@
1
- import { equals } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
2
- import { value, some } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
3
- import { map, equalsWith, fill, map3, fold } from "../../../fable_modules/fable-library-js.4.13.0/Array.js";
4
- import { toText, printf, toFail } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
5
- import { OntologyAnnotation } from "../../ISA/JsonTypes/OntologyAnnotation.js";
6
- import { map as map_1, fold as fold_1, ofArray, empty } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
1
+ import { equals } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
2
+ import { defaultArg, value, some } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
3
+ import { equalsWith, fill, map3, fold } from "../../fable_modules/fable-library-js.4.16.0/Array.js";
4
+ import { toText, printf, toFail } from "../../fable_modules/fable-library-js.4.16.0/String.js";
5
+ import { OntologyAnnotation } from "../../Core/OntologyAnnotation.js";
6
+ import { map, fold as fold_1, ofArray, empty } from "../../fable_modules/fable-library-js.4.16.0/List.js";
7
7
  import { Array_map4 } from "../CollectionAux.js";
8
- import { Component_toString_Z609B8895, Component_fromString_Z61E08C1 } from "../../ISA/JsonTypes/Component.js";
9
- import { ProtocolParameter } from "../../ISA/JsonTypes/ProtocolParameter.js";
8
+ import { Component_toStringObject_Z685B8F25, Component_fromISAString_7C9A7CF8 } from "../../Core/Process/Component.js";
9
+ import { ResizeArray_map } from "../../Core/Helper/Collections.js";
10
+ import { ProtocolParameter } from "../../Core/Process/ProtocolParameter.js";
10
11
 
11
12
  /**
12
13
  * If the value matches the default, a None is returned, else a Some is returned
@@ -60,7 +61,8 @@ export function OntologyAnnotation_fromAggregatedStrings(separator, terms, sourc
60
61
  return [];
61
62
  }
62
63
  else {
63
- return map3((a, b, c) => OntologyAnnotation.fromString(a, b, c), (terms === "") ? fill(new Array(l), 0, l, "") : terms.split(separator), (source === "") ? fill(new Array(l), 0, l, "") : source.split(separator), (accessions === "") ? fill(new Array(l), 0, l, "") : accessions.split(separator));
64
+ const collection = map3((a, b, c) => OntologyAnnotation.create(a, b, c), (terms === "") ? fill(new Array(l), 0, l, "") : terms.split(separator), (source === "") ? fill(new Array(l), 0, l, "") : source.split(separator), (accessions === "") ? fill(new Array(l), 0, l, "") : accessions.split(separator));
65
+ return Array.from(collection);
64
66
  }
65
67
  }
66
68
 
@@ -78,14 +80,18 @@ export function OntologyAnnotation_toAggregatedStrings(separator, oas) {
78
80
  }
79
81
  else {
80
82
  const tupledArg_1 = fold((tupledArg, term) => {
83
+ const matchValue = defaultArg(term.Name, "");
84
+ const tsr = defaultArg(term.TermSourceREF, "");
85
+ const tan = defaultArg(term.TermAccessionNumber, "");
86
+ const name = matchValue;
81
87
  if (first) {
82
88
  first = false;
83
- return [term.TermName, term.TermSourceREF, term.TermAccessionNumber];
89
+ return [name, tsr, tan];
84
90
  }
85
91
  else {
86
- return [toText(printf("%s%c%s"))(tupledArg[0])(separator)(term.TermName), toText(printf("%s%c%s"))(tupledArg[1])(separator)(term.TermSourceREF), toText(printf("%s%c%s"))(tupledArg[2])(separator)(term.TermAccessionNumber)];
92
+ return [toText(printf("%s%c%s"))(tupledArg[0])(separator)(name), toText(printf("%s%c%s"))(tupledArg[1])(separator)(tsr), toText(printf("%s%c%s"))(tupledArg[2])(separator)(tan)];
87
93
  }
88
- }, ["", "", ""], map((oa) => OntologyAnnotation.toString(oa), oas));
94
+ }, ["", "", ""], oas);
89
95
  return {
90
96
  TermAccessionNumberAgg: tupledArg_1[2],
91
97
  TermNameAgg: tupledArg_1[0],
@@ -103,7 +109,7 @@ export function Component_fromAggregatedStrings(separator, names, terms, source,
103
109
  return empty();
104
110
  }
105
111
  else {
106
- return ofArray(Array_map4(Component_fromString_Z61E08C1, (names === "") ? fill(new Array(l), 0, l, "") : names.split(separator), (terms === "") ? fill(new Array(l), 0, l, "") : terms.split(separator), (source === "") ? fill(new Array(l), 0, l, "") : source.split(separator), (accessions === "") ? fill(new Array(l), 0, l, "") : accessions.split(separator)));
112
+ return ofArray(Array_map4(Component_fromISAString_7C9A7CF8, (names === "") ? fill(new Array(l), 0, l, "") : names.split(separator), (terms === "") ? fill(new Array(l), 0, l, "") : terms.split(separator), (source === "") ? fill(new Array(l), 0, l, "") : source.split(separator), (accessions === "") ? fill(new Array(l), 0, l, "") : accessions.split(separator)));
107
113
  }
108
114
  }
109
115
 
@@ -131,7 +137,7 @@ export function Component_toAggregatedStrings(separator, cs) {
131
137
  else {
132
138
  return [toText(printf("%s%c%s"))(tupledArg[0])(separator)(name), toText(printf("%s%c%s"))(tupledArg[1])(separator)(term.TermName), toText(printf("%s%c%s"))(tupledArg[2])(separator)(term.TermSourceREF), toText(printf("%s%c%s"))(tupledArg[3])(separator)(term.TermAccessionNumber)];
133
139
  }
134
- }, ["", "", "", ""], map_1(Component_toString_Z609B8895, cs));
140
+ }, ["", "", "", ""], map(Component_toStringObject_Z685B8F25, cs));
135
141
  return {
136
142
  NameAgg: tupledArg_2[0],
137
143
  TermAccessionNumberAgg: tupledArg_2[3],
@@ -145,7 +151,7 @@ export function Component_toAggregatedStrings(separator, cs) {
145
151
  * Returns a list of ISAJson ProtocolParameter objects from ISATab aggregated strings
146
152
  */
147
153
  export function ProtocolParameter_fromAggregatedStrings(separator, terms, source, accessions) {
148
- return map((arg) => ((parameterName) => ProtocolParameter.make(void 0, parameterName))(arg), OntologyAnnotation_fromAggregatedStrings(separator, terms, source, accessions));
154
+ return ResizeArray_map((arg) => ((parameterName) => ProtocolParameter.make(void 0, parameterName))(arg), OntologyAnnotation_fromAggregatedStrings(separator, terms, source, accessions));
149
155
  }
150
156
 
151
157
  /**
@@ -169,7 +175,7 @@ export function ProtocolParameter_toAggregatedStrings(separator, oas) {
169
175
  else {
170
176
  return [toText(printf("%s%c%s"))(tupledArg[0])(separator)(term.TermName), toText(printf("%s%c%s"))(tupledArg[1])(separator)(term.TermSourceREF), toText(printf("%s%c%s"))(tupledArg[2])(separator)(term.TermAccessionNumber)];
171
177
  }
172
- }, ["", "", ""], map_1((pp) => ProtocolParameter.toString(pp), oas));
178
+ }, ["", "", ""], map((pp) => ProtocolParameter.toStringObject(pp), oas));
173
179
  return {
174
180
  TermAccessionNumberAgg: tupledArg_1[2],
175
181
  TermNameAgg: tupledArg_1[0],
@@ -1,4 +1,4 @@
1
- import { ofArray } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
1
+ import { ofArray } from "../../fable_modules/fable-library-js.4.16.0/List.js";
2
2
  import { toRows as toRows_1, fromRows as fromRows_1, toSparseTable as toSparseTable_1, fromSparseTable as fromSparseTable_1 } from "./OntologyAnnotation.js";
3
3
 
4
4
  export const designTypeLabel = "Type";