@nfdi4plants/arctrl 1.0.7 → 1.2.0

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 (335) hide show
  1. package/ARC.js +47 -11
  2. package/Contract/Contract.js +3 -3
  3. package/Contracts/Contracts.ArcTypes.js +30 -18
  4. package/Contracts/Contracts.Git.js +4 -4
  5. package/FileSystem/Commit.js +2 -2
  6. package/FileSystem/FileSystem.js +4 -4
  7. package/FileSystem/FileSystemTree.js +8 -8
  8. package/FileSystem/Path.js +2 -2
  9. package/FileSystemTree.js +1 -1
  10. package/ISA/ISA/ArcTypes/ArcTable.js +23 -31
  11. package/ISA/ISA/ArcTypes/ArcTableAux.js +27 -16
  12. package/ISA/ISA/ArcTypes/ArcTables.js +11 -11
  13. package/ISA/ISA/ArcTypes/ArcTypes.js +118 -83
  14. package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
  15. package/ISA/ISA/ArcTypes/CompositeColumn.js +8 -7
  16. package/ISA/ISA/ArcTypes/CompositeHeader.js +5 -5
  17. package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
  18. package/ISA/ISA/Builder/Types.js +5 -5
  19. package/ISA/ISA/Fable.js +6 -6
  20. package/ISA/ISA/Helper.js +15 -13
  21. package/ISA/ISA/Identifier.js +1 -1
  22. package/ISA/ISA/JsonTypes/Assay.js +8 -8
  23. package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
  24. package/ISA/ISA/JsonTypes/ColumnIndex.js +5 -5
  25. package/ISA/ISA/JsonTypes/Comment.js +3 -3
  26. package/ISA/ISA/JsonTypes/CommentList.js +4 -4
  27. package/ISA/ISA/JsonTypes/Component.js +4 -4
  28. package/ISA/ISA/JsonTypes/Data.js +4 -4
  29. package/ISA/ISA/JsonTypes/DataFile.js +2 -2
  30. package/ISA/ISA/JsonTypes/Factor.js +6 -6
  31. package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
  32. package/ISA/ISA/JsonTypes/Investigation.js +6 -6
  33. package/ISA/ISA/JsonTypes/Material.js +5 -5
  34. package/ISA/ISA/JsonTypes/MaterialAttribute.js +3 -3
  35. package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
  36. package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
  37. package/ISA/ISA/JsonTypes/OntologyAnnotation.js +6 -6
  38. package/ISA/ISA/JsonTypes/OntologySourceReference.js +6 -6
  39. package/ISA/ISA/JsonTypes/Person.js +23 -8
  40. package/ISA/ISA/JsonTypes/Process.js +13 -13
  41. package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
  42. package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
  43. package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
  44. package/ISA/ISA/JsonTypes/ProcessSequence.js +6 -6
  45. package/ISA/ISA/JsonTypes/Protocol.js +6 -6
  46. package/ISA/ISA/JsonTypes/ProtocolParameter.js +3 -3
  47. package/ISA/ISA/JsonTypes/Publication.js +6 -6
  48. package/ISA/ISA/JsonTypes/Sample.js +5 -5
  49. package/ISA/ISA/JsonTypes/Source.js +5 -5
  50. package/ISA/ISA/JsonTypes/Study.js +8 -8
  51. package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
  52. package/ISA/ISA/JsonTypes/Value.js +22 -29
  53. package/ISA/ISA/Regex.js +3 -3
  54. package/ISA/ISA.Json/ArcTypes/ArcAssay.js +157 -65
  55. package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +78 -49
  56. package/ISA/ISA.Json/ArcTypes/ArcStudy.js +136 -24
  57. package/ISA/ISA.Json/ArcTypes/ArcTable.js +183 -21
  58. package/ISA/ISA.Json/ArcTypes/CellTable.js +40 -0
  59. package/ISA/ISA.Json/ArcTypes/CompositeCell.js +34 -23
  60. package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +18 -46
  61. package/ISA/ISA.Json/ArcTypes/IOType.js +11 -13
  62. package/ISA/ISA.Json/ArcTypes/OATable.js +42 -0
  63. package/ISA/ISA.Json/Assay.js +71 -47
  64. package/ISA/ISA.Json/Comment.js +31 -35
  65. package/ISA/ISA.Json/ConverterOptions.js +19 -1
  66. package/ISA/ISA.Json/Data.js +119 -137
  67. package/ISA/ISA.Json/Decode.js +51 -36
  68. package/ISA/ISA.Json/Factor.js +90 -90
  69. package/ISA/ISA.Json/GEncode.js +31 -6
  70. package/ISA/ISA.Json/Investigation.js +54 -79
  71. package/ISA/ISA.Json/Material.js +103 -104
  72. package/ISA/ISA.Json/Ontology.js +99 -92
  73. package/ISA/ISA.Json/Person.js +47 -65
  74. package/ISA/ISA.Json/Process.js +144 -130
  75. package/ISA/ISA.Json/Protocol.js +144 -105
  76. package/ISA/ISA.Json/Publication.js +34 -40
  77. package/ISA/ISA.Json/StringTable.js +44 -0
  78. package/ISA/ISA.Json/Study.js +70 -96
  79. package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +34 -0
  80. package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +23 -0
  81. package/ISA/ISA.Json/context/rocrate/isa_component_context.js +24 -0
  82. package/ISA/ISA.Json/context/rocrate/isa_data_context.js +25 -0
  83. package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +25 -0
  84. package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +25 -0
  85. package/ISA/ISA.Json/context/rocrate/isa_investigation_context.js +33 -0
  86. package/ISA/ISA.Json/context/rocrate/isa_material_attribute_context.js +23 -0
  87. package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +25 -0
  88. package/ISA/ISA.Json/context/rocrate/isa_material_context.js +26 -0
  89. package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +25 -0
  90. package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
  91. package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +22 -0
  92. package/ISA/ISA.Json/context/rocrate/isa_person_context.js +31 -0
  93. package/ISA/ISA.Json/context/rocrate/isa_process_context.js +31 -0
  94. package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +25 -0
  95. package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +30 -0
  96. package/ISA/ISA.Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
  97. package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +27 -0
  98. package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +26 -0
  99. package/ISA/ISA.Json/context/rocrate/isa_source_context.js +25 -0
  100. package/ISA/ISA.Json/context/rocrate/isa_study_context.js +42 -0
  101. package/ISA/ISA.Json/context/rocrate/rocrate_context.js +25 -0
  102. package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +56 -43
  103. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +3 -3
  104. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +11 -11
  105. package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +5 -5
  106. package/ISA/ISA.Spreadsheet/ArcAssay.js +100 -88
  107. package/ISA/ISA.Spreadsheet/ArcInvestigation.js +12 -12
  108. package/ISA/ISA.Spreadsheet/ArcStudy.js +36 -24
  109. package/ISA/ISA.Spreadsheet/CollectionAux.js +8 -8
  110. package/ISA/ISA.Spreadsheet/Metadata/Assays.js +5 -5
  111. package/ISA/ISA.Spreadsheet/Metadata/Comment.js +31 -20
  112. package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +5 -5
  113. package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +5 -5
  114. package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
  115. package/ISA/ISA.Spreadsheet/Metadata/Factors.js +5 -5
  116. package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
  117. package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +5 -5
  118. package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
  119. package/ISA/ISA.Spreadsheet/Metadata/Publication.js +5 -5
  120. package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +28 -23
  121. package/ISA/ISA.Spreadsheet/Metadata/Study.js +8 -8
  122. package/README.md +20 -3
  123. package/SemVer.js +6 -6
  124. package/Templates/Template.Json.js +43 -36
  125. package/Templates/Template.Spreadsheet.js +12 -12
  126. package/Templates/Template.Web.js +4 -4
  127. package/Templates/Template.js +7 -7
  128. package/Templates/Templates.js +7 -7
  129. package/WebRequest/WebRequest.Node.js +15 -0
  130. package/WebRequest/WebRequest.js +10 -29
  131. package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
  132. package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
  133. package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
  134. package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
  135. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs.js +14 -14
  136. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs.js +6 -6
  137. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs.js +4 -4
  138. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs.js +3 -3
  139. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs.js +2 -2
  140. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs.js +1 -1
  141. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs.js +3 -3
  142. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs.js +3 -3
  143. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs.js +3 -3
  144. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs.js +6 -6
  145. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs.js +4 -4
  146. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs.js +3 -3
  147. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs +22 -8
  148. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs.js +24 -14
  149. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs.js +3 -3
  150. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs.js +3 -3
  151. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs.js +6 -6
  152. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs +12 -6
  153. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs.js +21 -17
  154. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs.js +3 -3
  155. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs.js +4 -3
  156. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs.js +3 -3
  157. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs.js +3 -3
  158. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs.js +1 -1
  159. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs.js +8 -8
  160. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs.js +7 -7
  161. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs.js +4 -4
  162. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs.js +1 -1
  163. package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
  164. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
  165. package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
  166. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
  167. package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
  168. package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
  169. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
  170. package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
  171. package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  172. package/fable_modules/{Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs → Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/Thoth.Json.Core.AssemblyInfo.fs} +8 -7
  173. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
  174. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
  175. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
  176. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
  177. package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
  178. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  179. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
  180. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
  181. package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
  182. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.d.ts +4 -1
  183. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.js +124 -86
  184. package/fable_modules/fable-library-js.4.13.0/CHANGELOG.md +29 -0
  185. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.d.ts +0 -17
  186. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.js +0 -43
  187. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.js +3 -2
  188. package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.d.ts +12 -0
  189. package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.js +27 -0
  190. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.js +3 -3
  191. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.js +3 -3
  192. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.js +2 -1
  193. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.js +2 -1
  194. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.js +7 -7
  195. package/fable_modules/fable-library-js.4.13.0/Result.d.ts +37 -0
  196. package/fable_modules/fable-library-js.4.13.0/Result.js +165 -0
  197. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.js +2 -2
  198. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.d.ts +1 -0
  199. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.js +8 -5
  200. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.d.ts +15 -7
  201. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.js +46 -36
  202. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.d.ts +9 -1
  203. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.js +60 -8
  204. package/fable_modules/fable-library-js.4.13.0/big.d.ts +338 -0
  205. package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/package.json +4 -3
  206. package/fable_modules/project_cracked.json +1 -1
  207. package/package.json +1 -1
  208. package/ISA/ISA.Json/Validation/Fable.js +0 -69
  209. package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
  210. package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
  211. package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
  212. package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
  213. package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
  214. package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
  215. package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
  216. package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
  217. package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
  218. package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
  219. package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
  220. package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
  221. package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
  222. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs +0 -0
  223. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs +0 -0
  224. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs +0 -0
  225. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs +0 -0
  226. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs +0 -0
  227. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs +0 -0
  228. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs +0 -0
  229. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs.js +0 -0
  230. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs +0 -0
  231. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs +0 -0
  232. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs +0 -0
  233. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs +0 -0
  234. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs +0 -0
  235. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs +0 -0
  236. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs +0 -0
  237. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs +0 -0
  238. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsSpreadsheet.fableproj +0 -0
  239. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs +0 -0
  240. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs +0 -0
  241. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs +0 -0
  242. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs +0 -0
  243. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs +0 -0
  244. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs +0 -0
  245. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs +0 -0
  246. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs +0 -0
  247. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs +0 -0
  248. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs +0 -0
  249. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  250. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
  251. /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
  252. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.d.ts +0 -0
  253. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.js +0 -0
  254. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.d.ts +0 -0
  255. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.js +0 -0
  256. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.d.ts +0 -0
  257. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.js +0 -0
  258. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.d.ts +0 -0
  259. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.js +0 -0
  260. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.d.ts +0 -0
  261. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.js +0 -0
  262. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.d.ts +0 -0
  263. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.js +0 -0
  264. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.d.ts +0 -0
  265. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.d.ts +0 -0
  266. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.js +0 -0
  267. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.d.ts +0 -0
  268. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.js +0 -0
  269. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.d.ts +0 -0
  270. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.js +0 -0
  271. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.d.ts +0 -0
  272. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.js +0 -0
  273. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.d.ts +0 -0
  274. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.js +0 -0
  275. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.d.ts +0 -0
  276. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.js +0 -0
  277. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.d.ts +0 -0
  278. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.js +0 -0
  279. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.d.ts +0 -0
  280. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.js +0 -0
  281. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.d.ts +0 -0
  282. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.js +0 -0
  283. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.d.ts +0 -0
  284. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.js +0 -0
  285. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.d.ts +0 -0
  286. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.js +0 -0
  287. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.d.ts +0 -0
  288. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.d.ts +0 -0
  289. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.js +0 -0
  290. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.d.ts +0 -0
  291. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.js +0 -0
  292. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.d.ts +0 -0
  293. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.d.ts +0 -0
  294. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.js +0 -0
  295. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.d.ts +0 -0
  296. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.d.ts +0 -0
  297. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.d.ts +0 -0
  298. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.js +0 -0
  299. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.d.ts +0 -0
  300. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.js +0 -0
  301. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.d.ts +0 -0
  302. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.js +0 -0
  303. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.d.ts +0 -0
  304. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.js +0 -0
  305. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/README.md +0 -0
  306. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.d.ts +0 -0
  307. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.d.ts +0 -0
  308. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.js +0 -0
  309. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.d.ts +0 -0
  310. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.js +0 -0
  311. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.d.ts +0 -0
  312. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.js +0 -0
  313. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.d.ts +0 -0
  314. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.js +0 -0
  315. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.d.ts +0 -0
  316. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.js +0 -0
  317. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.d.ts +0 -0
  318. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.d.ts +0 -0
  319. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.js +0 -0
  320. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.d.ts +0 -0
  321. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.js +0 -0
  322. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.d.ts +0 -0
  323. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.js +0 -0
  324. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.d.ts +0 -0
  325. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.js +0 -0
  326. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.d.ts +0 -0
  327. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.js +0 -0
  328. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.d.ts +0 -0
  329. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.js +0 -0
  330. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.d.ts +0 -0
  331. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.js +0 -0
  332. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.d.ts +0 -0
  333. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.js +0 -0
  334. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.d.ts +0 -0
  335. /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.js +0 -0
