@nfdi4plants/arctrl 1.1.0 → 2.0.0-alpha.1
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 +53 -35
- package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
- package/Contract/ArcAssay.js +102 -0
- package/Contract/ArcInvestigation.js +78 -0
- package/Contract/ArcStudy.js +102 -0
- package/Contract/Contract.js +3 -3
- package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
- package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
- package/Core/Comment.js +97 -0
- package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
- package/Core/Conversion.js +1056 -0
- package/Core/Helper/Collections.js +318 -0
- package/Core/Helper/HashCodes.js +39 -0
- package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
- package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
- package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
- package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
- package/Core/OntologyAnnotation.js +186 -0
- package/Core/OntologySourceReference.js +92 -0
- package/Core/Person.js +194 -0
- package/Core/Process/ColumnIndex.js +248 -0
- package/Core/Process/Component.js +188 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
- package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
- package/Core/Process/Factor.js +109 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
- package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
- package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
- package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
- package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
- package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
- package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +24 -31
- package/Core/Publication.js +116 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +49 -155
- package/Core/Table/ArcTableAux.js +532 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +9 -8
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
- package/{Templates → Core}/Template.js +16 -17
- package/Core/Templates.js +84 -0
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +46 -8
- package/FileSystem/Path.js +10 -2
- package/Json/ARC.js +25 -0
- package/Json/Assay.js +202 -0
- package/Json/Comment.js +130 -0
- package/Json/ConverterOptions.js +18 -0
- package/Json/Decode.js +128 -0
- package/Json/Encode.js +45 -0
- package/Json/Investigation.js +220 -0
- package/Json/OntologyAnnotation.js +169 -0
- package/Json/OntologySourceReference.js +122 -0
- package/Json/Person.js +250 -0
- package/Json/Process/AssayMaterials.js +22 -0
- package/Json/Process/Component.js +79 -0
- package/Json/Process/Data.js +102 -0
- package/Json/Process/DataFile.js +81 -0
- package/Json/Process/Factor.js +48 -0
- package/Json/Process/FactorValue.js +53 -0
- package/Json/Process/Material.js +107 -0
- package/Json/Process/MaterialAttribute.js +45 -0
- package/Json/Process/MaterialAttributeValue.js +70 -0
- package/Json/Process/MaterialType.js +60 -0
- package/Json/Process/Process.js +107 -0
- package/Json/Process/ProcessInput.js +59 -0
- package/Json/Process/ProcessOutput.js +71 -0
- package/Json/Process/ProcessParameterValue.js +69 -0
- package/Json/Process/ProcessSequence.js +53 -0
- package/Json/Process/PropertyValue.js +82 -0
- package/Json/Process/Protocol.js +147 -0
- package/Json/Process/ProtocolParameter.js +45 -0
- package/Json/Process/Sample.js +134 -0
- package/Json/Process/Source.js +101 -0
- package/Json/Process/StudyMaterials.js +24 -0
- package/Json/Process/Value.js +42 -0
- package/Json/Publication.js +142 -0
- package/Json/StringTable.js +44 -0
- package/Json/Study.js +306 -0
- package/Json/Table/ArcTable.js +223 -0
- package/Json/Table/CellTable.js +40 -0
- package/Json/Table/CompositeCell.js +65 -0
- package/Json/Table/CompositeHeader.js +57 -0
- package/Json/Table/Compression.js +38 -0
- package/Json/Table/IOType.js +37 -0
- package/Json/Table/OATable.js +40 -0
- package/Json/Table/Templates.js +107 -0
- package/Json/context/rocrate/isa_assay_context.js +32 -0
- package/Json/context/rocrate/isa_comment_context.js +23 -0
- package/Json/context/rocrate/isa_component_context.js +24 -0
- package/Json/context/rocrate/isa_data_context.js +25 -0
- package/Json/context/rocrate/isa_factor_context.js +25 -0
- package/Json/context/rocrate/isa_factor_value_context.js +23 -0
- package/Json/context/rocrate/isa_investigation_context.js +33 -0
- package/Json/context/rocrate/isa_material_attribute_context.js +23 -0
- package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
- package/Json/context/rocrate/isa_material_context.js +26 -0
- package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/Json/context/rocrate/isa_organization_context.js +22 -0
- package/Json/context/rocrate/isa_person_context.js +33 -0
- package/Json/context/rocrate/isa_process_context.js +29 -0
- package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
- package/Json/context/rocrate/isa_protocol_context.js +28 -0
- package/Json/context/rocrate/isa_protocol_parameter_context.js +23 -0
- package/Json/context/rocrate/isa_publication_context.js +25 -0
- package/Json/context/rocrate/isa_sample_context.js +24 -0
- package/Json/context/rocrate/isa_source_context.js +25 -0
- package/Json/context/rocrate/isa_study_context.js +40 -0
- package/Json/context/rocrate/property_value_context.js +4 -0
- package/Json/context/rocrate/rocrate_context.js +23 -0
- package/Json.js +193 -0
- package/README.md +50 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
- package/Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +8 -8
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
- package/Spreadsheet/Metadata/Comment.js +71 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
- package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +34 -28
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
- package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
- package/Template.Web.js +27 -0
- package/WebRequest/WebRequest.Node.js +15 -0
- package/WebRequest/WebRequest.js +10 -29
- package/Xlsx.js +85 -0
- 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.3/Cells/FsCell.fs.js +14 -14
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +4 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
- 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.16.0}/Array.d.ts +4 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Array.js +124 -86
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
- package/fable_modules/fable-library-js.4.16.0/CHANGELOG.md +47 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -17
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Choice.js +0 -43
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.js +340 -42
- package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/fable_modules/fable-library-js.4.16.0/FSharp.Core.CompilerServices.js +27 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.js +3 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.js +3 -3
- package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.js +2 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.js +7 -7
- package/fable_modules/fable-library-js.4.16.0/Result.d.ts +37 -0
- package/fable_modules/fable-library-js.4.16.0/Result.js +165 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.js +2 -2
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.d.ts +1 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/String.js +8 -5
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +15 -7
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +46 -36
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.d.ts +9 -1
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/System.Text.js +60 -8
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Util.js +2 -13
- package/fable_modules/fable-library-js.4.16.0/big.d.ts +338 -0
- package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/package.json +4 -3
- package/fable_modules/project_cracked.json +1 -1
- package/index.js +14 -12
- package/package.json +1 -1
- package/Contracts/Contracts.ArcTypes.js +0 -268
- package/FileSystemTree.js +0 -51
- package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
- package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
- package/ISA/ISA/Builder/Types.js +0 -243
- package/ISA/ISA/Fable.js +0 -123
- package/ISA/ISA/Helper.js +0 -503
- package/ISA/ISA/JsonTypes/Assay.js +0 -620
- package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
- package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
- package/ISA/ISA/JsonTypes/Comment.js +0 -58
- package/ISA/ISA/JsonTypes/Component.js +0 -165
- package/ISA/ISA/JsonTypes/Factor.js +0 -128
- package/ISA/ISA/JsonTypes/Investigation.js +0 -204
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
- package/ISA/ISA/JsonTypes/Person.js +0 -137
- package/ISA/ISA/JsonTypes/Publication.js +0 -105
- package/ISA/ISA/JsonTypes/Study.js +0 -942
- package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
- package/ISA/ISA/UIHelper.js +0 -19
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -282
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -93
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -170
- package/ISA/ISA.Json/ArcTypes/ArcTable.js +0 -178
- package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -46
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -77
- package/ISA/ISA.Json/ArcTypes/CompositeHeader.js +0 -82
- package/ISA/ISA.Json/ArcTypes/IOType.js +0 -35
- package/ISA/ISA.Json/ArcTypes/OATable.js +0 -48
- package/ISA/ISA.Json/Assay.js +0 -105
- package/ISA/ISA.Json/Comment.js +0 -84
- package/ISA/ISA.Json/ConverterOptions.js +0 -33
- package/ISA/ISA.Json/Data.js +0 -271
- package/ISA/ISA.Json/Decode.js +0 -46
- package/ISA/ISA.Json/Factor.js +0 -194
- package/ISA/ISA.Json/GEncode.js +0 -15
- package/ISA/ISA.Json/Investigation.js +0 -114
- package/ISA/ISA.Json/Material.js +0 -233
- package/ISA/ISA.Json/Ontology.js +0 -223
- package/ISA/ISA.Json/Person.js +0 -204
- package/ISA/ISA.Json/Process.js +0 -291
- package/ISA/ISA.Json/Protocol.js +0 -242
- package/ISA/ISA.Json/Publication.js +0 -92
- package/ISA/ISA.Json/StringTable.js +0 -43
- package/ISA/ISA.Json/Study.js +0 -212
- 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/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +0 -59
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +0 -60
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
- package/Path.js +0 -10
- package/Templates/Template.Json.js +0 -83
- package/Templates/Template.Web.js +0 -27
- package/Templates/Templates.js +0 -82
- 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/fable-library.4.5.0/MapUtil.d.ts +0 -10
- /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Double.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Long.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/README.md +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library.4.5.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { singleton } from "../../../fable_modules/fable-library.4.5.0/AsyncBuilder.js";
|
|
2
|
-
import { validate } from "./Fable.js";
|
|
3
|
-
import { ValidationResult, ValidationResult_OfJSchemaOutput_Z6EC48F6B } from "./ValidationResult.js";
|
|
4
|
-
|
|
5
|
-
export function Validation_validate(schemaURL, objectString) {
|
|
6
|
-
return singleton.Delay(() => singleton.TryWith(singleton.Delay(() => singleton.Bind(validate(schemaURL, objectString), (_arg) => singleton.Return(ValidationResult_OfJSchemaOutput_Z6EC48F6B([_arg[0], _arg[1]])))), (_arg_1) => singleton.Return(new ValidationResult(1, [[_arg_1.message]]))));
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function Validation_validateAssay(assayString) {
|
|
10
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/assay_schema.json", assayString);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function Validation_validateComment(commentString) {
|
|
14
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/comment_schema.json", commentString);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function Validation_validateData(dataString) {
|
|
18
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/data_schema.json", dataString);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function Validation_validateFactor(factorString) {
|
|
22
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/factor_schema.json", factorString);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export function Validation_validateFactorValue(factorValueString) {
|
|
26
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/factor_value_schema.json", factorValueString);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function Validation_validateInvestigation(investigationString) {
|
|
30
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/investigation_schema.json", investigationString);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function Validation_validateMaterialAttribute(materialAttributeString) {
|
|
34
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/material_attribute_schema.json", materialAttributeString);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function Validation_validateMaterialAttributeValue(materialAttributeValueString) {
|
|
38
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/material_attribute_value_schema.json", materialAttributeValueString);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function Validation_validateMaterial(materialString) {
|
|
42
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/material_schema.json", materialString);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function Validation_validateOntologyAnnotation(ontologyAnnotationString) {
|
|
46
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/ontology_annotation_schema.json", ontologyAnnotationString);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function Validation_validateOntologySourceReference(ontologySourceReferenceString) {
|
|
50
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/ontology_source_reference_schema.json", ontologySourceReferenceString);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function Validation_validatePerson(personString) {
|
|
54
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/person_schema.json", personString);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function Validation_validateProcessParameterValue(processParameterValueString) {
|
|
58
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/process_parameter_value_schema.json", processParameterValueString);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function Validation_validateProcess(processString) {
|
|
62
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/process_schema.json", processString);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function Validation_validateProtocolParameter(protocolParameterString) {
|
|
66
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/protocol_parameter_schema.json", protocolParameterString);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function Validation_validateProtocol(protocolString) {
|
|
70
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/protocol_schema.json", protocolString);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function Validation_validatePublication(publicationString) {
|
|
74
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/publication_schema.json", publicationString);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function Validation_validateSample(sampleString) {
|
|
78
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/sample_schema.json", sampleString);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function Validation_validateSource(sourceString) {
|
|
82
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/source_schema.json", sourceString);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function Validation_validateStudy(studyString) {
|
|
86
|
-
return Validation_validate("https://raw.githubusercontent.com/HLWeil/isa-specs/anyof/source/_static/isajson/study_schema.json", studyString);
|
|
87
|
-
}
|
|
88
|
-
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Union } from "../../../fable_modules/fable-library.4.5.0/Types.js";
|
|
2
|
-
import { union_type, array_type, string_type } from "../../../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
3
|
-
|
|
4
|
-
export class ValidationResult extends Union {
|
|
5
|
-
constructor(tag, fields) {
|
|
6
|
-
super();
|
|
7
|
-
this.tag = tag;
|
|
8
|
-
this.fields = fields;
|
|
9
|
-
}
|
|
10
|
-
cases() {
|
|
11
|
-
return ["Ok", "Failed"];
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function ValidationResult_$reflection() {
|
|
16
|
-
return union_type("ARCtrl.ISA.Json.ValidationTypes.ValidationResult", [], ValidationResult, () => [[], [["Item", array_type(string_type)]]]);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function ValidationResult__get_Success(this$) {
|
|
20
|
-
if (this$.tag === 0) {
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export function ValidationResult__GetErrors(this$) {
|
|
29
|
-
if (this$.tag === 1) {
|
|
30
|
-
return this$.fields[0];
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
return [];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function ValidationResult_OfJSchemaOutput_Z6EC48F6B(output) {
|
|
38
|
-
if (output[0]) {
|
|
39
|
-
return new ValidationResult(0, []);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return new ValidationResult(1, [output[1]]);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { CompositeHeader, IOType } from "../../ISA/ArcTypes/CompositeHeader.js";
|
|
2
|
-
import { toString } from "../../../fable_modules/fable-library.4.5.0/Types.js";
|
|
3
|
-
import { toFsCells, fromFsCells } from "./CompositeHeader.js";
|
|
4
|
-
import { singleton as singleton_1, ofArray, item, map } from "../../../fable_modules/fable-library.4.5.0/List.js";
|
|
5
|
-
import { FsAddress__get_RowNumber } from "../../../fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js";
|
|
6
|
-
import { FsRangeAddress__get_LastAddress } from "../../../fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js";
|
|
7
|
-
import { FsRangeBase__get_RangeAddress } from "../../../fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js";
|
|
8
|
-
import { singleton, append, toList, exists, map as map_1, delay, toArray } from "../../../fable_modules/fable-library.4.5.0/Seq.js";
|
|
9
|
-
import { toFsCells as toFsCells_1, fromFsCells as fromFsCells_1 } from "./CompositeCell.js";
|
|
10
|
-
import { rangeDouble } from "../../../fable_modules/fable-library.4.5.0/Range.js";
|
|
11
|
-
import { CompositeColumn } from "../../ISA/ArcTypes/CompositeColumn.js";
|
|
12
|
-
import { map as map_2 } from "../../../fable_modules/fable-library.4.5.0/Array.js";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Checks if the column header is a deprecated IO Header. If so, fixes it.
|
|
16
|
-
*
|
|
17
|
-
* The old format of IO Headers was only the type of IO so, e.g. "Source Name" or "Raw Data File".
|
|
18
|
-
*
|
|
19
|
-
* A "Source Name" column will now be mapped to the propper "Input [Source Name]", and all other IO types will be mapped to "Output [<IO Type>]".
|
|
20
|
-
*/
|
|
21
|
-
export function fixDeprecatedIOHeader(col) {
|
|
22
|
-
const matchValue = IOType.ofString(col.Item(1).ValueAsString());
|
|
23
|
-
switch (matchValue.tag) {
|
|
24
|
-
case 6:
|
|
25
|
-
return col;
|
|
26
|
-
case 0: {
|
|
27
|
-
col.Item(1).SetValueAs(toString(new CompositeHeader(11, [new IOType(0, [])])));
|
|
28
|
-
return col;
|
|
29
|
-
}
|
|
30
|
-
default: {
|
|
31
|
-
col.Item(1).SetValueAs(toString(new CompositeHeader(12, [matchValue])));
|
|
32
|
-
return col;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function fromFsColumns(columns) {
|
|
38
|
-
const header = fromFsCells(map((c) => c.Item(1), columns));
|
|
39
|
-
const l = FsAddress__get_RowNumber(FsRangeAddress__get_LastAddress(FsRangeBase__get_RangeAddress(item(0, columns)))) | 0;
|
|
40
|
-
const cells_2 = toArray(delay(() => map_1((i) => fromFsCells_1(map((c_1) => c_1.Item(i), columns)), rangeDouble(2, 1, l))));
|
|
41
|
-
return CompositeColumn.create(header, cells_2);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function toFsColumns(column) {
|
|
45
|
-
const hasUnit = exists((c) => c.isUnitized, column.Cells);
|
|
46
|
-
const isTerm = column.Header.IsTermColumn;
|
|
47
|
-
const header = toFsCells(hasUnit, column.Header);
|
|
48
|
-
const cells = map_2((cell) => toFsCells_1(isTerm, hasUnit, cell), column.Cells);
|
|
49
|
-
if (hasUnit) {
|
|
50
|
-
return ofArray([toList(delay(() => append(singleton(item(0, header)), delay(() => map_1((i) => item(0, cells[i]), rangeDouble(0, 1, column.Cells.length - 1)))))), toList(delay(() => append(singleton(item(1, header)), delay(() => map_1((i_1) => item(1, cells[i_1]), rangeDouble(0, 1, column.Cells.length - 1)))))), toList(delay(() => append(singleton(item(2, header)), delay(() => map_1((i_2) => item(2, cells[i_2]), rangeDouble(0, 1, column.Cells.length - 1)))))), toList(delay(() => append(singleton(item(3, header)), delay(() => map_1((i_3) => item(3, cells[i_3]), rangeDouble(0, 1, column.Cells.length - 1))))))]);
|
|
51
|
-
}
|
|
52
|
-
else if (isTerm) {
|
|
53
|
-
return ofArray([toList(delay(() => append(singleton(item(0, header)), delay(() => map_1((i_4) => item(0, cells[i_4]), rangeDouble(0, 1, column.Cells.length - 1)))))), toList(delay(() => append(singleton(item(1, header)), delay(() => map_1((i_5) => item(1, cells[i_5]), rangeDouble(0, 1, column.Cells.length - 1)))))), toList(delay(() => append(singleton(item(2, header)), delay(() => map_1((i_6) => item(2, cells[i_6]), rangeDouble(0, 1, column.Cells.length - 1))))))]);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
return singleton_1(toList(delay(() => append(singleton(item(0, header)), delay(() => map_1((i_7) => item(0, cells[i_7]), rangeDouble(0, 1, column.Cells.length - 1)))))));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
@@ -1,60 +0,0 @@
|
|
|
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";
|
|
4
|
-
import { Option_fromValueWithDefault } from "./Conversions.js";
|
|
5
|
-
import { Comment$ } from "../../ISA/JsonTypes/Comment.js";
|
|
6
|
-
|
|
7
|
-
export const Comment_commentRegex = /(?<=Comment\[<).*(?=>\])/gu;
|
|
8
|
-
|
|
9
|
-
export const Comment_commentRegexNoAngleBrackets = /(?<=Comment\[).*(?=\])/gu;
|
|
10
|
-
|
|
11
|
-
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];
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return void 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}, key);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export function Comment_wrapCommentKey(k) {
|
|
30
|
-
return toText(printf("Comment[%s]"))(k);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export function Comment_fromString(k, v) {
|
|
34
|
-
const name = Option_fromValueWithDefault("", k);
|
|
35
|
-
const value = Option_fromValueWithDefault("", v);
|
|
36
|
-
return Comment$.make(void 0, name, value);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function Comment_toString(c) {
|
|
40
|
-
return [defaultArg(c.Name, ""), defaultArg(c.Value, "")];
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export const Remark_remarkRegex = /(?<=#).*/gu;
|
|
44
|
-
|
|
45
|
-
export function Remark_$007CRemark$007C_$007C(key) {
|
|
46
|
-
return bind((k) => {
|
|
47
|
-
const r = match(Remark_remarkRegex, k);
|
|
48
|
-
if (r != null) {
|
|
49
|
-
return r[0];
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
return void 0;
|
|
53
|
-
}
|
|
54
|
-
}, key);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function Remark_wrapRemark(r) {
|
|
58
|
-
return toText(printf("#%s"))(r);
|
|
59
|
-
}
|
|
60
|
-
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { reverse, cons, iterateIndexed, empty, ofArray, map, toArray, initialize, singleton, length } from "../../../fable_modules/fable-library.4.5.0/List.js";
|
|
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
|
-
import { OntologyAnnotation } from "../../ISA/JsonTypes/OntologyAnnotation.js";
|
|
4
|
-
import { Option_fromValueWithDefault } from "./Conversions.js";
|
|
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";
|
|
10
|
-
|
|
11
|
-
export function fromSparseTable(label, labelTSR, labelTAN, matrix) {
|
|
12
|
-
if ((matrix.ColumnCount === 0) && (length(matrix.CommentKeys) !== 0)) {
|
|
13
|
-
const comments = SparseTable_GetEmptyComments_651559CC(matrix);
|
|
14
|
-
return singleton(OntologyAnnotation.create(void 0, void 0, void 0, void 0, comments));
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
return initialize(matrix.ColumnCount, (i) => {
|
|
18
|
-
const comments_1 = Option_fromValueWithDefault([], toArray(map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, i])), matrix.CommentKeys)));
|
|
19
|
-
return OntologyAnnotation.fromString(unwrap(SparseTable__TryGetValue_11FD62A8(matrix, [label, i])), unwrap(SparseTable__TryGetValue_11FD62A8(matrix, [labelTSR, i])), unwrap(SparseTable__TryGetValue_11FD62A8(matrix, [labelTAN, i])), unwrap(comments_1));
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function toSparseTable(label, labelTSR, labelTAN, designs) {
|
|
25
|
-
const matrix = SparseTable_Create_Z2192E64B(void 0, ofArray([label, labelTAN, labelTSR]), void 0, length(designs) + 1);
|
|
26
|
-
let commentKeys = empty();
|
|
27
|
-
iterateIndexed((i, d) => {
|
|
28
|
-
const i_1 = (i + 1) | 0;
|
|
29
|
-
const oa = OntologyAnnotation.toString(d, true);
|
|
30
|
-
addToDict(matrix.Matrix, [label, i_1], oa.TermName);
|
|
31
|
-
addToDict(matrix.Matrix, [labelTAN, i_1], oa.TermAccessionNumber);
|
|
32
|
-
addToDict(matrix.Matrix, [labelTSR, i_1], oa.TermSourceREF);
|
|
33
|
-
const matchValue = d.Comments;
|
|
34
|
-
if (matchValue != null) {
|
|
35
|
-
const array = matchValue;
|
|
36
|
-
array.forEach((comment) => {
|
|
37
|
-
const patternInput = Comment_toString(comment);
|
|
38
|
-
const n = patternInput[0];
|
|
39
|
-
commentKeys = cons(n, commentKeys);
|
|
40
|
-
addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
}, designs);
|
|
44
|
-
return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
|
|
45
|
-
Equals: (x, y) => (x === y),
|
|
46
|
-
GetHashCode: stringHash,
|
|
47
|
-
})), matrix.ColumnCount);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function fromRows(prefix, label, labelTSR, labelTAN, lineNumber, rows) {
|
|
51
|
-
const labels = ofArray([label, labelTAN, labelTSR]);
|
|
52
|
-
const tupledArg = (prefix == null) ? SparseTable_FromRows_Z5579EC29(rows, labels, lineNumber) : SparseTable_FromRows_Z5579EC29(rows, labels, lineNumber, prefix);
|
|
53
|
-
return [tupledArg[0], tupledArg[1], tupledArg[2], fromSparseTable(label, labelTSR, labelTAN, tupledArg[3])];
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function toRows(prefix, label, labelTSR, labelTAN, designs) {
|
|
57
|
-
const m = toSparseTable(label, labelTSR, labelTAN, designs);
|
|
58
|
-
if (prefix == null) {
|
|
59
|
-
return SparseTable_ToRows_6A3D4534(m);
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
return SparseTable_ToRows_6A3D4534(m, prefix);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
package/Path.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { combine } from "./FileSystem/Path.js";
|
|
2
|
-
|
|
3
|
-
export function getAssayFolderPath(assayIdentifier) {
|
|
4
|
-
return combine("assays", assayIdentifier);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export function getStudyFolderPath(studyIdentifier) {
|
|
8
|
-
return combine("studies", studyIdentifier);
|
|
9
|
-
}
|
|
10
|
-
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { toString } from "../fable_modules/fable-library.4.5.0/Types.js";
|
|
2
|
-
import { dict, fromString, datetimeUtc, array as array_1, guid as guid_1, object as object_1, string, succeed, andThen } from "../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
|
|
3
|
-
import { uncurry2, uncurry3 } from "../fable_modules/fable-library.4.5.0/Util.js";
|
|
4
|
-
import { Template, Organisation } from "./Template.js";
|
|
5
|
-
import { ConverterOptions_$ctor } from "../ISA/ISA.Json/ConverterOptions.js";
|
|
6
|
-
import { decoder as decoder_1, encoder } from "../ISA/ISA.Json/Person.js";
|
|
7
|
-
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "../ISA/ISA.Json/Ontology.js";
|
|
8
|
-
import { toString as toString_1, datetime, list as list_1, guid, object } from "../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
|
|
9
|
-
import { ArcTable_decoder, ArcTable_encoder } from "../ISA/ISA.Json/ArcTypes/ArcTable.js";
|
|
10
|
-
import { map, delay, toList } from "../fable_modules/fable-library.4.5.0/Seq.js";
|
|
11
|
-
import { printf, toFail } from "../fable_modules/fable-library.4.5.0/String.js";
|
|
12
|
-
import { ofArray, map as map_1 } from "../fable_modules/fable-library.4.5.0/List.js";
|
|
13
|
-
import { FSharpMap__get_Values } from "../fable_modules/fable-library.4.5.0/Map.js";
|
|
14
|
-
import { defaultArg } from "../fable_modules/fable-library.4.5.0/Option.js";
|
|
15
|
-
|
|
16
|
-
export const Organisation_encode = toString;
|
|
17
|
-
|
|
18
|
-
export const Organisation_decode = (path_1) => ((value_1) => andThen(uncurry3((textValue) => {
|
|
19
|
-
const output = Organisation.ofString(textValue);
|
|
20
|
-
return (arg10$0040) => ((arg20$0040) => succeed(output, arg10$0040, arg20$0040));
|
|
21
|
-
}), string, path_1, value_1));
|
|
22
|
-
|
|
23
|
-
export function Template_encode(template) {
|
|
24
|
-
let personEncoder;
|
|
25
|
-
const options = ConverterOptions_$ctor();
|
|
26
|
-
personEncoder = ((oa) => encoder(options, oa));
|
|
27
|
-
let oaEncoder;
|
|
28
|
-
const options_1 = ConverterOptions_$ctor();
|
|
29
|
-
oaEncoder = ((oa_1) => OntologyAnnotation_encoder(options_1, oa_1));
|
|
30
|
-
return object([["id", guid(template.Id)], ["table", ArcTable_encoder(template.Table)], ["name", template.Name], ["description", template.Description], ["organisation", Organisation_encode(template.Organisation)], ["version", template.Version], ["authors", list_1(toList(delay(() => map(personEncoder, template.Authors))))], ["endpoint_repositories", list_1(toList(delay(() => map(oaEncoder, template.EndpointRepositories))))], ["tags", list_1(toList(delay(() => map(oaEncoder, template.Tags))))], ["last_updated", datetime(template.LastUpdated)]]);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const Template_decode = (() => {
|
|
34
|
-
const personDecoder = decoder_1(ConverterOptions_$ctor());
|
|
35
|
-
const oaDecoder = OntologyAnnotation_decoder(ConverterOptions_$ctor());
|
|
36
|
-
return (path_8) => ((v) => object_1((get$) => {
|
|
37
|
-
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, objectArg_6, objectArg_7, objectArg_8, objectArg_9;
|
|
38
|
-
return Template.create((objectArg = get$.Required, objectArg.Field("id", guid_1)), (objectArg_1 = get$.Required, objectArg_1.Field("table", uncurry2(ArcTable_decoder))), (objectArg_2 = get$.Required, objectArg_2.Field("name", string)), (objectArg_3 = get$.Required, objectArg_3.Field("description", string)), (objectArg_4 = get$.Required, objectArg_4.Field("organisation", uncurry2(Organisation_decode))), (objectArg_5 = get$.Required, objectArg_5.Field("version", string)), (objectArg_6 = get$.Required, objectArg_6.Field("authors", (path_4, value_4) => array_1(uncurry2(personDecoder), path_4, value_4))), (objectArg_7 = get$.Required, objectArg_7.Field("endpoint_repositories", (path_5, value_5) => array_1(uncurry2(oaDecoder), path_5, value_5))), (objectArg_8 = get$.Required, objectArg_8.Field("tags", (path_6, value_6) => array_1(uncurry2(oaDecoder), path_6, value_6))), (objectArg_9 = get$.Required, objectArg_9.Field("last_updated", datetimeUtc)));
|
|
39
|
-
}, path_8, v));
|
|
40
|
-
})();
|
|
41
|
-
|
|
42
|
-
export function Template_fromJsonString(jsonString) {
|
|
43
|
-
const matchValue = fromString(uncurry2(Template_decode), jsonString);
|
|
44
|
-
if (matchValue.tag === 1) {
|
|
45
|
-
return toFail(printf("Error. Given json string cannot be parsed to Template: %A"))(matchValue.fields[0]);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return matchValue.fields[0];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function Template_toJsonString(spaces, template) {
|
|
53
|
-
return toString_1(spaces, Template_encode(template));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function Templates_encode(templateList) {
|
|
57
|
-
return object(map_1((tupledArg) => [tupledArg[0], Template_encode(tupledArg[1])], ofArray(templateList)));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export const Templates_decode = (() => {
|
|
61
|
-
const d = dict(uncurry2(Template_decode));
|
|
62
|
-
return (value) => fromString(uncurry2(d), value);
|
|
63
|
-
})();
|
|
64
|
-
|
|
65
|
-
export function Templates_fromJsonString(jsonString) {
|
|
66
|
-
const matchValue = Templates_decode(jsonString);
|
|
67
|
-
if (matchValue.tag === 1) {
|
|
68
|
-
return toFail(printf("Error. Given json string cannot be parsed to Templates map: %A"))(matchValue.fields[0]);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return Array.from(FSharpMap__get_Values(matchValue.fields[0]));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function Templates_toJsonString(spaces, templateList) {
|
|
76
|
-
return toString_1(spaces, Templates_encode(templateList));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function ARCtrl_Template_Template__Template_ToJson_71136F3F(this$, spaces) {
|
|
80
|
-
const spaces_1 = defaultArg(spaces, 0) | 0;
|
|
81
|
-
return (template) => Template_toJsonString(spaces_1, template);
|
|
82
|
-
}
|
|
83
|
-
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defaultArg } from "../fable_modules/fable-library.4.5.0/Option.js";
|
|
2
|
-
import { singleton } from "../fable_modules/fable-library.4.5.0/AsyncBuilder.js";
|
|
3
|
-
import { downloadFile } from "../WebRequest/WebRequest.js";
|
|
4
|
-
import { Templates_fromJsonString } from "./Template.Json.js";
|
|
5
|
-
import { startAsPromise } from "../fable_modules/fable-library.4.5.0/Async.js";
|
|
6
|
-
import { class_type } from "../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
7
|
-
|
|
8
|
-
export function getTemplates(url) {
|
|
9
|
-
const url_1 = defaultArg(url, "https://github.com/nfdi4plants/Swate-templates/releases/download/latest/templates.json");
|
|
10
|
-
return singleton.Delay(() => singleton.Bind(downloadFile(url_1), (_arg) => {
|
|
11
|
-
const mapResult = Templates_fromJsonString(_arg);
|
|
12
|
-
return singleton.Return(mapResult);
|
|
13
|
-
}));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export class JsWeb {
|
|
17
|
-
constructor() {
|
|
18
|
-
}
|
|
19
|
-
static getTemplates(url) {
|
|
20
|
-
return startAsPromise(singleton.Delay(() => singleton.Bind(getTemplates(url), (_arg) => singleton.Return(_arg))));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function JsWeb_$reflection() {
|
|
25
|
-
return class_type("ARCtrl.Template.Web.JsWeb", void 0, JsWeb);
|
|
26
|
-
}
|
|
27
|
-
|
package/Templates/Templates.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { defaultArg } from "../fable_modules/fable-library.4.5.0/Option.js";
|
|
2
|
-
import { append, addRangeInPlace, collect, contains as contains_1 } from "../fable_modules/fable-library.4.5.0/Array.js";
|
|
3
|
-
import { uncurry2, safeHash, equals } from "../fable_modules/fable-library.4.5.0/Util.js";
|
|
4
|
-
import { Array_distinct } from "../fable_modules/fable-library.4.5.0/Seq2.js";
|
|
5
|
-
import { class_type } from "../fable_modules/fable-library.4.5.0/Reflection.js";
|
|
6
|
-
|
|
7
|
-
export function TemplatesAux_getComparer(matchAll) {
|
|
8
|
-
if (defaultArg(matchAll, false)) {
|
|
9
|
-
return (e) => ((e_1) => (e && e_1));
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
return (e_2) => ((e_3) => (e_2 || e_3));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function TemplatesAux_filterOnTags(tagGetter, queryTags, comparer, templates) {
|
|
17
|
-
return templates.filter((t) => {
|
|
18
|
-
const templateTags = tagGetter(t);
|
|
19
|
-
let isValid = void 0;
|
|
20
|
-
for (let idx = 0; idx <= (queryTags.length - 1); idx++) {
|
|
21
|
-
const contains = contains_1(queryTags[idx], templateTags, {
|
|
22
|
-
Equals: equals,
|
|
23
|
-
GetHashCode: safeHash,
|
|
24
|
-
});
|
|
25
|
-
const isValid_1 = isValid;
|
|
26
|
-
if (isValid_1 != null) {
|
|
27
|
-
const maybe = isValid_1;
|
|
28
|
-
isValid = comparer(maybe, contains);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
isValid = contains;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return defaultArg(isValid, false);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export class Templates {
|
|
39
|
-
constructor() {
|
|
40
|
-
}
|
|
41
|
-
static getDistinctTags(templates) {
|
|
42
|
-
return Array_distinct(collect((t) => t.Tags, templates), {
|
|
43
|
-
Equals: equals,
|
|
44
|
-
GetHashCode: safeHash,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
static getDistinctEndpointRepositories(templates) {
|
|
48
|
-
return Array_distinct(collect((t) => t.EndpointRepositories, templates), {
|
|
49
|
-
Equals: equals,
|
|
50
|
-
GetHashCode: safeHash,
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
static getDistinctOntologyAnnotations(templates) {
|
|
54
|
-
const oas = [];
|
|
55
|
-
for (let idx = 0; idx <= (templates.length - 1); idx++) {
|
|
56
|
-
const t = templates[idx];
|
|
57
|
-
addRangeInPlace(t.Tags, oas);
|
|
58
|
-
addRangeInPlace(t.EndpointRepositories, oas);
|
|
59
|
-
}
|
|
60
|
-
return Array_distinct(Array.from(oas), {
|
|
61
|
-
Equals: equals,
|
|
62
|
-
GetHashCode: safeHash,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
static filterByTags(queryTags, matchAll) {
|
|
66
|
-
return (templates) => TemplatesAux_filterOnTags((t) => t.Tags, queryTags, uncurry2(TemplatesAux_getComparer(matchAll)), templates);
|
|
67
|
-
}
|
|
68
|
-
static filterByEndpointRepositories(queryTags, matchAll) {
|
|
69
|
-
return (templates) => TemplatesAux_filterOnTags((t) => t.EndpointRepositories, queryTags, uncurry2(TemplatesAux_getComparer(matchAll)), templates);
|
|
70
|
-
}
|
|
71
|
-
static filterByOntologyAnnotation(queryTags, matchAll) {
|
|
72
|
-
return (templates) => TemplatesAux_filterOnTags((t) => append(t.Tags, t.EndpointRepositories), queryTags, uncurry2(TemplatesAux_getComparer(matchAll)), templates);
|
|
73
|
-
}
|
|
74
|
-
static filterByDataPLANT(templates) {
|
|
75
|
-
return templates.filter((t) => t.Organisation.IsOfficial());
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function Templates_$reflection() {
|
|
80
|
-
return class_type("ARCtrl.Template.Templates", void 0, Templates);
|
|
81
|
-
}
|
|
82
|
-
|