@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.
- package/ARC.js +47 -11
- package/Contract/Contract.js +3 -3
- package/Contracts/Contracts.ArcTypes.js +30 -18
- package/Contracts/Contracts.Git.js +4 -4
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +8 -8
- package/FileSystem/Path.js +2 -2
- package/FileSystemTree.js +1 -1
- package/ISA/ISA/ArcTypes/ArcTable.js +23 -31
- package/ISA/ISA/ArcTypes/ArcTableAux.js +27 -16
- package/ISA/ISA/ArcTypes/ArcTables.js +11 -11
- package/ISA/ISA/ArcTypes/ArcTypes.js +118 -83
- package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
- package/ISA/ISA/ArcTypes/CompositeColumn.js +8 -7
- package/ISA/ISA/ArcTypes/CompositeHeader.js +5 -5
- package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
- package/ISA/ISA/Builder/Types.js +5 -5
- package/ISA/ISA/Fable.js +6 -6
- package/ISA/ISA/Helper.js +15 -13
- package/ISA/ISA/Identifier.js +1 -1
- package/ISA/ISA/JsonTypes/Assay.js +8 -8
- package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/ColumnIndex.js +5 -5
- package/ISA/ISA/JsonTypes/Comment.js +3 -3
- package/ISA/ISA/JsonTypes/CommentList.js +4 -4
- package/ISA/ISA/JsonTypes/Component.js +4 -4
- package/ISA/ISA/JsonTypes/Data.js +4 -4
- package/ISA/ISA/JsonTypes/DataFile.js +2 -2
- package/ISA/ISA/JsonTypes/Factor.js +6 -6
- package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
- package/ISA/ISA/JsonTypes/Investigation.js +6 -6
- package/ISA/ISA/JsonTypes/Material.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +3 -3
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +6 -6
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +6 -6
- package/ISA/ISA/JsonTypes/Person.js +23 -8
- package/ISA/ISA/JsonTypes/Process.js +13 -13
- package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessSequence.js +6 -6
- package/ISA/ISA/JsonTypes/Protocol.js +6 -6
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +3 -3
- package/ISA/ISA/JsonTypes/Publication.js +6 -6
- package/ISA/ISA/JsonTypes/Sample.js +5 -5
- package/ISA/ISA/JsonTypes/Source.js +5 -5
- package/ISA/ISA/JsonTypes/Study.js +8 -8
- package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/Value.js +22 -29
- package/ISA/ISA/Regex.js +3 -3
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +157 -65
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +78 -49
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +136 -24
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +183 -21
- package/ISA/ISA.Json/ArcTypes/CellTable.js +40 -0
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +34 -23
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +18 -46
- package/ISA/ISA.Json/ArcTypes/IOType.js +11 -13
- package/ISA/ISA.Json/ArcTypes/OATable.js +42 -0
- package/ISA/ISA.Json/Assay.js +71 -47
- package/ISA/ISA.Json/Comment.js +31 -35
- package/ISA/ISA.Json/ConverterOptions.js +19 -1
- package/ISA/ISA.Json/Data.js +119 -137
- package/ISA/ISA.Json/Decode.js +51 -36
- package/ISA/ISA.Json/Factor.js +90 -90
- package/ISA/ISA.Json/GEncode.js +31 -6
- package/ISA/ISA.Json/Investigation.js +54 -79
- package/ISA/ISA.Json/Material.js +103 -104
- package/ISA/ISA.Json/Ontology.js +99 -92
- package/ISA/ISA.Json/Person.js +47 -65
- package/ISA/ISA.Json/Process.js +144 -130
- package/ISA/ISA.Json/Protocol.js +144 -105
- package/ISA/ISA.Json/Publication.js +34 -40
- package/ISA/ISA.Json/StringTable.js +44 -0
- package/ISA/ISA.Json/Study.js +70 -96
- package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +34 -0
- package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_component_context.js +24 -0
- package/ISA/ISA.Json/context/rocrate/isa_data_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_investigation_context.js +33 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_material_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +22 -0
- package/ISA/ISA.Json/context/rocrate/isa_person_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_context.js +31 -0
- package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +30 -0
- package/ISA/ISA.Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
- package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +27 -0
- package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +26 -0
- package/ISA/ISA.Json/context/rocrate/isa_source_context.js +25 -0
- package/ISA/ISA.Json/context/rocrate/isa_study_context.js +42 -0
- package/ISA/ISA.Json/context/rocrate/rocrate_context.js +25 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +56 -43
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +3 -3
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +11 -11
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +5 -5
- package/ISA/ISA.Spreadsheet/ArcAssay.js +100 -88
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +12 -12
- package/ISA/ISA.Spreadsheet/ArcStudy.js +36 -24
- package/ISA/ISA.Spreadsheet/CollectionAux.js +8 -8
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +31 -20
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +28 -23
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +8 -8
- package/README.md +20 -3
- package/SemVer.js +6 -6
- package/Templates/Template.Json.js +43 -36
- package/Templates/Template.Spreadsheet.js +12 -12
- package/Templates/Template.Web.js +4 -4
- package/Templates/Template.js +7 -7
- package/Templates/Templates.js +7 -7
- package/WebRequest/WebRequest.Node.js +15 -0
- package/WebRequest/WebRequest.js +10 -29
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs.js +14 -14
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs +22 -8
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsAddress.fs.js +24 -14
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs.js +6 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs +12 -6
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorksheet.fs.js +21 -17
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs +1390 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +1230 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs +233 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +113 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Thoth.Json.Core.fableproj +28 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs +76 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +33 -0
- package/fable_modules/Thoth.Json.Core.0.2.1/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- 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
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs +79 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +85 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs +32 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +45 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Thoth.Json.JavaScript.fableproj +21 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Debug/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +18 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/obj/Release/netstandard2.0/Thoth.Json.JavaScript.AssemblyInfo.fs +19 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.d.ts +4 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Array.js +124 -86
- package/fable_modules/fable-library-js.4.13.0/CHANGELOG.md +29 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.d.ts +0 -17
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Choice.js +0 -43
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.js +3 -2
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/fable_modules/fable-library-js.4.13.0/FSharp.Core.CompilerServices.js +27 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.js +7 -7
- package/fable_modules/fable-library-js.4.13.0/Result.d.ts +37 -0
- package/fable_modules/fable-library-js.4.13.0/Result.js +165 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.js +2 -2
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.d.ts +1 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/String.js +8 -5
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.d.ts +15 -7
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Collections.Generic.js +46 -36
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.d.ts +9 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/System.Text.js +60 -8
- package/fable_modules/fable-library-js.4.13.0/big.d.ts +338 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/package.json +4 -3
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/ISA/ISA.Json/Validation/Fable.js +0 -69
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +0 -88
- package/ISA/ISA.Json/Validation/ValidationResult.js +0 -45
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +0 -1366
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +0 -1798
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +0 -621
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +0 -472
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +0 -31
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +0 -8
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +0 -30
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +0 -59
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +0 -98
- package/fable_modules/Thoth.Json.10.1.0/package.json +0 -5
- package/fable_modules/fable-library.4.5.0/CHANGELOG.md +0 -11
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCell.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/CellBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Operators.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Transform.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/Types.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsSpreadsheet.fableproj +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTable.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.5.1.2 → FsSpreadsheet.5.1.3}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Boolean.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/Util.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.13.0}/lib/big.js +0 -0
package/ARC.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { concat, fold, map, exactlyOne, choose } from "./fable_modules/fable-library.4.
|
|
2
|
-
import { ARCtrl_ISA_ArcStudy__ArcStudy_ToUpdateContract, ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToUpdateContract_6FCE9E49, ARCtrl_ISA_ArcAssay__ArcAssay_ToDeleteContract, ARCtrl_ISA_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F, ARCtrl_ISA_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F, ARCtrl_ISA_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F } from "./Contracts/Contracts.ArcTypes.js";
|
|
3
|
-
import { collect, empty, iterate, find, tryFind, map as map_1, singleton, append, delay, toList, toArray } from "./fable_modules/fable-library.4.
|
|
1
|
+
import { concat, fold, map, exactlyOne, choose } from "./fable_modules/fable-library-js.4.13.0/Array.js";
|
|
2
|
+
import { ARCtrl_ISA_ArcAssay__ArcAssay_ToUpdateContract, ARCtrl_ISA_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49, ARCtrl_ISA_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49, ARCtrl_ISA_ArcStudy__ArcStudy_ToUpdateContract, ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToUpdateContract_6FCE9E49, ARCtrl_ISA_ArcAssay__ArcAssay_ToDeleteContract, ARCtrl_ISA_ArcInvestigation__ArcInvestigation_tryFromReadContract_Static_7570923F, ARCtrl_ISA_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923F, ARCtrl_ISA_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F } from "./Contracts/Contracts.ArcTypes.js";
|
|
3
|
+
import { collect, empty, iterate, find, tryFind, map as map_1, singleton, append, delay, toList, toArray } from "./fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
4
4
|
import { createRunsFolder, createWorkflowsFolder, createInvestigationFile, createStudyFolder, createStudiesFolder, createAssayFolder, createAssaysFolder } from "./FileSystemTree.js";
|
|
5
5
|
import { FileSystemTree } from "./FileSystem/FileSystemTree.js";
|
|
6
6
|
import { FileSystem } from "./FileSystem/FileSystem.js";
|
|
7
|
-
import { bind, map as map_2, value as value_2, defaultArg, unwrap } from "./fable_modules/fable-library.4.
|
|
7
|
+
import { bind, map as map_2, value as value_2, defaultArg, unwrap } from "./fable_modules/fable-library-js.4.13.0/Option.js";
|
|
8
8
|
import { getStudyFolderPath, getAssayFolderPath } from "./Path.js";
|
|
9
9
|
import { Contract } from "./Contract/Contract.js";
|
|
10
|
-
import { ofArray } from "./fable_modules/fable-library.4.
|
|
10
|
+
import { ofArray } from "./fable_modules/fable-library-js.4.13.0/List.js";
|
|
11
11
|
import { tryISAReadContractFromPath } from "./Contracts/Contracts.ARCtrl.js";
|
|
12
12
|
import { ArcTables } from "./ISA/ISA/ArcTypes/ArcTables.js";
|
|
13
|
-
import {
|
|
13
|
+
import { comparePrimitives, safeHash } from "./fable_modules/fable-library-js.4.13.0/Util.js";
|
|
14
|
+
import { addToDict } from "./fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
14
15
|
import { toFsWorkbook, toLightFsWorkbook } from "./ISA/ISA.Spreadsheet/ArcInvestigation.js";
|
|
15
16
|
import { ArcInvestigation } from "./ISA/ISA/ArcTypes/ArcTypes.js";
|
|
16
17
|
import { Assay_fileNameFromIdentifier, Study_fileNameFromIdentifier } from "./ISA/ISA/Identifier.js";
|
|
17
18
|
import { ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9 } from "./ISA/ISA.Spreadsheet/ArcStudy.js";
|
|
18
19
|
import { toFsWorkbook as toFsWorkbook_1 } from "./ISA/ISA.Spreadsheet/ArcAssay.js";
|
|
19
|
-
import { Dictionary_tryGet } from "./fable_modules/FsSpreadsheet.5.1.
|
|
20
|
+
import { Dictionary_tryGet } from "./fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js";
|
|
20
21
|
import { Clone_createCloneContract_5000466F, Init_createAddRemoteContract_Z721C83C5, gitignoreContract, Init_createInitContract_6DFDD678 } from "./Contracts/Contracts.Git.js";
|
|
21
|
-
import { FSharpSet__Contains, ofSeq, unionMany } from "./fable_modules/fable-library.4.
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { class_type } from "./fable_modules/fable-library.4.5.0/Reflection.js";
|
|
22
|
+
import { FSharpSet__Contains, ofSeq, unionMany } from "./fable_modules/fable-library-js.4.13.0/Set.js";
|
|
23
|
+
import { ofSeq as ofSeq_1 } from "./fable_modules/fable-library-js.4.13.0/Map.js";
|
|
24
|
+
import { class_type } from "./fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
25
25
|
|
|
26
26
|
export function ARCAux_getArcAssaysFromContracts(contracts) {
|
|
27
27
|
return choose(ARCtrl_ISA_ArcAssay__ArcAssay_tryFromReadContract_Static_7570923F, contracts);
|
|
@@ -172,6 +172,7 @@ export class ARC {
|
|
|
172
172
|
const registeredStudy = registeredStudyOpt;
|
|
173
173
|
registeredStudy.UpdateReferenceByStudyFile(study, true);
|
|
174
174
|
}
|
|
175
|
+
study.StaticHash = (study.GetLightHashCode() | 0);
|
|
175
176
|
});
|
|
176
177
|
assays.forEach((assay) => {
|
|
177
178
|
const registeredAssayOpt = tryFind((a_1) => (a_1.Identifier === assay.Identifier), investigation.Assays);
|
|
@@ -188,6 +189,13 @@ export class ARC {
|
|
|
188
189
|
updatedTables = fold((tables, study_1) => ArcTables.updateReferenceTablesBySheets(new ArcTables(study_1.Tables), tables, false), new ArcTables(assay_1.Tables), array_6);
|
|
189
190
|
assay_1.Tables = updatedTables.Tables;
|
|
190
191
|
});
|
|
192
|
+
iterate((a_3) => {
|
|
193
|
+
a_3.StaticHash = (safeHash(a_3) | 0);
|
|
194
|
+
}, investigation.Assays);
|
|
195
|
+
iterate((s_2) => {
|
|
196
|
+
s_2.StaticHash = (s_2.GetLightHashCode() | 0);
|
|
197
|
+
}, investigation.Studies);
|
|
198
|
+
investigation.StaticHash = (investigation.GetLightHashCode() | 0);
|
|
191
199
|
this$.ISA = investigation;
|
|
192
200
|
}
|
|
193
201
|
UpdateFileSystem() {
|
|
@@ -208,10 +216,13 @@ export class ARC {
|
|
|
208
216
|
else {
|
|
209
217
|
const inv = matchValue;
|
|
210
218
|
addToDict(workbooks, "isa.investigation.xlsx", ["ISA_Investigation", (isLight_1 ? (toLightFsWorkbook) : (toFsWorkbook))(inv)]);
|
|
219
|
+
inv.StaticHash = (inv.GetLightHashCode() | 0);
|
|
211
220
|
iterate((s) => {
|
|
221
|
+
s.StaticHash = (s.GetLightHashCode() | 0);
|
|
212
222
|
addToDict(workbooks, Study_fileNameFromIdentifier(s.Identifier), ["ISA_Study", ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9(s)]);
|
|
213
223
|
}, inv.Studies);
|
|
214
224
|
iterate((a) => {
|
|
225
|
+
a.StaticHash = (safeHash(a) | 0);
|
|
215
226
|
addToDict(workbooks, Assay_fileNameFromIdentifier(a.Identifier), ["ISA_Assay", toFsWorkbook_1(a)]);
|
|
216
227
|
}, inv.Assays);
|
|
217
228
|
}
|
|
@@ -227,6 +238,31 @@ export class ARC {
|
|
|
227
238
|
}
|
|
228
239
|
}, this$._fs.Tree.ToFilePaths(true));
|
|
229
240
|
}
|
|
241
|
+
GetUpdateContracts(isLight) {
|
|
242
|
+
let inv, inv_1, inv_2;
|
|
243
|
+
const this$ = this;
|
|
244
|
+
const isLight_1 = defaultArg(isLight, true);
|
|
245
|
+
const matchValue = this$.ISA;
|
|
246
|
+
return (matchValue != null) ? (((inv = matchValue, inv.StaticHash === 0)) ? ((inv_1 = matchValue, this$.GetWriteContracts(isLight_1))) : ((inv_2 = matchValue, toArray(delay(() => {
|
|
247
|
+
const hash = inv_2.GetLightHashCode() | 0;
|
|
248
|
+
return append((inv_2.StaticHash !== hash) ? singleton(ARCtrl_ISA_ArcInvestigation__ArcInvestigation_ToUpdateContract_6FCE9E49(inv_2, isLight_1)) : empty(), delay(() => {
|
|
249
|
+
inv_2.StaticHash = (hash | 0);
|
|
250
|
+
return append(collect((s) => {
|
|
251
|
+
const hash_1 = s.GetLightHashCode() | 0;
|
|
252
|
+
return append((s.StaticHash === 0) ? ARCtrl_ISA_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(s, true) : ((s.StaticHash !== hash_1) ? singleton(ARCtrl_ISA_ArcStudy__ArcStudy_ToUpdateContract(s)) : empty()), delay(() => {
|
|
253
|
+
s.StaticHash = (hash_1 | 0);
|
|
254
|
+
return empty();
|
|
255
|
+
}));
|
|
256
|
+
}, inv_2.Studies), delay(() => collect((a) => {
|
|
257
|
+
const hash_2 = safeHash(a) | 0;
|
|
258
|
+
return append((a.StaticHash === 0) ? ARCtrl_ISA_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(a, true) : ((a.StaticHash !== hash_2) ? singleton(ARCtrl_ISA_ArcAssay__ArcAssay_ToUpdateContract(a)) : empty()), delay(() => {
|
|
259
|
+
a.StaticHash = (hash_2 | 0);
|
|
260
|
+
return empty();
|
|
261
|
+
}));
|
|
262
|
+
}, inv_2.Assays)));
|
|
263
|
+
}));
|
|
264
|
+
}))))) : this$.GetWriteContracts(isLight_1);
|
|
265
|
+
}
|
|
230
266
|
GetGitInitContracts(branch, repositoryAddress, defaultGitignore) {
|
|
231
267
|
const defaultGitignore_1 = defaultArg(defaultGitignore, false);
|
|
232
268
|
return toArray(delay(() => append(singleton(Init_createInitContract_6DFDD678(unwrap(branch))), delay(() => append(defaultGitignore_1 ? singleton(gitignoreContract) : empty(), delay(() => ((repositoryAddress != null) ? singleton(Init_createAddRemoteContract_Z721C83C5(value_2(repositoryAddress))) : empty())))))));
|
package/Contract/Contract.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Record } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { class_type, option_type, record_type, array_type, string_type } from "../fable_modules/fable-library.4.
|
|
3
|
-
import { defaultArg } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { Record } from "../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
2
|
+
import { class_type, option_type, record_type, array_type, string_type } from "../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
3
|
+
import { defaultArg } from "../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
4
4
|
|
|
5
5
|
export class CLITool extends Record {
|
|
6
6
|
constructor(Name, Arguments) {
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
+
import { equalsWith, item } from "../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
1
2
|
import { combineMany } from "../FileSystem/Path.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { unwrap, defaultArg } from "../fable_modules/fable-library.4.5.0/Option.js";
|
|
3
|
+
import { defaultOf } from "../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
4
|
+
import { unwrap, defaultArg } from "../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
5
5
|
import { fromFsWorkbook, toFsWorkbook, toLightFsWorkbook } from "../ISA/ISA.Spreadsheet/ArcInvestigation.js";
|
|
6
6
|
import { Contract } from "../Contract/Contract.js";
|
|
7
7
|
import { Assay_fileNameFromIdentifier, Study_fileNameFromIdentifier } from "../ISA/ISA/Identifier.js";
|
|
8
8
|
import { ARCtrl_ISA_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9 } from "../ISA/ISA.Spreadsheet/ArcStudy.js";
|
|
9
|
+
import { empty, singleton, collect, append, delay, toArray } from "../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
10
|
+
import { createAssayFolder, createStudyFolder, createStudiesFolder } from "../FileSystemTree.js";
|
|
9
11
|
import { getAssayFolderPath, getStudyFolderPath } from "../Path.js";
|
|
10
12
|
import { fromFsWorkbook as fromFsWorkbook_1, toFsWorkbook as toFsWorkbook_1 } from "../ISA/ISA.Spreadsheet/ArcAssay.js";
|
|
11
13
|
|
|
12
14
|
export function $007CStudyPath$007C_$007C(input) {
|
|
13
15
|
let matchResult;
|
|
14
16
|
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 3)) {
|
|
15
|
-
if (
|
|
16
|
-
if (
|
|
17
|
+
if (item(0, input) === "studies") {
|
|
18
|
+
if (item(2, input) === "isa.study.xlsx") {
|
|
17
19
|
matchResult = 0;
|
|
18
20
|
}
|
|
19
21
|
else {
|
|
@@ -29,7 +31,7 @@ export function $007CStudyPath$007C_$007C(input) {
|
|
|
29
31
|
}
|
|
30
32
|
switch (matchResult) {
|
|
31
33
|
case 0: {
|
|
32
|
-
const anyStudyName = input
|
|
34
|
+
const anyStudyName = item(1, input);
|
|
33
35
|
return combineMany(input);
|
|
34
36
|
}
|
|
35
37
|
default:
|
|
@@ -40,8 +42,8 @@ export function $007CStudyPath$007C_$007C(input) {
|
|
|
40
42
|
export function $007CAssayPath$007C_$007C(input) {
|
|
41
43
|
let matchResult;
|
|
42
44
|
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 3)) {
|
|
43
|
-
if (
|
|
44
|
-
if (
|
|
45
|
+
if (item(0, input) === "assays") {
|
|
46
|
+
if (item(2, input) === "isa.assay.xlsx") {
|
|
45
47
|
matchResult = 0;
|
|
46
48
|
}
|
|
47
49
|
else {
|
|
@@ -57,7 +59,7 @@ export function $007CAssayPath$007C_$007C(input) {
|
|
|
57
59
|
}
|
|
58
60
|
switch (matchResult) {
|
|
59
61
|
case 0: {
|
|
60
|
-
const anyAssayName = input
|
|
62
|
+
const anyAssayName = item(1, input);
|
|
61
63
|
return combineMany(input);
|
|
62
64
|
}
|
|
63
65
|
default:
|
|
@@ -68,7 +70,7 @@ export function $007CAssayPath$007C_$007C(input) {
|
|
|
68
70
|
export function $007CInvestigationPath$007C_$007C(input) {
|
|
69
71
|
let matchResult;
|
|
70
72
|
if (!equalsWith((x, y) => (x === y), input, defaultOf()) && (input.length === 1)) {
|
|
71
|
-
if (
|
|
73
|
+
if (item(0, input) === "isa.investigation.xlsx") {
|
|
72
74
|
matchResult = 0;
|
|
73
75
|
}
|
|
74
76
|
else {
|
|
@@ -136,9 +138,14 @@ export function ARCtrl_ISA_ArcInvestigation__ArcInvestigation_tryFromReadContrac
|
|
|
136
138
|
}
|
|
137
139
|
}
|
|
138
140
|
|
|
139
|
-
export function
|
|
141
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(this$, WithFolder) {
|
|
142
|
+
const withFolder = defaultArg(WithFolder, false);
|
|
140
143
|
const path = Study_fileNameFromIdentifier(this$.Identifier);
|
|
141
|
-
|
|
144
|
+
const c = Contract.createCreate(path, "ISA_Study", ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9(this$));
|
|
145
|
+
return toArray(delay(() => {
|
|
146
|
+
let folderFS;
|
|
147
|
+
return append(withFolder ? ((folderFS = createStudiesFolder([createStudyFolder(this$.Identifier)]), collect((p) => ((p !== path) ? singleton(Contract.createCreate(p, "PlainText")) : empty()), folderFS.ToFilePaths(false)))) : empty(), delay(() => singleton(c)));
|
|
148
|
+
}));
|
|
142
149
|
}
|
|
143
150
|
|
|
144
151
|
export function ARCtrl_ISA_ArcStudy__ArcStudy_ToUpdateContract(this$) {
|
|
@@ -155,8 +162,8 @@ export function ARCtrl_ISA_ArcStudy__ArcStudy_toDeleteContract_Static_1B3D5E9B(s
|
|
|
155
162
|
return ARCtrl_ISA_ArcStudy__ArcStudy_ToDeleteContract(study);
|
|
156
163
|
}
|
|
157
164
|
|
|
158
|
-
export function
|
|
159
|
-
return
|
|
165
|
+
export function ARCtrl_ISA_ArcStudy__ArcStudy_toCreateContract_Static_Z12D8504E(study, WithFolder) {
|
|
166
|
+
return ARCtrl_ISA_ArcStudy__ArcStudy_ToCreateContract_6FCE9E49(study, unwrap(WithFolder));
|
|
160
167
|
}
|
|
161
168
|
|
|
162
169
|
export function ARCtrl_ISA_ArcStudy__ArcStudy_toUpdateContract_Static_1B3D5E9B(study) {
|
|
@@ -195,9 +202,14 @@ export function ARCtrl_ISA_ArcStudy__ArcStudy_tryFromReadContract_Static_7570923
|
|
|
195
202
|
}
|
|
196
203
|
}
|
|
197
204
|
|
|
198
|
-
export function
|
|
205
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(this$, WithFolder) {
|
|
206
|
+
const withFolder = defaultArg(WithFolder, false);
|
|
199
207
|
const path = Assay_fileNameFromIdentifier(this$.Identifier);
|
|
200
|
-
|
|
208
|
+
const c = Contract.createCreate(path, "ISA_Assay", toFsWorkbook_1(this$));
|
|
209
|
+
return toArray(delay(() => {
|
|
210
|
+
let folderFS;
|
|
211
|
+
return append(withFolder ? ((folderFS = createAssayFolder(this$.Identifier), collect((p) => ((p !== path) ? singleton(Contract.createCreate(p, "PlainText")) : empty()), folderFS.ToFilePaths(false)))) : empty(), delay(() => singleton(c)));
|
|
212
|
+
}));
|
|
201
213
|
}
|
|
202
214
|
|
|
203
215
|
export function ARCtrl_ISA_ArcAssay__ArcAssay_ToUpdateContract(this$) {
|
|
@@ -214,8 +226,8 @@ export function ARCtrl_ISA_ArcAssay__ArcAssay_toDeleteContract_Static_1C75D08D(a
|
|
|
214
226
|
return ARCtrl_ISA_ArcAssay__ArcAssay_ToDeleteContract(assay);
|
|
215
227
|
}
|
|
216
228
|
|
|
217
|
-
export function
|
|
218
|
-
return
|
|
229
|
+
export function ARCtrl_ISA_ArcAssay__ArcAssay_toCreateContract_Static_Z3B1E839C(assay, WithFolder) {
|
|
230
|
+
return ARCtrl_ISA_ArcAssay__ArcAssay_ToCreateContract_6FCE9E49(assay, unwrap(WithFolder));
|
|
219
231
|
}
|
|
220
232
|
|
|
221
233
|
export function ARCtrl_ISA_ArcAssay__ArcAssay_toUpdateContract_Static_1C75D08D(assay) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Contract, CLITool } from "../Contract/Contract.js";
|
|
2
2
|
import { dgi } from "../FileSystem/DefaultGitignore.js";
|
|
3
|
-
import { class_type } from "../fable_modules/fable-library.4.
|
|
4
|
-
import { value, defaultArg } from "../fable_modules/fable-library.4.
|
|
5
|
-
import { replace } from "../fable_modules/fable-library.4.
|
|
6
|
-
import { empty, singleton, append, delay, toArray } from "../fable_modules/fable-library.4.
|
|
3
|
+
import { class_type } from "../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
4
|
+
import { value, defaultArg } from "../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
5
|
+
import { replace } from "../fable_modules/fable-library-js.4.13.0/String.js";
|
|
6
|
+
import { empty, singleton, append, delay, toArray } from "../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
7
7
|
|
|
8
8
|
export function gitWithArgs(arguments$) {
|
|
9
9
|
return CLITool.create("git", arguments$);
|
package/FileSystem/Commit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Record } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { record_type, class_type, string_type } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { Record } from "../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
2
|
+
import { record_type, class_type, string_type } from "../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
3
3
|
|
|
4
4
|
export class Commit extends Record {
|
|
5
5
|
constructor(Hash, UserName, UserEmail, Date$, Message) {
|
package/FileSystem/FileSystem.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defaultArg } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { defaultArg } from "../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
2
2
|
import { FileSystemTree_$reflection, FileSystemTree } from "./FileSystemTree.js";
|
|
3
|
-
import { map, append } from "../fable_modules/fable-library.4.
|
|
4
|
-
import { Record } from "../fable_modules/fable-library.4.
|
|
3
|
+
import { map, append } from "../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
4
|
+
import { Record } from "../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
5
5
|
import { Commit_$reflection } from "./Commit.js";
|
|
6
|
-
import { record_type, array_type } from "../fable_modules/fable-library.4.
|
|
6
|
+
import { record_type, array_type } from "../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
7
7
|
|
|
8
8
|
export class FileSystem extends Record {
|
|
9
9
|
constructor(Tree, History) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { unwrap, defaultArg } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { append as append_1, choose, equalsWith, tail, head, map, tryFind } from "../fable_modules/fable-library.4.
|
|
3
|
-
import { singleton, append, delay, toArray } from "../fable_modules/fable-library.4.
|
|
4
|
-
import { Array_distinct, Array_groupBy } from "../fable_modules/fable-library.4.
|
|
5
|
-
import { curry2, arrayHash, stringHash } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { unwrap, defaultArg } from "../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
2
|
+
import { append as append_1, choose, equalsWith, tail, head, map, tryFind } from "../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
3
|
+
import { singleton, append, delay, toArray } from "../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
4
|
+
import { Array_distinct, Array_groupBy } from "../fable_modules/fable-library-js.4.13.0/Seq2.js";
|
|
5
|
+
import { curry2, arrayHash, stringHash } from "../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
6
6
|
import { combineMany, split } from "./Path.js";
|
|
7
|
-
import { empty, reverse, toArray as toArray_1, cons } from "../fable_modules/fable-library.4.
|
|
8
|
-
import { Union } from "../fable_modules/fable-library.4.
|
|
9
|
-
import { union_type, array_type, string_type } from "../fable_modules/fable-library.4.
|
|
7
|
+
import { empty, reverse, toArray as toArray_1, cons } from "../fable_modules/fable-library-js.4.13.0/List.js";
|
|
8
|
+
import { Union } from "../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
9
|
+
import { union_type, array_type, string_type } from "../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
10
10
|
|
|
11
11
|
export class FileSystemTree extends Union {
|
|
12
12
|
constructor(tag, fields) {
|
package/FileSystem/Path.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { trim, join, trimStart, trimEnd, split as split_1 } from "../fable_modules/fable-library.4.
|
|
2
|
-
import { last, mapIndexed } from "../fable_modules/fable-library.4.
|
|
1
|
+
import { trim, join, trimStart, trimEnd, split as split_1 } from "../fable_modules/fable-library-js.4.13.0/String.js";
|
|
2
|
+
import { last, mapIndexed } from "../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
3
3
|
|
|
4
4
|
export const seperators = ["/", "\\"];
|
|
5
5
|
|
package/FileSystemTree.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileSystemTree } from "./FileSystem/FileSystemTree.js";
|
|
2
|
-
import { append } from "./fable_modules/fable-library.4.
|
|
2
|
+
import { append } from "./fable_modules/fable-library-js.4.13.0/Array.js";
|
|
3
3
|
|
|
4
4
|
export function createGitKeepFile() {
|
|
5
5
|
return FileSystemTree.createFile(".gitkeep");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Dictionary } from "../../../fable_modules/fable-library.4.
|
|
2
|
-
import { compareArrays, safeHash, disposeSafe, getEnumerator, comparePrimitives, equals, arrayHash, equalArrays } from "../../../fable_modules/fable-library.4.
|
|
3
|
-
import { value as value_9, map as map_2, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.
|
|
4
|
-
import { Unchecked_extendToRowCount, ProcessParsing_processToRows, ProcessParsing_alignByHeaders, ProcessParsing_mergeIdenticalProcesses, ProcessParsing_getProcessGetter, Unchecked_removeRowCells_withIndexChange, Unchecked_addRows, Unchecked_addRow, Unchecked_getEmptyCellForHeader, Unchecked_removeColumnCells_withIndexChange, tryFindDuplicateUniqueInArray, Unchecked_removeColumnCells, Unchecked_removeHeader, Unchecked_fillMissingCells, Unchecked_addColumn, tryFindDuplicateUnique, Unchecked_setCellAt, SanityChecks_validateColumn, SanityChecks_validateRowIndex, SanityChecks_validateColumnIndex, Unchecked_tryGetCellAt, getRowCount, getColumnCount } from "./ArcTableAux.js";
|
|
5
|
-
import { item, append as append_1, indexed as indexed_1, choose, toList, zip, fold, filter, length, tryFindIndex, empty, singleton, collect, removeAt, map, delay, toArray } from "../../../fable_modules/fable-library.4.
|
|
6
|
-
import { rangeDouble } from "../../../fable_modules/fable-library.4.
|
|
1
|
+
import { Dictionary } from "../../../fable_modules/fable-library-js.4.13.0/MutableMap.js";
|
|
2
|
+
import { compareArrays, safeHash, disposeSafe, getEnumerator, comparePrimitives, equals, arrayHash, equalArrays } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
3
|
+
import { value as value_9, map as map_2, defaultArg, unwrap } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
4
|
+
import { boxHashValues, Unchecked_extendToRowCount, ProcessParsing_processToRows, ProcessParsing_alignByHeaders, ProcessParsing_mergeIdenticalProcesses, ProcessParsing_getProcessGetter, Unchecked_removeRowCells_withIndexChange, Unchecked_addRows, Unchecked_addRow, Unchecked_getEmptyCellForHeader, Unchecked_removeColumnCells_withIndexChange, tryFindDuplicateUniqueInArray, Unchecked_removeColumnCells, Unchecked_removeHeader, Unchecked_fillMissingCells, Unchecked_addColumn, tryFindDuplicateUnique, Unchecked_setCellAt, SanityChecks_validateColumn, SanityChecks_validateRowIndex, SanityChecks_validateColumnIndex, Unchecked_tryGetCellAt, getRowCount, getColumnCount } from "./ArcTableAux.js";
|
|
5
|
+
import { item as item_1, append as append_1, indexed as indexed_1, choose, toList, zip, fold, filter, length, tryFindIndex, empty, singleton, collect, removeAt, map, delay, toArray } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
6
|
+
import { rangeDouble } from "../../../fable_modules/fable-library-js.4.13.0/Range.js";
|
|
7
7
|
import { CompositeColumn } from "./CompositeColumn.js";
|
|
8
|
-
import { sortBy, indexed, mapIndexed, singleton as singleton_1, initialize, sortDescending, iterateIndexed, map as map_1 } from "../../../fable_modules/fable-library.4.
|
|
9
|
-
import { append, collect as collect_1, initialize as initialize_1, singleton as singleton_2, empty as empty_1, iterate, isEmpty } from "../../../fable_modules/fable-library.4.
|
|
10
|
-
import { StringBuilder__AppendLine_Z721C83C5, StringBuilder_$ctor } from "../../../fable_modules/fable-library.4.
|
|
11
|
-
import { toString } from "../../../fable_modules/fable-library.4.
|
|
12
|
-
import { join, printf, toFail } from "../../../fable_modules/fable-library.4.
|
|
8
|
+
import { sortBy, indexed, mapIndexed, singleton as singleton_1, initialize, item, sortDescending, iterateIndexed, map as map_1 } from "../../../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
9
|
+
import { append, collect as collect_1, initialize as initialize_1, singleton as singleton_2, empty as empty_1, iterate, isEmpty } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
10
|
+
import { StringBuilder__AppendLine_Z721C83C5, StringBuilder_$ctor } from "../../../fable_modules/fable-library-js.4.13.0/System.Text.js";
|
|
11
|
+
import { toString } from "../../../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
12
|
+
import { join, printf, toFail } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
13
13
|
import { CompositeCell } from "./CompositeCell.js";
|
|
14
14
|
import { CompositeHeader } from "./CompositeHeader.js";
|
|
15
15
|
import { createMissingIdentifier } from "../Identifier.js";
|
|
@@ -18,12 +18,12 @@ import { Protocol_create_Z7DFD6E67, Protocol_addComponent, Protocol_addParameter
|
|
|
18
18
|
import { OntologyAnnotation } from "../JsonTypes/OntologyAnnotation.js";
|
|
19
19
|
import { ProtocolParameter } from "../JsonTypes/ProtocolParameter.js";
|
|
20
20
|
import { Component_create_61502994 } from "../JsonTypes/Component.js";
|
|
21
|
-
import { Array_groupBy, List_distinct } from "../../../fable_modules/fable-library.4.
|
|
21
|
+
import { Array_groupBy, List_distinct } from "../../../fable_modules/fable-library-js.4.13.0/Seq2.js";
|
|
22
22
|
import { toProtocol } from "./CompositeRow.js";
|
|
23
23
|
import { Process_create_Z42860F3E } from "../JsonTypes/Process.js";
|
|
24
|
-
import { getItemFromDict } from "../../../fable_modules/fable-library.4.
|
|
25
|
-
import { HashCodes_boxHashArray } from "../Helper.js";
|
|
26
|
-
import { class_type } from "../../../fable_modules/fable-library.4.
|
|
24
|
+
import { getItemFromDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
25
|
+
import { HashCodes_boxHashSeq, HashCodes_boxHashArray } from "../Helper.js";
|
|
26
|
+
import { class_type } from "../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
27
27
|
|
|
28
28
|
export class ArcTable {
|
|
29
29
|
constructor(name, headers, values) {
|
|
@@ -422,7 +422,7 @@ export class ArcTable {
|
|
|
422
422
|
}
|
|
423
423
|
for (let columnIndex_1 = 0; columnIndex_1 <= (this$.ColumnCount - 1); columnIndex_1++) {
|
|
424
424
|
const h_1 = this$.Headers[columnIndex_1];
|
|
425
|
-
SanityChecks_validateColumn(CompositeColumn.create(h_1, [cells_1
|
|
425
|
+
SanityChecks_validateColumn(CompositeColumn.create(h_1, [item(columnIndex_1, cells_1)]));
|
|
426
426
|
}
|
|
427
427
|
Unchecked_addRow(index_1, cells_1, this$.Headers, this$.Values);
|
|
428
428
|
}
|
|
@@ -496,10 +496,10 @@ export class ArcTable {
|
|
|
496
496
|
}
|
|
497
497
|
});
|
|
498
498
|
for (let idx = 0; idx <= (rows.length - 1); idx++) {
|
|
499
|
-
const row_1 = rows
|
|
499
|
+
const row_1 = item(idx, rows);
|
|
500
500
|
for (let columnIndex = 0; columnIndex <= (this$.ColumnCount - 1); columnIndex++) {
|
|
501
501
|
const h = this$.Headers[columnIndex];
|
|
502
|
-
SanityChecks_validateColumn(CompositeColumn.create(h, [row_1
|
|
502
|
+
SanityChecks_validateColumn(CompositeColumn.create(h, [item(columnIndex, row_1)]));
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
Unchecked_addRows(index_1, rows, this$.Headers, this$.Values);
|
|
@@ -807,7 +807,7 @@ export class ArcTable {
|
|
|
807
807
|
Unchecked_extendToRowCount(annotationTable_1.RowCount, refTable_1.Headers, refTable_1.Values);
|
|
808
808
|
const arr = annotationTable_1.Columns;
|
|
809
809
|
for (let idx = 0; idx <= (arr.length - 1); idx++) {
|
|
810
|
-
const c = arr
|
|
810
|
+
const c = item(idx, arr);
|
|
811
811
|
refTable_1.AddColumn(c.Header, c.Cells, void 0, true);
|
|
812
812
|
}
|
|
813
813
|
return refTable_1;
|
|
@@ -834,7 +834,7 @@ export class ArcTable {
|
|
|
834
834
|
else {
|
|
835
835
|
return false;
|
|
836
836
|
}
|
|
837
|
-
}, true, toList(delay(() => map((i) => equals(
|
|
837
|
+
}, true, toList(delay(() => map((i) => equals(item_1(i, a), item_1(i, b)), rangeDouble(0, 1, length(a) - 1))))))))) {
|
|
838
838
|
const a_1 = sort(this$.Values);
|
|
839
839
|
const b_1 = sort(other.Values);
|
|
840
840
|
return (length(a_1) === length(b_1)) && fold((acc_1, e_1) => {
|
|
@@ -844,7 +844,7 @@ export class ArcTable {
|
|
|
844
844
|
else {
|
|
845
845
|
return false;
|
|
846
846
|
}
|
|
847
|
-
}, true, toList(delay(() => map((i_1) => equals(
|
|
847
|
+
}, true, toList(delay(() => map((i_1) => equals(item_1(i_1, a_1), item_1(i_1, b_1)), rangeDouble(0, 1, length(a_1) - 1)))));
|
|
848
848
|
}
|
|
849
849
|
else {
|
|
850
850
|
return false;
|
|
@@ -861,16 +861,8 @@ export class ArcTable {
|
|
|
861
861
|
}
|
|
862
862
|
GetHashCode() {
|
|
863
863
|
const this$ = this;
|
|
864
|
-
const
|
|
865
|
-
|
|
866
|
-
return HashCodes_boxHashArray([_arg[0], _arg[1], tupledArg[1]]);
|
|
867
|
-
}, sortBy((tuple) => tuple[0], toArray(delay(() => collect((matchValue) => {
|
|
868
|
-
const activePatternResult = matchValue;
|
|
869
|
-
return singleton([activePatternResult[0], activePatternResult[1]]);
|
|
870
|
-
}, this$.Values))), {
|
|
871
|
-
Compare: compareArrays,
|
|
872
|
-
}));
|
|
873
|
-
return HashCodes_boxHashArray([this$.Name, HashCodes_boxHashArray(Array.from(this$.Headers)), HashCodes_boxHashArray(Array.from(v_2))]) | 0;
|
|
864
|
+
const vHash = boxHashValues(this$.ColumnCount, this$.Values);
|
|
865
|
+
return HashCodes_boxHashArray([this$.Name, HashCodes_boxHashSeq(this$.Headers), vHash]) | 0;
|
|
874
866
|
}
|
|
875
867
|
}
|
|
876
868
|
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { addToDict, getItemFromDict } from "../../../fable_modules/fable-library.4.
|
|
2
|
-
import { map as map_2, defaultArg, unwrap, value as value_9, some } from "../../../fable_modules/fable-library.4.
|
|
3
|
-
import { empty as empty_1, singleton as singleton_1, append, delay, map as map_1, tryPick, toList, indexed, head as head_1, toArray, filter, tryFindIndex, maxBy } from "../../../fable_modules/fable-library.4.
|
|
4
|
-
import { arrayHash, equalArrays, stringHash, int32ToString, numberHash, disposeSafe, getEnumerator, compare, equals, comparePrimitives } from "../../../fable_modules/fable-library.4.
|
|
5
|
-
import { pick, exists, zip, append as append_1, sortBy, tryPick as tryPick_1, collect, mapIndexed, item, length, map as map_3, ofArray as ofArray_2, singleton, choose, ofSeq, empty, head, tail as tail_1, isEmpty, cons } from "../../../fable_modules/fable-library.4.
|
|
1
|
+
import { addToDict, getItemFromDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
2
|
+
import { map as map_2, defaultArg, unwrap, value as value_9, some } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
3
|
+
import { empty as empty_1, singleton as singleton_1, append, delay, map as map_1, tryPick, toList, indexed, head as head_1, toArray, filter, tryFindIndex, maxBy } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
4
|
+
import { arrayHash, equalArrays, stringHash, int32ToString, numberHash, disposeSafe, getEnumerator, compare, equals, safeHash, comparePrimitives } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
5
|
+
import { pick, exists, zip, append as append_1, sortBy, tryPick as tryPick_1, collect, mapIndexed, item as item_1, length, map as map_3, ofArray as ofArray_2, singleton, choose, ofSeq, empty, head, tail as tail_1, isEmpty, cons } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
6
6
|
import { CompositeCell } from "./CompositeCell.js";
|
|
7
|
-
import { max } from "../../../fable_modules/fable-library.4.
|
|
8
|
-
import { map, iterateIndexed } from "../../../fable_modules/fable-library.4.
|
|
9
|
-
import { tryFind, ofArray } from "../../../fable_modules/fable-library.4.
|
|
10
|
-
import { List_groupBy, Array_groupBy } from "../../../fable_modules/fable-library.4.
|
|
11
|
-
import { FSharpSet__Contains, ofArray as ofArray_1 } from "../../../fable_modules/fable-library.4.
|
|
7
|
+
import { max } from "../../../fable_modules/fable-library-js.4.13.0/Double.js";
|
|
8
|
+
import { item, map, iterateIndexed } from "../../../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
9
|
+
import { tryFind, ofArray } from "../../../fable_modules/fable-library-js.4.13.0/Map.js";
|
|
10
|
+
import { List_groupBy, Array_groupBy } from "../../../fable_modules/fable-library-js.4.13.0/Seq2.js";
|
|
11
|
+
import { FSharpSet__Contains, ofArray as ofArray_1 } from "../../../fable_modules/fable-library-js.4.13.0/Set.js";
|
|
12
12
|
import { Value as Value_1 } from "../JsonTypes/Value.js";
|
|
13
13
|
import { Component_fromOptions } from "../JsonTypes/Component.js";
|
|
14
14
|
import { ProtocolParameter } from "../JsonTypes/ProtocolParameter.js";
|
|
15
15
|
import { ProcessParameterValue } from "../JsonTypes/ProcessParameterValue.js";
|
|
16
16
|
import { FactorValue_create_18335379 } from "../JsonTypes/FactorValue.js";
|
|
17
17
|
import { Factor } from "../JsonTypes/Factor.js";
|
|
18
|
-
import { toString } from "../../../fable_modules/fable-library.4.
|
|
18
|
+
import { toString } from "../../../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
19
19
|
import { MaterialAttributeValue_create_7F714043 } from "../JsonTypes/MaterialAttributeValue.js";
|
|
20
20
|
import { MaterialAttribute_create_Z6C54B221 } from "../JsonTypes/MaterialAttribute.js";
|
|
21
21
|
import { ProcessInput_getCharacteristicValues_102B6859, ProcessInput__isMaterial, ProcessInput__isData, ProcessInput_setCharacteristicValues, ProcessInput__get_Name, ProcessInput__isSource, ProcessInput__isSample, ProcessInput, ProcessInput_createDerivedData_Z721C83C5, ProcessInput_createRawData_Z721C83C5, ProcessInput_createImageFile_Z721C83C5, ProcessInput_createMaterial_2363974C, ProcessInput_createSample_Z6DF16D07, ProcessInput_createSource_7888CE42 } from "../JsonTypes/ProcessInput.js";
|
|
22
|
-
import { remove, printf, toFail } from "../../../fable_modules/fable-library.4.
|
|
22
|
+
import { remove, printf, toFail } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
23
23
|
import { ProcessOutput_getFactorValues_11830B70, ProcessOutput__isMaterial, ProcessOutput__isData, ProcessOutput_setFactorValues, ProcessOutput__get_Name, ProcessOutput__isSample, ProcessOutput, ProcessOutput_createDerivedData_Z721C83C5, ProcessOutput_createRawData_Z721C83C5, ProcessOutput_createImageFile_Z721C83C5, ProcessOutput_createMaterial_2363974C, ProcessOutput_createSample_Z6DF16D07 } from "../JsonTypes/ProcessOutput.js";
|
|
24
24
|
import { IOType, CompositeHeader } from "./CompositeHeader.js";
|
|
25
25
|
import { tryGetFactorColumnIndex, tryGetCharacteristicColumnIndex, tryGetComponentIndex, tryGetParameterColumnIndex, ARCtrl_ISA_OntologyAnnotation__OntologyAnnotation_SetColumnIndex_Z524259A4 } from "../JsonTypes/ColumnIndex.js";
|
|
@@ -29,7 +29,7 @@ import { Process_create_Z42860F3E, Process_decomposeName_Z721C83C5, Process_make
|
|
|
29
29
|
import { List_tryPickAndRemove, HashCodes_boxHashSeq, Option_fromValueWithDefault } from "../Helper.js";
|
|
30
30
|
import { Protocol_make } from "../JsonTypes/Protocol.js";
|
|
31
31
|
import { createMissingIdentifier } from "../Identifier.js";
|
|
32
|
-
import { Dictionary } from "../../../fable_modules/fable-library.4.
|
|
32
|
+
import { Dictionary } from "../../../fable_modules/fable-library-js.4.13.0/MutableMap.js";
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Lookup an element in the dictionary, returning a <c>Some</c> value if the element is in the domain
|
|
@@ -59,6 +59,17 @@ export function getRowCount(values) {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
export function boxHashValues(colCount, values) {
|
|
63
|
+
let hash = 0;
|
|
64
|
+
const rowCount = getRowCount(values) | 0;
|
|
65
|
+
for (let col = 0; col <= (colCount - 1); col++) {
|
|
66
|
+
for (let row = 0; row <= (rowCount - 1); row++) {
|
|
67
|
+
hash = ((((-1640531527 + safeHash(getItemFromDict(values, [col, row]))) + (hash << 6)) + (hash >> 2)) | 0);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return hash;
|
|
71
|
+
}
|
|
72
|
+
|
|
62
73
|
export function $007CIsUniqueExistingHeader$007C_$007C(existingHeaders, input) {
|
|
63
74
|
switch (input.tag) {
|
|
64
75
|
case 3:
|
|
@@ -444,7 +455,7 @@ export function Unchecked_addRows(index, newRows, headers, values) {
|
|
|
444
455
|
for (let idx = 0; idx <= (newRows.length - 1); idx++) {
|
|
445
456
|
const setNewCells = iterateIndexed((columnIndex_1, cell) => {
|
|
446
457
|
Unchecked_setCellAt(columnIndex_1, currentRowIndex, cell, values);
|
|
447
|
-
}, newRows
|
|
458
|
+
}, item(idx, newRows));
|
|
448
459
|
currentRowIndex = ((currentRowIndex + 1) | 0);
|
|
449
460
|
}
|
|
450
461
|
}
|
|
@@ -934,7 +945,7 @@ export function ProcessParsing_getProcessGetter(processNameRoot, headers) {
|
|
|
934
945
|
let patternInput;
|
|
935
946
|
const inputs = inputGetter_1(matrix_4)(i_4);
|
|
936
947
|
const outputs = outputGetter_1(matrix_4)(i_4);
|
|
937
|
-
patternInput = (((length(inputs) === 1) && (length(outputs) === 2)) ? [ofArray_2([
|
|
948
|
+
patternInput = (((length(inputs) === 1) && (length(outputs) === 2)) ? [ofArray_2([item_1(0, inputs), item_1(0, inputs)]), outputs] : (((length(inputs) === 2) && (length(outputs) === 1)) ? [inputs, ofArray_2([item_1(0, outputs), item_1(0, outputs)])] : [inputs, outputs]));
|
|
938
949
|
return Process_make(void 0, pn, protocol, paramvalues, void 0, void 0, void 0, void 0, patternInput[0], patternInput[1], void 0);
|
|
939
950
|
});
|
|
940
951
|
}
|
|
@@ -995,7 +1006,7 @@ export function ProcessParsing_mergeIdenticalProcesses(processes) {
|
|
|
995
1006
|
const _arg = tupledArg[0];
|
|
996
1007
|
const processes_1 = tupledArg[1];
|
|
997
1008
|
const n = _arg[0];
|
|
998
|
-
const pVs =
|
|
1009
|
+
const pVs = item_1(0, processes_1).ParameterValues;
|
|
999
1010
|
const inputs = Option_fromValueWithDefault(empty(), collect((p) => defaultArg(p.Inputs, empty()), processes_1));
|
|
1000
1011
|
const outputs = Option_fromValueWithDefault(empty(), collect((p_1) => defaultArg(p_1.Outputs, empty()), processes_1));
|
|
1001
1012
|
return Process_create_Z42860F3E(void 0, (length(l) > 1) ? Process_composeName(n, i) : n, _arg[1], pVs, void 0, void 0, void 0, void 0, inputs, outputs);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { append, toArray, reduce, choose, map as map_1, delay, toList, length, findIndex, tryFindIndex } from "../../../fable_modules/fable-library.4.
|
|
1
|
+
import { append, toArray, reduce, choose, map as map_1, delay, toList, length, findIndex, tryFindIndex } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
2
2
|
import { Dict_tryFind } from "../Helper.js";
|
|
3
|
-
import { addToSet, addToDict } from "../../../fable_modules/fable-library.4.
|
|
4
|
-
import { toIterator, equals, comparePrimitives, stringHash, compare, disposeSafe, getEnumerator } from "../../../fable_modules/fable-library.4.
|
|
5
|
-
import { bind, map as map_3, unwrap, defaultArg, value as value_2 } from "../../../fable_modules/fable-library.4.
|
|
6
|
-
import { collect as collect_1, map as map_4, insertRangeInPlace, fold } from "../../../fable_modules/fable-library.4.
|
|
3
|
+
import { addToSet, addToDict } from "../../../fable_modules/fable-library-js.4.13.0/MapUtil.js";
|
|
4
|
+
import { toIterator, equals, comparePrimitives, stringHash, compare, disposeSafe, getEnumerator } from "../../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
5
|
+
import { bind, map as map_3, unwrap, defaultArg, value as value_2 } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
6
|
+
import { collect as collect_1, map as map_4, item, insertRangeInPlace, fold } from "../../../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
7
7
|
import { CompositeHeader } from "./CompositeHeader.js";
|
|
8
|
-
import { Array_groupBy, distinct } from "../../../fable_modules/fable-library.4.
|
|
9
|
-
import { FSharpSet__get_IsEmpty, ofSeq, intersect } from "../../../fable_modules/fable-library.4.
|
|
8
|
+
import { Array_groupBy, distinct } from "../../../fable_modules/fable-library-js.4.13.0/Seq2.js";
|
|
9
|
+
import { FSharpSet__get_IsEmpty, ofSeq, intersect } from "../../../fable_modules/fable-library-js.4.13.0/Set.js";
|
|
10
10
|
import { ArcTable } from "./ArcTable.js";
|
|
11
|
-
import { map as map_2, collect } from "../../../fable_modules/fable-library.4.
|
|
11
|
+
import { map as map_2, collect } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
12
12
|
import { Unchecked_fillMissingCells, ProcessParsing_groupProcesses, ProcessParsing_processToRows, ProcessParsing_alignByHeaders } from "./ArcTableAux.js";
|
|
13
|
-
import { tryFind, ofSeq as ofSeq_1 } from "../../../fable_modules/fable-library.4.
|
|
14
|
-
import { class_type } from "../../../fable_modules/fable-library.4.
|
|
13
|
+
import { tryFind, ofSeq as ofSeq_1 } from "../../../fable_modules/fable-library-js.4.13.0/Map.js";
|
|
14
|
+
import { class_type } from "../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* If a table with the given name exists in the TableList, returns it, else returns None.
|
|
@@ -433,7 +433,7 @@ export class ArcTables {
|
|
|
433
433
|
let collection, s, array;
|
|
434
434
|
const keepUnusedRefTables_1 = defaultArg(keepUnusedRefTables, false);
|
|
435
435
|
const usedTables = new Set([]);
|
|
436
|
-
const referenceTableMap = ofSeq_1(choose((t) => map_3((c) => [c.Cells
|
|
436
|
+
const referenceTableMap = ofSeq_1(choose((t) => map_3((c) => [item(0, c.Cells).AsFreeText, t], t.TryGetProtocolNameColumn()), referenceTables.Tables), {
|
|
437
437
|
Compare: comparePrimitives,
|
|
438
438
|
});
|
|
439
439
|
return new ArcTables((collection = ((s = map_4((t_3) => {
|