@@ -1,16 +1,16 @@
1
- import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.5.1.2/FsWorksheet.fs.js";
2
- import { iterate, isEmpty as isEmpty_1, choose, tryHead, head, exists, map, singleton, append, delay, iterateIndexed } from "../../fable_modules/fable-library.4.5.0/Seq.js";
1
+ import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js";
2
+ import { iterate, isEmpty as isEmpty_1, choose, tryHead, head, exists, map, singleton, append, delay, iterateIndexed } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
3
3
  import { SparseRowModule_tryGetValueAt, SparseRowModule_fromFsRow, SparseRowModule_fromValues, SparseRowModule_writeToSheet } from "./Metadata/SparseTable.js";
4
4
  import { fromRows as fromRows_1, toRows as toRows_1 } from "./Metadata/Assays.js";
5
- import { empty, isEmpty, toArray, ofArray, singleton as singleton_1 } from "../../fable_modules/fable-library.4.5.0/List.js";
5
+ import { empty, isEmpty, toArray, ofArray, singleton as singleton_1 } from "../../fable_modules/fable-library-js.4.13.0/List.js";
6
6
  import { fromRows as fromRows_2, toRows as toRows_2 } from "./Metadata/Contacts.js";
7
- import { getEnumerator } from "../../fable_modules/fable-library.4.5.0/Util.js";
7
+ import { toConsole, printf, toFail } from "../../fable_modules/fable-library-js.4.13.0/String.js";
8
+ import { getEnumerator } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
8
9
  import { ArcAssay } from "../ISA/ArcTypes/ArcTypes.js";
