@nfdi4plants/arctrl 1.2.0 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +13 -13
- package/Core/Publication.js +116 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +43 -149
- 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 +6 -6
- 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/{ISA/ISA.Json/ArcTypes → Json/Table}/ArcTable.js +53 -49
- package/Json/Table/CellTable.js +40 -0
- package/Json/Table/CompositeCell.js +65 -0
- package/{ISA/ISA.Json/ArcTypes → Json/Table}/CompositeHeader.js +22 -19
- 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/{ISA/ISA.Json → Json}/context/rocrate/isa_investigation_context.js +5 -5
- package/{ISA/ISA.Json → Json}/context/rocrate/isa_material_attribute_context.js +4 -4
- 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/{ISA/ISA.Json → Json}/context/rocrate/isa_protocol_parameter_context.js +4 -4
- 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 +33 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeColumn.js +10 -10
- 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 +7 -7
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Comment.js +5 -5
- 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 +23 -22
- 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 +2 -2
- package/WebRequest/WebRequest.js +2 -2
- 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 +3 -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.js +19 -19
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +5 -5
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +2 -2
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +1 -1
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +2 -2
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/CHANGELOG.md +18 -0
- 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-js.4.13.0 → fable-library-js.4.16.0}/Date.js +337 -40
- package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.js +2 -13
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/package.json +1 -1
- 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 -505
- 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 -152
- 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 -303
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -122
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -203
- package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -40
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -62
- package/ISA/ISA.Json/ArcTypes/IOType.js +0 -33
- package/ISA/ISA.Json/ArcTypes/OATable.js +0 -42
- package/ISA/ISA.Json/Assay.js +0 -129
- package/ISA/ISA.Json/Comment.js +0 -80
- package/ISA/ISA.Json/ConverterOptions.js +0 -51
- package/ISA/ISA.Json/Data.js +0 -253
- package/ISA/ISA.Json/Decode.js +0 -61
- package/ISA/ISA.Json/Factor.js +0 -194
- package/ISA/ISA.Json/GEncode.js +0 -40
- package/ISA/ISA.Json/Investigation.js +0 -89
- package/ISA/ISA.Json/Material.js +0 -232
- package/ISA/ISA.Json/Ontology.js +0 -200
- package/ISA/ISA.Json/Person.js +0 -186
- package/ISA/ISA.Json/Process.js +0 -305
- package/ISA/ISA.Json/Protocol.js +0 -281
- package/ISA/ISA.Json/Publication.js +0 -86
- package/ISA/ISA.Json/StringTable.js +0 -44
- package/ISA/ISA.Json/Study.js +0 -186
- package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +0 -34
- package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +0 -23
- package/ISA/ISA.Json/context/rocrate/isa_component_context.js +0 -24
- package/ISA/ISA.Json/context/rocrate/isa_data_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_material_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +0 -22
- package/ISA/ISA.Json/context/rocrate/isa_person_context.js +0 -31
- package/ISA/ISA.Json/context/rocrate/isa_process_context.js +0 -31
- package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +0 -30
- package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +0 -27
- package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_source_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_study_context.js +0 -42
- package/ISA/ISA.Json/context/rocrate/rocrate_context.js +0 -25
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
- package/Path.js +0 -10
- package/Templates/Template.Json.js +0 -90
- package/Templates/Template.Web.js +0 -27
- package/Templates/Templates.js +0 -82
- package/fable_modules/fable-library-js.4.13.0/MapUtil.d.ts +0 -10
- /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/README.md +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { union_type, string_type } from "../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
1
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
2
|
+
import { OntologyAnnotation_$reflection, OntologyAnnotation } from "../OntologyAnnotation.js";
|
|
3
|
+
import { Union } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
4
|
+
import { union_type, string_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
6
5
|
|
|
7
6
|
export class CompositeCell extends Union {
|
|
8
7
|
constructor(tag, fields) {
|
|
@@ -13,69 +12,6 @@ export class CompositeCell extends Union {
|
|
|
13
12
|
cases() {
|
|
14
13
|
return ["Term", "FreeText", "Unitized"];
|
|
15
14
|
}
|
|
16
|
-
static fromValue(value, unit) {
|
|
17
|
-
let matchResult, t, i, i_1, u, f, f_1, u_1, s;
|
|
18
|
-
switch (value.tag) {
|
|
19
|
-
case 1: {
|
|
20
|
-
if (unit != null) {
|
|
21
|
-
matchResult = 2;
|
|
22
|
-
i_1 = value.fields[0];
|
|
23
|
-
u = unit;
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
matchResult = 1;
|
|
27
|
-
i = value.fields[0];
|
|
28
|
-
}
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
case 2: {
|
|
32
|
-
if (unit != null) {
|
|
33
|
-
matchResult = 4;
|
|
34
|
-
f_1 = value.fields[0];
|
|
35
|
-
u_1 = unit;
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
matchResult = 3;
|
|
39
|
-
f = value.fields[0];
|
|
40
|
-
}
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
case 3: {
|
|
44
|
-
if (unit == null) {
|
|
45
|
-
matchResult = 5;
|
|
46
|
-
s = value.fields[0];
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
matchResult = 6;
|
|
50
|
-
}
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
default:
|
|
54
|
-
if (unit == null) {
|
|
55
|
-
matchResult = 0;
|
|
56
|
-
t = value.fields[0];
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
matchResult = 6;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
switch (matchResult) {
|
|
63
|
-
case 0:
|
|
64
|
-
return new CompositeCell(0, [t]);
|
|
65
|
-
case 1:
|
|
66
|
-
return new CompositeCell(1, [int32ToString(i)]);
|
|
67
|
-
case 2:
|
|
68
|
-
return new CompositeCell(2, [int32ToString(i_1), u]);
|
|
69
|
-
case 3:
|
|
70
|
-
return new CompositeCell(1, [f.toString()]);
|
|
71
|
-
case 4:
|
|
72
|
-
return new CompositeCell(2, [f_1.toString(), u_1]);
|
|
73
|
-
case 5:
|
|
74
|
-
return new CompositeCell(1, [s]);
|
|
75
|
-
default:
|
|
76
|
-
throw new Error("could not convert value to cell, invalid combination of value and unit");
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
15
|
get isUnitized() {
|
|
80
16
|
const this$ = this;
|
|
81
17
|
return this$.tag === 2;
|
|
@@ -109,11 +45,11 @@ export class CompositeCell extends Union {
|
|
|
109
45
|
}
|
|
110
46
|
ToUnitizedCell() {
|
|
111
47
|
const this$ = this;
|
|
112
|
-
return (this$.tag === 1) ? (new CompositeCell(2, ["", OntologyAnnotation.create(
|
|
48
|
+
return (this$.tag === 1) ? (new CompositeCell(2, ["", OntologyAnnotation.create(this$.fields[0])])) : ((this$.tag === 0) ? (new CompositeCell(2, ["", this$.fields[0]])) : this$);
|
|
113
49
|
}
|
|
114
50
|
ToTermCell() {
|
|
115
51
|
const this$ = this;
|
|
116
|
-
return (this$.tag === 2) ? (new CompositeCell(0, [this$.fields[1]])) : ((this$.tag === 1) ? (new CompositeCell(0, [OntologyAnnotation.create(
|
|
52
|
+
return (this$.tag === 2) ? (new CompositeCell(0, [this$.fields[1]])) : ((this$.tag === 1) ? (new CompositeCell(0, [OntologyAnnotation.create(this$.fields[0])])) : this$);
|
|
117
53
|
}
|
|
118
54
|
ToFreeTextCell() {
|
|
119
55
|
const this$ = this;
|
|
@@ -150,26 +86,33 @@ export class CompositeCell extends Union {
|
|
|
150
86
|
return new CompositeCell(0, [oa]);
|
|
151
87
|
}
|
|
152
88
|
static createTermFromString(name, tsr, tan) {
|
|
153
|
-
return new CompositeCell(0, [OntologyAnnotation.
|
|
89
|
+
return new CompositeCell(0, [OntologyAnnotation.create(name, tsr, tan)]);
|
|
154
90
|
}
|
|
155
91
|
static createUnitized(value, oa) {
|
|
156
|
-
return new CompositeCell(2, [value, defaultArg(oa, OntologyAnnotation
|
|
92
|
+
return new CompositeCell(2, [value, defaultArg(oa, new OntologyAnnotation())]);
|
|
157
93
|
}
|
|
158
94
|
static createUnitizedFromString(value, name, tsr, tan) {
|
|
159
|
-
const tupledArg = [value, OntologyAnnotation.
|
|
95
|
+
const tupledArg = [value, OntologyAnnotation.create(name, tsr, tan)];
|
|
160
96
|
return new CompositeCell(2, [tupledArg[0], tupledArg[1]]);
|
|
161
97
|
}
|
|
162
98
|
static createFreeText(value) {
|
|
163
99
|
return new CompositeCell(1, [value]);
|
|
164
100
|
}
|
|
165
101
|
static get emptyTerm() {
|
|
166
|
-
return new CompositeCell(0, [OntologyAnnotation
|
|
102
|
+
return new CompositeCell(0, [new OntologyAnnotation()]);
|
|
167
103
|
}
|
|
168
104
|
static get emptyFreeText() {
|
|
169
105
|
return new CompositeCell(1, [""]);
|
|
170
106
|
}
|
|
171
107
|
static get emptyUnitized() {
|
|
172
|
-
return new CompositeCell(2, ["", OntologyAnnotation
|
|
108
|
+
return new CompositeCell(2, ["", new OntologyAnnotation()]);
|
|
109
|
+
}
|
|
110
|
+
UpdateWithOA(oa) {
|
|
111
|
+
const this$ = this;
|
|
112
|
+
return (this$.tag === 2) ? CompositeCell.createUnitized(this$.fields[0], oa) : ((this$.tag === 1) ? CompositeCell.createFreeText(oa.NameText) : CompositeCell.createTerm(oa));
|
|
113
|
+
}
|
|
114
|
+
static updateWithOA(oa, cell) {
|
|
115
|
+
return cell.UpdateWithOA(oa);
|
|
173
116
|
}
|
|
174
117
|
toString() {
|
|
175
118
|
const this$ = this;
|
|
@@ -187,6 +130,6 @@ export class CompositeCell extends Union {
|
|
|
187
130
|
}
|
|
188
131
|
|
|
189
132
|
export function CompositeCell_$reflection() {
|
|
190
|
-
return union_type("ARCtrl.
|
|
133
|
+
return union_type("ARCtrl.CompositeCell", [], CompositeCell, () => [[["Item", OntologyAnnotation_$reflection()]], [["Item", string_type]], [["Item1", string_type], ["Item2", OntologyAnnotation_$reflection()]]]);
|
|
191
134
|
}
|
|
192
135
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defaultArg } from "
|
|
2
|
-
import { item } from "
|
|
3
|
-
import { fold, empty, singleton, collect, delay, toArray } from "
|
|
1
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
2
|
+
import { item } from "../../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
3
|
+
import { fold, empty, singleton, collect, delay, toArray } from "../../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
4
4
|
import { CompositeCell_$reflection, CompositeCell } from "./CompositeCell.js";
|
|
5
|
-
import { Record } from "
|
|
5
|
+
import { Record } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
6
6
|
import { CompositeHeader_$reflection } from "./CompositeHeader.js";
|
|
7
|
-
import { record_type, array_type } from "
|
|
7
|
+
import { record_type, array_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
8
8
|
|
|
9
9
|
export class CompositeColumn extends Record {
|
|
10
10
|
constructor(Header, Cells) {
|
|
@@ -65,6 +65,6 @@ export class CompositeColumn extends Record {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export function CompositeColumn_$reflection() {
|
|
68
|
-
return record_type("ARCtrl.
|
|
68
|
+
return record_type("ARCtrl.CompositeColumn", [], CompositeColumn, () => [["Header", CompositeHeader_$reflection()], ["Cells", array_type(CompositeCell_$reflection())]]);
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { map } from "
|
|
2
|
-
import { union_type, string_type, getUnionCases, name } from "
|
|
3
|
-
import { Union, toString } from "
|
|
4
|
-
import { ActivePatterns_$007CTermColumn$007C_$007C, Pattern_OutputPattern, Pattern_InputPattern, ActivePatterns_$007CRegex$007C_$007C, tryParseIOTypeHeader } from "../Regex.js";
|
|
5
|
-
import { equals } from "
|
|
6
|
-
import { printf, toFail } from "
|
|
7
|
-
import { OntologyAnnotation_$reflection, OntologyAnnotation } from "../
|
|
8
|
-
import { ProtocolParameter } from "../JsonTypes/ProtocolParameter.js";
|
|
9
|
-
import { Factor } from "../JsonTypes/Factor.js";
|
|
10
|
-
import { MaterialAttribute_create_Z6C54B221 } from "../JsonTypes/MaterialAttribute.js";
|
|
11
|
-
import { Component_create_61502994 } from "../JsonTypes/Component.js";
|
|
1
|
+
import { map } from "../../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
2
|
+
import { union_type, string_type, getUnionCases, name } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
3
|
+
import { Union, toString } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
4
|
+
import { ActivePatterns_$007CTermColumn$007C_$007C, Pattern_OutputPattern, Pattern_InputPattern, ActivePatterns_$007CRegex$007C_$007C, tryParseIOTypeHeader } from "../Helper/Regex.js";
|
|
5
|
+
import { equals } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
6
|
+
import { printf, toFail } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
7
|
+
import { OntologyAnnotation_$reflection, OntologyAnnotation } from "../OntologyAnnotation.js";
|
|
12
8
|
|
|
13
9
|
export class IOType extends Union {
|
|
14
10
|
constructor(tag, fields) {
|
|
@@ -239,7 +235,7 @@ export class IOType extends Union {
|
|
|
239
235
|
}
|
|
240
236
|
|
|
241
237
|
export function IOType_$reflection() {
|
|
242
|
-
return union_type("ARCtrl.
|
|
238
|
+
return union_type("ARCtrl.IOType", [], IOType, () => [[], [], [], [], [], [], [["Item", string_type]]]);
|
|
243
239
|
}
|
|
244
240
|
|
|
245
241
|
export class CompositeHeader extends Union {
|
|
@@ -263,7 +259,7 @@ export class CompositeHeader extends Union {
|
|
|
263
259
|
}
|
|
264
260
|
ToTerm() {
|
|
265
261
|
const this$ = this;
|
|
266
|
-
return (this$.tag === 2) ? this$.fields[0] : ((this$.tag === 1) ? this$.fields[0] : ((this$.tag === 0) ? this$.fields[0] : ((this$.tag === 4) ? OntologyAnnotation.
|
|
262
|
+
return (this$.tag === 2) ? this$.fields[0] : ((this$.tag === 1) ? this$.fields[0] : ((this$.tag === 0) ? this$.fields[0] : ((this$.tag === 4) ? OntologyAnnotation.create(toString(this$), void 0, this$.GetFeaturedColumnAccession) : ((this$.tag === 8) ? OntologyAnnotation.create(toString(this$)) : ((this$.tag === 5) ? OntologyAnnotation.create(toString(this$)) : ((this$.tag === 6) ? OntologyAnnotation.create(toString(this$)) : ((this$.tag === 7) ? OntologyAnnotation.create(toString(this$)) : ((this$.tag === 9) ? OntologyAnnotation.create(toString(this$)) : ((this$.tag === 10) ? OntologyAnnotation.create(toString(this$)) : ((this$.tag === 11) ? OntologyAnnotation.create(toString(this$)) : ((this$.tag === 12) ? OntologyAnnotation.create(toString(this$)) : ((this$.tag === 13) ? OntologyAnnotation.create(toString(this$)) : this$.fields[0]))))))))))));
|
|
267
263
|
}
|
|
268
264
|
static OfHeaderString(str) {
|
|
269
265
|
const matchValue = str.trim();
|
|
@@ -288,16 +284,16 @@ export class CompositeHeader extends Union {
|
|
|
288
284
|
switch (matchValue_1) {
|
|
289
285
|
case "Parameter":
|
|
290
286
|
case "Parameter Value":
|
|
291
|
-
return new CompositeHeader(3, [OntologyAnnotation.
|
|
287
|
+
return new CompositeHeader(3, [OntologyAnnotation.create(r_2.TermName)]);
|
|
292
288
|
case "Factor":
|
|
293
289
|
case "Factor Value":
|
|
294
|
-
return new CompositeHeader(2, [OntologyAnnotation.
|
|
290
|
+
return new CompositeHeader(2, [OntologyAnnotation.create(r_2.TermName)]);
|
|
295
291
|
case "Characteristic":
|
|
296
292
|
case "Characteristics":
|
|
297
293
|
case "Characteristics Value":
|
|
298
|
-
return new CompositeHeader(1, [OntologyAnnotation.
|
|
294
|
+
return new CompositeHeader(1, [OntologyAnnotation.create(r_2.TermName)]);
|
|
299
295
|
case "Component":
|
|
300
|
-
return new CompositeHeader(0, [OntologyAnnotation.
|
|
296
|
+
return new CompositeHeader(0, [OntologyAnnotation.create(r_2.TermName)]);
|
|
301
297
|
default:
|
|
302
298
|
return new CompositeHeader(13, [str]);
|
|
303
299
|
}
|
|
@@ -545,22 +541,6 @@ export class CompositeHeader extends Union {
|
|
|
545
541
|
return void 0;
|
|
546
542
|
}
|
|
547
543
|
}
|
|
548
|
-
TryParameter() {
|
|
549
|
-
const this$ = this;
|
|
550
|
-
return (this$.tag === 3) ? ProtocolParameter.create(void 0, this$.fields[0]) : void 0;
|
|
551
|
-
}
|
|
552
|
-
TryFactor() {
|
|
553
|
-
const this$ = this;
|
|
554
|
-
return (this$.tag === 2) ? Factor.create(void 0, void 0, this$.fields[0]) : void 0;
|
|
555
|
-
}
|
|
556
|
-
TryCharacteristic() {
|
|
557
|
-
const this$ = this;
|
|
558
|
-
return (this$.tag === 1) ? MaterialAttribute_create_Z6C54B221(void 0, this$.fields[0]) : void 0;
|
|
559
|
-
}
|
|
560
|
-
TryComponent() {
|
|
561
|
-
const this$ = this;
|
|
562
|
-
return (this$.tag === 0) ? Component_create_61502994(void 0, void 0, void 0, this$.fields[0]) : void 0;
|
|
563
|
-
}
|
|
564
544
|
GetUITooltip() {
|
|
565
545
|
const this$ = this;
|
|
566
546
|
return CompositeHeader.getUITooltip(this$);
|
|
@@ -750,6 +730,6 @@ export class CompositeHeader extends Union {
|
|
|
750
730
|
}
|
|
751
731
|
|
|
752
732
|
export function CompositeHeader_$reflection() {
|
|
753
|
-
return union_type("ARCtrl.
|
|
733
|
+
return union_type("ARCtrl.CompositeHeader", [], CompositeHeader, () => [[["Item", OntologyAnnotation_$reflection()]], [["Item", OntologyAnnotation_$reflection()]], [["Item", OntologyAnnotation_$reflection()]], [["Item", OntologyAnnotation_$reflection()]], [], [], [], [], [], [], [], [["Item", IOType_$reflection()]], [["Item", IOType_$reflection()]], [["Item", string_type]]]);
|
|
754
734
|
}
|
|
755
735
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Union } from "../fable_modules/fable-library-js.4.
|
|
3
|
-
import { class_type, union_type, string_type } from "../fable_modules/fable-library-js.4.
|
|
4
|
-
import { defaultArg, unwrap } from "../fable_modules/fable-library-js.4.
|
|
5
|
-
import { newGuid } from "../fable_modules/fable-library-js.4.
|
|
6
|
-
import { ArcTable } from "
|
|
7
|
-
import { SemVer_tryOfString_Z721C83C5 } from "
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { safeHash, equals } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
2
|
+
import { Union } from "../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
3
|
+
import { class_type, union_type, string_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
4
|
+
import { defaultArg, unwrap } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
5
|
+
import { newGuid } from "../fable_modules/fable-library-js.4.16.0/Guid.js";
|
|
6
|
+
import { ArcTable } from "./Table/ArcTable.js";
|
|
7
|
+
import { SemVer_tryOfString_Z721C83C5 } from "./Helper/SemVer.js";
|
|
8
|
+
import { hashDateTime, boxHashSeq, boxHashArray } from "./Helper/HashCodes.js";
|
|
9
|
+
import { now } from "../fable_modules/fable-library-js.4.16.0/Date.js";
|
|
10
10
|
|
|
11
11
|
export class Organisation extends Union {
|
|
12
12
|
constructor(tag, fields) {
|
|
@@ -31,12 +31,11 @@ export class Organisation extends Union {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export function Organisation_$reflection() {
|
|
34
|
-
return union_type("ARCtrl.
|
|
34
|
+
return union_type("ARCtrl.Organisation", [], Organisation, () => [[], [["Item", string_type]]]);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export class Template {
|
|
38
38
|
constructor(id, table, name, description, organisation, version, authors, repos, tags, lastUpdated) {
|
|
39
|
-
let copyOfStruct;
|
|
40
39
|
const name_1 = defaultArg(name, "");
|
|
41
40
|
const description_1 = defaultArg(description, "");
|
|
42
41
|
const organisation_1 = defaultArg(organisation, new Organisation(1, ["Custom Organisation"]));
|
|
@@ -44,7 +43,7 @@ export class Template {
|
|
|
44
43
|
const authors_1 = defaultArg(authors, []);
|
|
45
44
|
const repos_1 = defaultArg(repos, []);
|
|
46
45
|
const tags_1 = defaultArg(tags, []);
|
|
47
|
-
const lastUpdated_1 = defaultArg(lastUpdated,
|
|
46
|
+
const lastUpdated_1 = defaultArg(lastUpdated, now());
|
|
48
47
|
this["Id@"] = id;
|
|
49
48
|
this["Table@"] = table;
|
|
50
49
|
this["Name@"] = name_1;
|
|
@@ -155,7 +154,7 @@ export class Template {
|
|
|
155
154
|
}
|
|
156
155
|
StructurallyEquals(other) {
|
|
157
156
|
const this$ = this;
|
|
158
|
-
return (
|
|
157
|
+
return safeHash(this$) === safeHash(other);
|
|
159
158
|
}
|
|
160
159
|
Equals(other) {
|
|
161
160
|
let template;
|
|
@@ -163,17 +162,17 @@ export class Template {
|
|
|
163
162
|
return (other instanceof Template) && ((template = other, this$.StructurallyEquals(template)));
|
|
164
163
|
}
|
|
165
164
|
GetHashCode() {
|
|
166
|
-
let copyOfStruct
|
|
165
|
+
let copyOfStruct;
|
|
167
166
|
const this$ = this;
|
|
168
|
-
return ((
|
|
167
|
+
return boxHashArray([(copyOfStruct = this$.Id, copyOfStruct), safeHash(this$.Table), this$.Name, safeHash(this$.Organisation), this$.Version, boxHashSeq(this$.Authors), boxHashSeq(this$.EndpointRepositories), boxHashSeq(this$.Tags), hashDateTime(this$.LastUpdated)]) | 0;
|
|
169
168
|
}
|
|
170
169
|
}
|
|
171
170
|
|
|
172
171
|
export function Template_$reflection() {
|
|
173
|
-
return class_type("ARCtrl.Template
|
|
172
|
+
return class_type("ARCtrl.Template", void 0, Template);
|
|
174
173
|
}
|
|
175
174
|
|
|
176
|
-
export function Template_$
|
|
175
|
+
export function Template_$ctor_Z17EA765C(id, table, name, description, organisation, version, authors, repos, tags, lastUpdated) {
|
|
177
176
|
return new Template(id, table, name, description, organisation, version, authors, repos, tags, lastUpdated);
|
|
178
177
|
}
|
|
179
178
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
2
|
+
import { ResizeArray_append, ResizeArray_collect, ResizeArray_distinct, ResizeArray_filter } from "./Helper/Collections.js";
|
|
3
|
+
import { uncurry2, safeHash, equals, disposeSafe, getEnumerator } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
4
|
+
import { contains as contains_1 } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
5
|
+
import { addRangeInPlace, item } from "../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
6
|
+
import { Array_distinct } from "../fable_modules/fable-library-js.4.16.0/Seq2.js";
|
|
7
|
+
import { class_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
8
|
+
|
|
9
|
+
export function TemplatesAux_getComparer(matchAll) {
|
|
10
|
+
if (defaultArg(matchAll, false)) {
|
|
11
|
+
return (e) => ((e_1) => (e && e_1));
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
return (e_2) => ((e_3) => (e_2 || e_3));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function TemplatesAux_filterOnTags(tagGetter, queryTags, comparer, templates) {
|
|
19
|
+
return ResizeArray_filter((t) => {
|
|
20
|
+
const templateTags = tagGetter(t);
|
|
21
|
+
let isValid = void 0;
|
|
22
|
+
let enumerator = getEnumerator(queryTags);
|
|
23
|
+
try {
|
|
24
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
25
|
+
const contains = contains_1(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"](), templateTags, {
|
|
26
|
+
Equals: equals,
|
|
27
|
+
GetHashCode: safeHash,
|
|
28
|
+
});
|
|
29
|
+
const isValid_1 = isValid;
|
|
30
|
+
if (isValid_1 != null) {
|
|
31
|
+
const maybe = isValid_1;
|
|
32
|
+
isValid = comparer(maybe, contains);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
isValid = contains;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
finally {
|
|
40
|
+
disposeSafe(enumerator);
|
|
41
|
+
}
|
|
42
|
+
return defaultArg(isValid, false);
|
|
43
|
+
}, templates);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class Templates {
|
|
47
|
+
constructor() {
|
|
48
|
+
}
|
|
49
|
+
static getDistinctTags(templates) {
|
|
50
|
+
return ResizeArray_distinct(ResizeArray_collect((t) => t.Tags, templates));
|
|
51
|
+
}
|
|
52
|
+
static getDistinctEndpointRepositories(templates) {
|
|
53
|
+
return ResizeArray_distinct(ResizeArray_collect((t) => t.EndpointRepositories, templates));
|
|
54
|
+
}
|
|
55
|
+
static getDistinctOntologyAnnotations(templates) {
|
|
56
|
+
const oas = [];
|
|
57
|
+
for (let idx = 0; idx <= (templates.length - 1); idx++) {
|
|
58
|
+
const t = item(idx, templates);
|
|
59
|
+
addRangeInPlace(t.Tags, oas);
|
|
60
|
+
addRangeInPlace(t.EndpointRepositories, oas);
|
|
61
|
+
}
|
|
62
|
+
return Array_distinct(Array.from(oas), {
|
|
63
|
+
Equals: equals,
|
|
64
|
+
GetHashCode: safeHash,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
static filterByTags(queryTags, matchAll) {
|
|
68
|
+
return (templates) => TemplatesAux_filterOnTags((t) => t.Tags, queryTags, uncurry2(TemplatesAux_getComparer(matchAll)), templates);
|
|
69
|
+
}
|
|
70
|
+
static filterByEndpointRepositories(queryTags, matchAll) {
|
|
71
|
+
return (templates) => TemplatesAux_filterOnTags((t) => t.EndpointRepositories, queryTags, uncurry2(TemplatesAux_getComparer(matchAll)), templates);
|
|
72
|
+
}
|
|
73
|
+
static filterByOntologyAnnotation(queryTags, matchAll) {
|
|
74
|
+
return (templates) => TemplatesAux_filterOnTags((t) => ResizeArray_append(t.Tags, t.EndpointRepositories), queryTags, uncurry2(TemplatesAux_getComparer(matchAll)), templates);
|
|
75
|
+
}
|
|
76
|
+
static filterByDataPLANT(templates) {
|
|
77
|
+
return ResizeArray_filter((t) => t.Organisation.IsOfficial(), templates);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function Templates_$reflection() {
|
|
82
|
+
return class_type("ARCtrl.Templates", void 0, Templates);
|
|
83
|
+
}
|
|
84
|
+
|
package/FileSystem/Commit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Record } from "../fable_modules/fable-library-js.4.
|
|
2
|
-
import { record_type, class_type, string_type } from "../fable_modules/fable-library-js.4.
|
|
1
|
+
import { Record } from "../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { record_type, class_type, string_type } from "../fable_modules/fable-library-js.4.16.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-js.4.
|
|
1
|
+
import { defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
2
2
|
import { FileSystemTree_$reflection, FileSystemTree } from "./FileSystemTree.js";
|
|
3
|
-
import { map, append } from "../fable_modules/fable-library-js.4.
|
|
4
|
-
import { Record } from "../fable_modules/fable-library-js.4.
|
|
3
|
+
import { map, append } from "../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
4
|
+
import { Record } from "../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
5
5
|
import { Commit_$reflection } from "./Commit.js";
|
|
6
|
-
import { record_type, array_type } from "../fable_modules/fable-library-js.4.
|
|
6
|
+
import { record_type, array_type } from "../fable_modules/fable-library-js.4.16.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-js.4.
|
|
2
|
-
import { append as append_1, choose, equalsWith, tail, head, map, tryFind } from "../fable_modules/fable-library-js.4.
|
|
3
|
-
import { singleton, append, delay, toArray } from "../fable_modules/fable-library-js.4.
|
|
4
|
-
import { Array_distinct, Array_groupBy } from "../fable_modules/fable-library-js.4.
|
|
5
|
-
import { curry2, arrayHash, stringHash } from "../fable_modules/fable-library-js.4.
|
|
1
|
+
import { unwrap, defaultArg } from "../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
2
|
+
import { append as append_1, choose, equalsWith, tail, head, map, tryFind } from "../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
3
|
+
import { singleton, append, delay, toArray } from "../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
4
|
+
import { Array_distinct, Array_groupBy } from "../fable_modules/fable-library-js.4.16.0/Seq2.js";
|
|
5
|
+
import { curry2, arrayHash, stringHash } from "../fable_modules/fable-library-js.4.16.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-js.4.
|
|
8
|
-
import { Union } from "../fable_modules/fable-library-js.4.
|
|
9
|
-
import { union_type, array_type, string_type } from "../fable_modules/fable-library-js.4.
|
|
7
|
+
import { empty, reverse, toArray as toArray_1, cons } from "../fable_modules/fable-library-js.4.16.0/List.js";
|
|
8
|
+
import { Union } from "../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
9
|
+
import { union_type, array_type, string_type } from "../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
10
10
|
|
|
11
11
|
export class FileSystemTree extends Union {
|
|
12
12
|
constructor(tag, fields) {
|
|
@@ -215,6 +215,44 @@ export class FileSystemTree extends Union {
|
|
|
215
215
|
const this$ = this;
|
|
216
216
|
return (this$.tag === 0) ? (new FileSystemTree(0, [this$.fields[0]])) : (new FileSystemTree(1, [this$.fields[0], map((c) => c.Copy(), this$.fields[1])]));
|
|
217
217
|
}
|
|
218
|
+
static createGitKeepFile() {
|
|
219
|
+
return FileSystemTree.createFile(".gitkeep");
|
|
220
|
+
}
|
|
221
|
+
static createReadmeFile() {
|
|
222
|
+
return FileSystemTree.createFile("README.md");
|
|
223
|
+
}
|
|
224
|
+
static createEmptyFolder(name) {
|
|
225
|
+
return FileSystemTree.createFolder(name, [FileSystemTree.createGitKeepFile()]);
|
|
226
|
+
}
|
|
227
|
+
static createAssayFolder(assayName) {
|
|
228
|
+
const dataset = FileSystemTree.createEmptyFolder("dataset");
|
|
229
|
+
const protocols = FileSystemTree.createEmptyFolder("protocols");
|
|
230
|
+
const readme = FileSystemTree.createReadmeFile();
|
|
231
|
+
const assayFile = FileSystemTree.createFile("isa.assay.xlsx");
|
|
232
|
+
return FileSystemTree.createFolder(assayName, [dataset, protocols, assayFile, readme]);
|
|
233
|
+
}
|
|
234
|
+
static createStudyFolder(studyName) {
|
|
235
|
+
const resources = FileSystemTree.createEmptyFolder("resources");
|
|
236
|
+
const protocols = FileSystemTree.createEmptyFolder("protocols");
|
|
237
|
+
const readme = FileSystemTree.createReadmeFile();
|
|
238
|
+
const studyFile = FileSystemTree.createFile("isa.study.xlsx");
|
|
239
|
+
return FileSystemTree.createFolder(studyName, [resources, protocols, studyFile, readme]);
|
|
240
|
+
}
|
|
241
|
+
static createInvestigationFile() {
|
|
242
|
+
return FileSystemTree.createFile("isa.investigation.xlsx");
|
|
243
|
+
}
|
|
244
|
+
static createAssaysFolder(assays) {
|
|
245
|
+
return FileSystemTree.createFolder("assays", append_1([FileSystemTree.createGitKeepFile()], assays));
|
|
246
|
+
}
|
|
247
|
+
static createStudiesFolder(studies) {
|
|
248
|
+
return FileSystemTree.createFolder("studies", append_1([FileSystemTree.createGitKeepFile()], studies));
|
|
249
|
+
}
|
|
250
|
+
static createWorkflowsFolder(workflows) {
|
|
251
|
+
return FileSystemTree.createFolder("workflows", append_1([FileSystemTree.createGitKeepFile()], workflows));
|
|
252
|
+
}
|
|
253
|
+
static createRunsFolder(runs) {
|
|
254
|
+
return FileSystemTree.createFolder("runs", append_1([FileSystemTree.createGitKeepFile()], runs));
|
|
255
|
+
}
|
|
218
256
|
}
|
|
219
257
|
|
|
220
258
|
export function FileSystemTree_$reflection() {
|
package/FileSystem/Path.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { trim, join, trimStart, trimEnd, split as split_1 } from "../fable_modules/fable-library-js.4.
|
|
2
|
-
import { last, mapIndexed } from "../fable_modules/fable-library-js.4.
|
|
1
|
+
import { trim, join, trimStart, trimEnd, split as split_1 } from "../fable_modules/fable-library-js.4.16.0/String.js";
|
|
2
|
+
import { last, mapIndexed } from "../fable_modules/fable-library-js.4.16.0/Array.js";
|
|
3
3
|
|
|
4
4
|
export const seperators = ["/", "\\"];
|
|
5
5
|
|
|
@@ -36,3 +36,11 @@ export function isFile(fileName, path) {
|
|
|
36
36
|
return getFileName(path) === fileName;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
export function getAssayFolderPath(assayIdentifier) {
|
|
40
|
+
return combine("assays", assayIdentifier);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function getStudyFolderPath(studyIdentifier) {
|
|
44
|
+
return combine("studies", studyIdentifier);
|
|
45
|
+
}
|
|
46
|
+
|
package/Json/ARC.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ofArray, choose } from "../fable_modules/fable-library-js.4.16.0/List.js";
|
|
2
|
+
import { equals } from "../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
3
|
+
import { Json } from "../fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js";
|
|
4
|
+
import { tryInclude } from "./Encode.js";
|
|
5
|
+
import { Investigation_ROCrate_decoder, Investigation_ROCrate_encoder } from "./Investigation.js";
|
|
6
|
+
import { context_jsonvalue, conformsTo_jsonvalue } from "./context/rocrate/rocrate_context.js";
|
|
7
|
+
import { object } from "../fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js";
|
|
8
|
+
|
|
9
|
+
export function encoder(isa) {
|
|
10
|
+
return new Json(5, [choose((tupledArg) => {
|
|
11
|
+
const v = tupledArg[1];
|
|
12
|
+
if (equals(v, new Json(3, []))) {
|
|
13
|
+
return void 0;
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return [tupledArg[0], v];
|
|
17
|
+
}
|
|
18
|
+
}, ofArray([tryInclude("@type", (value) => (new Json(0, [value])), "CreativeWork"), tryInclude("@id", (value_2) => (new Json(0, [value_2])), "ro-crate-metadata.json"), tryInclude("about", Investigation_ROCrate_encoder, isa), ["conformsTo", conformsTo_jsonvalue], ["@context", context_jsonvalue]]))]);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const decoder = object((get$) => {
|
|
22
|
+
const objectArg = get$.Optional;
|
|
23
|
+
return objectArg.Field("about", Investigation_ROCrate_decoder);
|
|
24
|
+
});
|
|
25
|
+
|