9
10
  import { createMissingIdentifier } from "../ISA/Identifier.js";
10
- import { defaultArg } from "../../fable_modules/fable-library.4.5.0/Option.js";
11
- import { printf, toConsole } from "../../fable_modules/fable-library.4.5.0/String.js";
11
+ import { defaultArg } from "../../fable_modules/fable-library-js.4.13.0/Option.js";
12
12
  import { toFsWorksheet, tryFromFsWorksheet } from "./AnnotationTable/ArcTable.js";
13
- import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.5.1.2/FsWorkbook.fs.js";
13
+ import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js";
14
14
 
15
15
  export function toMetadataSheet(assay) {
16
16
  let assay_1;
@@ -22,89 +22,95 @@ export function toMetadataSheet(assay) {
22
22
  }
23
23
 
24
24
  export function fromMetadataSheet(sheet) {
25
- const rows_1 = map(SparseRowModule_fromFsRow, sheet.Rows);
26
- const patternInput = exists((row) => {
27
- const s = head(row)[1];
28
- return s.indexOf("Assay") === 0;
29
- }, rows_1) ? ["Assay", "Assay Person"] : [void 0, void 0];
30
- const en = getEnumerator(rows_1);
31
- const loop = (lastLine_mut, assays_mut, contacts_mut, lineNumber_mut) => {
32
- let k;
33
- loop:
34
- while (true) {
35
- const lastLine = lastLine_mut, assays = assays_mut, contacts = contacts_mut, lineNumber = lineNumber_mut;
36
- let matchResult, k_2, k_3, k_4;
37
- if (lastLine != null) {
38
- if ((k = lastLine, (k === "ASSAY") ? true : (k === "ASSAY METADATA"))) {
39
- matchResult = 0;
40
- k_2 = lastLine;
41
- }
42
- else if (lastLine === "ASSAY PERFORMERS") {
43
- matchResult = 1;
44
- k_3 = lastLine;
25
+ try {
26
+ const rows_1 = map(SparseRowModule_fromFsRow, sheet.Rows);
27
+ const patternInput = exists((row) => {
28
+ const s = head(row)[1];
29
+ return s.indexOf("Assay") === 0;
30
+ }, rows_1) ? ["Assay", "Assay Person"] : [void 0, void 0];
31
+ const en = getEnumerator(rows_1);
32
+ const loop = (lastLine_mut, assays_mut, contacts_mut, lineNumber_mut) => {
33
+ let k;
34
+ loop:
35
+ while (true) {
36
+ const lastLine = lastLine_mut, assays = assays_mut, contacts = contacts_mut, lineNumber = lineNumber_mut;
37
+ let matchResult, k_2, k_3, k_4;
38
+ if (lastLine != null) {
39
+ if ((k = lastLine, (k === "ASSAY") ? true : (k === "ASSAY METADATA"))) {
40
+ matchResult = 0;
41
+ k_2 = lastLine;
42
+ }
43
+ else if (lastLine === "ASSAY PERFORMERS") {
44
+ matchResult = 1;
45
+ k_3 = lastLine;
46
+ }
47
+ else {
48
+ matchResult = 2;
49
+ k_4 = lastLine;
50
+ }
45
51
  }
46
52
  else {
47
53
  matchResult = 2;
48
54
  k_4 = lastLine;
49
55
  }
50
- }
51
- else {
52
- matchResult = 2;
53
- k_4 = lastLine;
54
- }
55
- switch (matchResult) {
56
- case 0: {
57
- const patternInput_1 = fromRows_1(patternInput[0], lineNumber + 1, en);
58
- lastLine_mut = patternInput_1[0];
59
- assays_mut = patternInput_1[3];
60
- contacts_mut = contacts;
61
- lineNumber_mut = patternInput_1[1];
62
- continue loop;
63
- }
64
- case 1: {
65
- const patternInput_2 = fromRows_2(patternInput[1], lineNumber + 1, en);
66
- lastLine_mut = patternInput_2[0];
67
- assays_mut = assays;
68
- contacts_mut = patternInput_2[3];
69
- lineNumber_mut = patternInput_2[1];
70
- continue loop;
71
- }
72
- default: {
73
- let matchResult_1, assays_2, contacts_2;
74
- if (isEmpty(assays)) {
75
- if (isEmpty(contacts)) {
76
- matchResult_1 = 0;
56
+ switch (matchResult) {
57
+ case 0: {
58
+ const patternInput_1 = fromRows_1(patternInput[0], lineNumber + 1, en);
59
+ lastLine_mut = patternInput_1[0];
60
+ assays_mut = patternInput_1[3];
61
+ contacts_mut = contacts;
62
+ lineNumber_mut = patternInput_1[1];
63
+ continue loop;
64
+ }
65
+ case 1: {
66
+ const patternInput_2 = fromRows_2(patternInput[1], lineNumber + 1, en);
67
+ lastLine_mut = patternInput_2[0];
68
+ assays_mut = assays;
69
+ contacts_mut = patternInput_2[3];
70
+ lineNumber_mut = patternInput_2[1];
71
+ continue loop;
72
+ }
73
+ default: {
74
+ let matchResult_1, assays_2, contacts_2;
75
+ if (isEmpty(assays)) {
76
+ if (isEmpty(contacts)) {
77
+ matchResult_1 = 0;
78
+ }
79
+ else {
80
+ matchResult_1 = 1;
81
+ assays_2 = assays;
82
+ contacts_2 = contacts;
83
+ }
77
84
  }
78
85
  else {
79
86
  matchResult_1 = 1;
80
87
  assays_2 = assays;
81
88
  contacts_2 = contacts;
82
89
  }
83
- }
84
- else {
85
- matchResult_1 = 1;
86
- assays_2 = assays;
87
- contacts_2 = contacts;
88
- }
89
- switch (matchResult_1) {
90
- case 0:
91
- return ArcAssay.create(createMissingIdentifier());
92
- default: {
93
- const performers = toArray(contacts_2);
94
- const assay = defaultArg(tryHead(assays_2), ArcAssay.create(createMissingIdentifier()));
95
- return ArcAssay.setPerformers(performers, assay);
90
+ switch (matchResult_1) {
91
+ case 0:
92
+ return ArcAssay.create(createMissingIdentifier());
93
+ default: {
94
+ const performers = toArray(contacts_2);
95
+ const assay = defaultArg(tryHead(assays_2), ArcAssay.create(createMissingIdentifier()));
96
+ return ArcAssay.setPerformers(performers, assay);
97
+ }
96
98
  }
97
99
  }
98
100
  }
101
+ break;
99
102
  }
100
- break;
103
+ };
104
+ if (en["System.Collections.IEnumerator.MoveNext"]()) {
105
+ return loop(SparseRowModule_tryGetValueAt(0, en["System.Collections.Generic.IEnumerator`1.get_Current"]()), empty(), empty(), 1);
106
+ }
107
+ else {
108
+ throw new Error("empty assay metadata sheet");
101
109
  }
102
- };
103
- if (en["System.Collections.IEnumerator.MoveNext"]()) {
104
- return loop(SparseRowModule_tryGetValueAt(0, en["System.Collections.Generic.IEnumerator`1.get_Current"]()), empty(), empty(), 1);
105
110
  }
106
- else {
107
- throw new Error("empty assay metadata sheet");
111
+ catch (err) {
112
+ const arg = err.message;
113
+ return toFail(printf("Failed while parsing metadatasheet: %s"))(arg);
108
114
  }
109
115
  }
110
116
 
@@ -112,26 +118,32 @@ export function fromMetadataSheet(sheet) {
112
118
  * Reads an assay from a spreadsheet
113
119
  */
114
120
  export function fromFsWorkbook(doc) {
115
- let assayMetaData;
116
- const matchValue = doc.TryGetWorksheetByName("isa_assay");
117
- if (matchValue == null) {
118
- const matchValue_1 = doc.TryGetWorksheetByName("Assay");
119
- if (matchValue_1 == null) {
120
- toConsole(printf("Cannot retrieve metadata: Assay file does not contain \"%s\" or \"%s\" sheet."))("isa_assay")("Assay");
121
- assayMetaData = ArcAssay.create(createMissingIdentifier());
121
+ try {
122
+ let assayMetaData;
123
+ const matchValue = doc.TryGetWorksheetByName("isa_assay");
124
+ if (matchValue == null) {
125
+ const matchValue_1 = doc.TryGetWorksheetByName("Assay");
126
+ if (matchValue_1 == null) {
127
+ toConsole(printf("Cannot retrieve metadata: Assay file does not contain \"%s\" or \"%s\" sheet."))("isa_assay")("Assay");
128
+ assayMetaData = ArcAssay.create(createMissingIdentifier());
129
+ }
130
+ else {
131
+ assayMetaData = fromMetadataSheet(matchValue_1);
132
+ }
122
133
  }
123
134
  else {
124
- assayMetaData = fromMetadataSheet(matchValue_1);
135
+ assayMetaData = fromMetadataSheet(matchValue);
125
136
  }
137
+ const annotationTables = choose(tryFromFsWorksheet, doc.GetWorksheets());
138
+ if (!isEmpty_1(annotationTables)) {
139
+ assayMetaData.Tables = Array.from(annotationTables);
140
+ }
141
+ return assayMetaData;
126
142
  }
127
- else {
128
- assayMetaData = fromMetadataSheet(matchValue);
129
- }
130
- const annotationTables = choose(tryFromFsWorksheet, doc.GetWorksheets());
131
- if (!isEmpty_1(annotationTables)) {
132
- assayMetaData.Tables = Array.from(annotationTables);
143
+ catch (err) {
144
+ const arg_2 = err.message;
145
+ return toFail(printf("Could not parse assay: \n%s"))(arg_2);
133
146
  }
134
- return assayMetaData;
135
147
  }
136
148
 
137
149
  export function toFsWorkbook(assay) {
@@ -1,24 +1,24 @@
1
- import { Record } from "../../fable_modules/fable-library.4.5.0/Types.js";
2
- import { record_type, list_type, string_type } from "../../fable_modules/fable-library.4.5.0/Reflection.js";
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
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.4.5.0/List.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";
5
5
  import { Remark_wrapRemark, Comment_toString, Comment_fromString } from "./Metadata/Comment.js";
6
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.4.5.0/MapUtil.js";
8
- import { value as value_1, defaultArg } from "../../fable_modules/fable-library.4.5.0/Option.js";
9
- import { List_distinctBy, List_distinct } from "../../fable_modules/fable-library.4.5.0/Seq2.js";
10
- import { comparePrimitives, getEnumerator, stringHash } from "../../fable_modules/fable-library.4.5.0/Util.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
11
  import { Option_fromValueWithDefault } from "./Metadata/Conversions.js";
12
12
  import { ArcStudy, ArcInvestigation } from "../ISA/ArcTypes/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.4.5.0/Seq.js";
18
- import { tryFind, ofList } from "../../fable_modules/fable-library.4.5.0/Map.js";
19
- import { printf, toFail } from "../../fable_modules/fable-library.4.5.0/String.js";
20
- import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.5.1.2/FsWorksheet.fs.js";
21
- import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.5.1.2/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.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";
22
22
 
23
23
  export class InvestigationInfo extends Record {
24
24
  constructor(Identifier, Title, Description, SubmissionDate, PublicReleaseDate, Comments) {
@@ -1,16 +1,16 @@
1
- import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.5.1.2/FsWorksheet.fs.js";
2
- import { map, append, iterateIndexed } from "../../fable_modules/fable-library.4.5.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.13.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 { defaultArg } from "../../fable_modules/fable-library.4.5.0/Option.js";
6
- import { getEnumerator } from "../../fable_modules/fable-library.4.5.0/Util.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";
7
8
  import { ArcStudy } from "../ISA/ArcTypes/ArcTypes.js";
8
9
  import { createMissingIdentifier } from "../ISA/Identifier.js";
9
- import { empty } from "../../fable_modules/fable-library.4.5.0/List.js";
10
- import { printf, toConsole } from "../../fable_modules/fable-library.4.5.0/String.js";
10
+ import { empty } from "../../fable_modules/fable-library-js.4.13.0/List.js";
11
11
  import { ResizeArray_iter, ResizeArray_isEmpty, ResizeArray_choose } from "../ISA/Helper.js";
12
12
  import { toFsWorksheet, tryFromFsWorksheet } from "./AnnotationTable/ArcTable.js";
13
- import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.5.1.2/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;
@@ -23,34 +23,46 @@ export function ArcStudy_toMetadataSheet(study, assays) {
23
23
 
24
24
  export function ArcStudy_fromMetadataSheet(sheet) {
25
25
  let en;
26
- return defaultArg((en = getEnumerator(map(SparseRowModule_fromFsRow, sheet.Rows)), (void en["System.Collections.IEnumerator.MoveNext"](), fromRows_1(2, en)[3])), [ArcStudy.create(createMissingIdentifier()), empty()]);
26
+ try {
27
+ return defaultArg((en = getEnumerator(map(SparseRowModule_fromFsRow, sheet.Rows)), (void en["System.Collections.IEnumerator.MoveNext"](), fromRows_1(2, en)[3])), [ArcStudy.create(createMissingIdentifier()), empty()]);
28
+ }
29
+ catch (err) {
30
+ const arg = err.message;
31
+ return toFail(printf("Failed while parsing metadatasheet: %s"))(arg);
32
+ }
27
33
  }
28
34
 
29
35
  /**
30
36
  * Reads an assay from a spreadsheet
31
37
  */
32
38
  export function ARCtrl_ISA_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D(doc) {
33
- let patternInput;
34
- const matchValue = doc.TryGetWorksheetByName("isa_study");
35
- if (matchValue == null) {
36
- const matchValue_1 = doc.TryGetWorksheetByName("Study");
37
- if (matchValue_1 == null) {
38
- toConsole(printf("Cannot retrieve metadata: Study file does not contain \"%s\" or \"%s\" sheet."))("isa_study")("Study");
39
- patternInput = [ArcStudy.create(createMissingIdentifier()), empty()];
39
+ try {
40
+ let patternInput;
41
+ const matchValue = doc.TryGetWorksheetByName("isa_study");
42
+ if (matchValue == null) {
43
+ const matchValue_1 = doc.TryGetWorksheetByName("Study");
44
+ if (matchValue_1 == null) {
45
+ toConsole(printf("Cannot retrieve metadata: Study file does not contain \"%s\" or \"%s\" sheet."))("isa_study")("Study");
46
+ patternInput = [ArcStudy.create(createMissingIdentifier()), empty()];
47
+ }
48
+ else {
49
+ patternInput = ArcStudy_fromMetadataSheet(matchValue_1);
50
+ }
40
51
  }
41
52
  else {
42
- patternInput = ArcStudy_fromMetadataSheet(matchValue_1);
53
+ patternInput = ArcStudy_fromMetadataSheet(matchValue);
43
54
  }
55
+ const studyMetadata = patternInput[0];
56
+ const annotationTables = ResizeArray_choose(tryFromFsWorksheet, doc.GetWorksheets());
57
+ if (!ResizeArray_isEmpty(annotationTables)) {
58
+ studyMetadata.Tables = annotationTables;
59
+ }
60
+ return [studyMetadata, patternInput[1]];
44
61
  }
45
- else {
46
- patternInput = ArcStudy_fromMetadataSheet(matchValue);
47
- }
48
- const studyMetadata = patternInput[0];
49
- const annotationTables = ResizeArray_choose(tryFromFsWorksheet, doc.GetWorksheets());
50
- if (!ResizeArray_isEmpty(annotationTables)) {
51
- studyMetadata.Tables = annotationTables;
62
+ catch (err) {
63
+ const arg_2 = err.message;
64
+ return toFail(printf("Could not parse study: \n%s"))(arg_2);
52
65
  }
53
- return [studyMetadata, patternInput[1]];
54
66
  }
55
67
 
56
68
  export function ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9(study, assays) {
@@ -1,10 +1,10 @@
1
- import { tryFind, maxBy, skip } from "../../fable_modules/fable-library.4.5.0/Seq.js";
2
- import { tryItem, skip as skip_1, initialize } from "../../fable_modules/fable-library.4.5.0/Array.js";
3
- import { defaultOf, comparePrimitives } from "../../fable_modules/fable-library.4.5.0/Util.js";
4
- import { some, value } from "../../fable_modules/fable-library.4.5.0/Option.js";
5
- import { empty, tail, cons, head, reverse, isEmpty, tryPick } from "../../fable_modules/fable-library.4.5.0/List.js";
6
- import { tryGetValue } from "../../fable_modules/fable-library.4.5.0/MapUtil.js";
7
- import { FSharpRef } from "../../fable_modules/fable-library.4.5.0/Types.js";
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";
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
@@ -62,7 +62,7 @@ export function Array_map4(f, aa, ba, ca, da) {
62
62
  if (!(((aa.length === ba.length) && (ba.length === ca.length)) && (ca.length === da.length))) {
63
63
  throw new Error("");
64
64
  }
65
- return initialize(aa.length, (i) => f(aa[i], ba[i], ca[i], da[i]));
65
+ return initialize(aa.length, (i) => f(item(i, aa), item(i, ba), item(i, ca), item(i, da)));
66
66
  }
67
67
 
68
68
  export function List_tryPickDefault(chooser, d, list) {
@@ -1,14 +1,14 @@
1
- import { reverse, cons, iterateIndexed, empty, map as map_1, toArray, initialize, singleton, length, ofArray } from "../../../fable_modules/fable-library.4.5.0/List.js";
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
2
  import { OntologyAnnotation } from "../../ISA/JsonTypes/OntologyAnnotation.js";
3
3
  import { Option_fromValueWithDefault } from "./Conversions.js";
4
- import { unwrap, defaultArg, map } from "../../../fable_modules/fable-library.4.5.0/Option.js";
4
+ import { unwrap, defaultArg, map } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
5
5
  import { ArcAssay } from "../../ISA/ArcTypes/ArcTypes.js";
6
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
7
  import { Assay_fileNameFromIdentifier, removeMissingIdentifier, Assay_identifierFromFileName, createMissingIdentifier } from "../../ISA/Identifier.js";
8
8
  import { Comment_toString, Comment_fromString } from "./Comment.js";
9
- import { addToDict } from "../../../fable_modules/fable-library.4.5.0/MapUtil.js";
10
- import { List_distinct } from "../../../fable_modules/fable-library.4.5.0/Seq2.js";
11
- import { stringHash } from "../../../fable_modules/fable-library.4.5.0/Util.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";
12
12
 
13
13
  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
14
 
@@ -1,29 +1,37 @@
1
- import { defaultArg, bind } from "../../../fable_modules/fable-library.4.5.0/Option.js";
2
- import { match } from "../../../fable_modules/fable-library.4.5.0/RegExp.js";
3
- import { printf, toText } from "../../../fable_modules/fable-library.4.5.0/String.js";
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";
4
3
  import { Option_fromValueWithDefault } from "./Conversions.js";
5
4
  import { Comment$ } from "../../ISA/JsonTypes/Comment.js";
5
+ import { bind, defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
6
6
 
7
- export const Comment_commentRegex = /(?<=Comment\[<).*(?=>\])/gu;
7
+ export const Comment_commentValueKey = "commentValue";
8
8
 
9
- export const Comment_commentRegexNoAngleBrackets = /(?<=Comment\[).*(?=\])/gu;
9
+ export const Comment_commentPattern = `Comment\\s*\\[<(?<${Comment_commentValueKey}>.+)>\\]`;
10
+
11
+ export const Comment_commentPatternNoAngleBrackets = `Comment\\s*\\[(?<${Comment_commentValueKey}>.+)\\]`;
10
12
 
11
13
  export function Comment_$007CComment$007C_$007C(key) {
12
- return bind((k) => {
13
- const r = match(Comment_commentRegex, k);
14
- if (r != null) {
15
- return r[0];
16
- }
17
- else {
18
- const r_1 = match(Comment_commentRegexNoAngleBrackets, k);
19
- if (r_1 != null) {
20
- return r_1[0];
14
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Comment_commentPattern, key);
15
+ if (activePatternResult != null) {
16
+ const r = activePatternResult;
17
+ return (r.groups && r.groups[Comment_commentValueKey]) || "";
18
+ }
19
+ else {
20
+ const activePatternResult_1 = ActivePatterns_$007CRegex$007C_$007C(Comment_commentPatternNoAngleBrackets, key);
21
+ if (activePatternResult_1 != null) {
22
+ const r_1 = activePatternResult_1;
23
+ const v = (r_1.groups && r_1.groups[Comment_commentValueKey]) || "";
24
+ if (v === "<>") {
25
+ return void 0;
21
26
  }
22
27
  else {
23
- return void 0;
28
+ return v;
24
29
  }
25
30
  }
26
- }, key);
31
+ else {
32
+ return void 0;
33
+ }
34
+ }
27
35
  }
28
36
 
29
37
  export function Comment_wrapCommentKey(k) {
@@ -40,13 +48,16 @@ export function Comment_toString(c) {
40
48
  return [defaultArg(c.Name, ""), defaultArg(c.Value, "")];
41
49
  }
42
50
 
43
- export const Remark_remarkRegex = /(?<=#).*/gu;
51
+ export const Remark_remarkValueKey = "remarkValue";
52
+
53
+ export const Remark_remarkPattern = `#(?<${Remark_remarkValueKey}>.+)`;
44
54
 
45
55
  export function Remark_$007CRemark$007C_$007C(key) {
46
56
  return bind((k) => {
47
- const r = match(Remark_remarkRegex, k);
48
- if (r != null) {
49
- return r[0];
57
+ const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Remark_remarkPattern, k);
58
+ if (activePatternResult != null) {
59
+ const r = activePatternResult;
60
+ return (r.groups && r.groups[Remark_remarkValueKey]) || "";
50
61
  }
51
62
  else {
52
63
  return void 0;
@@ -1,12 +1,12 @@
1
- import { reverse, cons, iterateIndexed, empty, map, toArray, initialize, singleton, length, ofArray } from "../../../fable_modules/fable-library.4.5.0/List.js";
1
+ import { reverse, cons, iterateIndexed, empty, map, toArray, initialize, singleton, length, ofArray } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
2
2
  import { OntologyAnnotation_toAggregatedStrings, OntologyAnnotation_fromAggregatedStrings, Option_fromValueWithDefault } from "./Conversions.js";
3
3
  import { Person } from "../../ISA/JsonTypes/Person.js";
4
4
  import { SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_651559CC } from "./SparseTable.js";
5
5
  import { Comment_toString, Comment_fromString } from "./Comment.js";
6
- import { unwrap, defaultArg } from "../../../fable_modules/fable-library.4.5.0/Option.js";
7
- import { addToDict } from "../../../fable_modules/fable-library.4.5.0/MapUtil.js";
8
- import { List_distinct } from "../../../fable_modules/fable-library.4.5.0/Seq2.js";
9
- import { stringHash } from "../../../fable_modules/fable-library.4.5.0/Util.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";
10
10
 
11
11
  export const lastNameLabel = "Last Name";
12
12
 
@@ -1,9 +1,9 @@
1
- import { equals } from "../../../fable_modules/fable-library.4.5.0/Util.js";
2
- import { value, some } from "../../../fable_modules/fable-library.4.5.0/Option.js";
3
- import { map, equalsWith, fill, map3, fold } from "../../../fable_modules/fable-library.4.5.0/Array.js";
4
- import { toText, printf, toFail } from "../../../fable_modules/fable-library.4.5.0/String.js";
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
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.4.5.0/List.js";
6
+ import { map as map_1, fold as fold_1, ofArray, empty } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
7
7
  import { Array_map4 } from "../CollectionAux.js";
8
8
  import { Component_toString_Z609B8895, Component_fromString_Z61E08C1 } from "../../ISA/JsonTypes/Component.js";
9
9
  import { ProtocolParameter } from "../../ISA/JsonTypes/ProtocolParameter.js";
@@ -1,4 +1,4 @@
1
- import { ofArray } from "../../../fable_modules/fable-library.4.5.0/List.js";
1
+ import { ofArray } from "../../../fable_modules/fable-library-js.4.13.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";
@@ -1,13 +1,13 @@
1
- import { reverse, cons, iterateIndexed, empty, map, toArray, initialize, singleton, length, ofArray } from "../../../fable_modules/fable-library.4.5.0/List.js";
1
+ import { reverse, cons, iterateIndexed, empty, map, toArray, initialize, singleton, length, ofArray } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
2
2
  import { OntologyAnnotation } from "../../ISA/JsonTypes/OntologyAnnotation.js";
3
3
  import { Option_fromValueWithDefault } from "./Conversions.js";
4
4
  import { Factor } from "../../ISA/JsonTypes/Factor.js";
5
5
  import { SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_651559CC } from "./SparseTable.js";
6
6
  import { Comment_toString, Comment_fromString } from "./Comment.js";
7
- import { defaultArg } from "../../../fable_modules/fable-library.4.5.0/Option.js";
8
- import { addToDict } from "../../../fable_modules/fable-library.4.5.0/MapUtil.js";
9
- import { List_distinct } from "../../../fable_modules/fable-library.4.5.0/Seq2.js";
10
- import { stringHash } from "../../../fable_modules/fable-library.4.5.0/Util.js";
7
+ import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
8
+ import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
9
+ import { List_distinct } from "../../../fable_modules/fable-library-js.4.13.0/Seq2.js";
10
+ import { stringHash } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
11
11
 
12
12
  export const nameLabel = "Name";
13
13
 
@@ -1,12 +1,12 @@
1
- import { reverse, cons, iterateIndexed, empty, ofArray, map, toArray, initialize, singleton, length } from "../../../fable_modules/fable-library.4.5.0/List.js";
1
+ import { reverse, cons, iterateIndexed, empty, ofArray, map, toArray, initialize, singleton, length } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
2
2
  import { SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_651559CC } from "./SparseTable.js";
3
3
  import { OntologyAnnotation } from "../../ISA/JsonTypes/OntologyAnnotation.js";
4
4
  import { Option_fromValueWithDefault } from "./Conversions.js";
5
5
  import { Comment_toString, Comment_fromString } from "./Comment.js";
6
- import { unwrap } from "../../../fable_modules/fable-library.4.5.0/Option.js";
7
- import { addToDict } from "../../../fable_modules/fable-library.4.5.0/MapUtil.js";
8
- import { List_distinct } from "../../../fable_modules/fable-library.4.5.0/Seq2.js";
9
- import { stringHash } from "../../../fable_modules/fable-library.4.5.0/Util.js";
6
+ import { unwrap } 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";
10
10
 
11
11
  export function fromSparseTable(label, labelTSR, labelTAN, matrix) {
12
12
  if ((matrix.ColumnCount === 0) && (length(matrix.CommentKeys) !== 0)) {
@@ -1,12 +1,12 @@
1
- import { reverse, cons, iterateIndexed, empty, map, toArray, initialize, singleton, length, ofArray } from "../../../fable_modules/fable-library.4.5.0/List.js";
1
+ import { reverse, cons, iterateIndexed, empty, map, toArray, initialize, singleton, length, ofArray } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
2
2
  import { Option_fromValueWithDefault } from "./Conversions.js";
3
3
  import { OntologySourceReference } from "../../ISA/JsonTypes/OntologySourceReference.js";
4
4
  import { SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_651559CC } from "./SparseTable.js";
5
5
  import { Comment_toString, Comment_fromString } from "./Comment.js";
6
- import { addToDict } from "../../../fable_modules/fable-library.4.5.0/MapUtil.js";
7
- import { defaultArg } from "../../../fable_modules/fable-library.4.5.0/Option.js";
8
- import { List_distinct } from "../../../fable_modules/fable-library.4.5.0/Seq2.js";
9
- import { stringHash } from "../../../fable_modules/fable-library.4.5.0/Util.js";
6
+ import { addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
7
+ import { defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.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";
10
10
 
11
11
  export const nameLabel = "Term Source Name";
12
12