@nfdi4plants/arctrl 3.0.0-beta.3 → 3.0.0-beta.4
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/README.md +2 -0
- package/dist/ts/index.js +63 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +354 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +28 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/AsyncBuilder.js +186 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Boolean.js +24 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +73 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +31 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +574 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +59 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +5 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +5 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +48 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +120 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +680 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +40 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +655 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +105 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +320 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +204 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Native.js +10 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Numeric.js +73 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +23 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +111 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +114 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +36 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +846 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +65 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +1160 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +364 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +40 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +193 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Unicode.13.0.0.js +6 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Uri.js +160 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +367 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +825 -0
- package/dist/ts/ts/ARC.js +914 -0
- package/dist/ts/ts/Contract/ARC.js +52 -0
- package/dist/ts/ts/Contract/ArcAssay.js +80 -0
- package/dist/ts/ts/Contract/ArcInvestigation.js +57 -0
- package/dist/ts/ts/Contract/ArcRun.js +76 -0
- package/dist/ts/ts/Contract/ArcStudy.js +76 -0
- package/dist/ts/ts/Contract/ArcWorkflow.js +77 -0
- package/dist/ts/ts/Contract/Contract.js +45 -0
- package/dist/ts/ts/Contract/Datamap.js +221 -0
- package/dist/ts/ts/Contract/Git.js +57 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +57 -0
- package/dist/ts/ts/ContractIO/ContractIO.js +202 -0
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +273 -0
- package/dist/ts/ts/Conversion.js +1247 -0
- package/dist/ts/ts/Core/ArcTypes.js +3393 -0
- package/dist/ts/ts/Core/Comment.js +91 -0
- package/dist/ts/ts/Core/CommentList.js +27 -0
- package/dist/ts/ts/Core/Conversion.js +923 -0
- package/dist/ts/ts/Core/Data.js +179 -0
- package/dist/ts/ts/Core/DataContext.js +108 -0
- package/dist/ts/ts/Core/DataFile.js +50 -0
- package/dist/ts/ts/Core/DataMap.js +53 -0
- package/dist/ts/ts/Core/Helper/Collections.js +323 -0
- package/dist/ts/ts/Core/Helper/HashCodes.js +35 -0
- package/dist/ts/ts/Core/Helper/Identifier.js +96 -0
- package/dist/ts/ts/Core/Helper/ORCID.js +34 -0
- package/dist/ts/ts/Core/Helper/Regex.js +296 -0
- package/dist/ts/ts/Core/Helper/SemVer.js +31 -0
- package/dist/ts/ts/Core/Helper/Url.js +32 -0
- package/dist/ts/ts/Core/IdentifierSetters.js +9 -0
- package/dist/ts/ts/Core/OntologyAnnotation.js +207 -0
- package/dist/ts/ts/Core/OntologySourceReference.js +84 -0
- package/dist/ts/ts/Core/Person.js +183 -0
- package/dist/ts/ts/Core/Process/ColumnIndex.js +73 -0
- package/dist/ts/ts/Core/Process/Component.js +121 -0
- package/dist/ts/ts/Core/Process/Factor.js +104 -0
- package/dist/ts/ts/Core/Process/FactorValue.js +68 -0
- package/dist/ts/ts/Core/Process/Material.js +49 -0
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +30 -0
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +68 -0
- package/dist/ts/ts/Core/Process/MaterialType.js +28 -0
- package/dist/ts/ts/Core/Process/Process.js +136 -0
- package/dist/ts/ts/Core/Process/ProcessInput.js +207 -0
- package/dist/ts/ts/Core/Process/ProcessOutput.js +178 -0
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +135 -0
- package/dist/ts/ts/Core/Process/ProcessSequence.js +56 -0
- package/dist/ts/ts/Core/Process/Protocol.js +54 -0
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +69 -0
- package/dist/ts/ts/Core/Process/Sample.js +44 -0
- package/dist/ts/ts/Core/Process/Source.js +38 -0
- package/dist/ts/ts/Core/Publication.js +108 -0
- package/dist/ts/ts/Core/Table/ArcTable.js +889 -0
- package/dist/ts/ts/Core/Table/ArcTableAux.js +993 -0
- package/dist/ts/ts/Core/Table/ArcTables.js +415 -0
- package/dist/ts/ts/Core/Table/CompositeCell.js +334 -0
- package/dist/ts/ts/Core/Table/CompositeColumn.js +52 -0
- package/dist/ts/ts/Core/Table/CompositeHeader.js +792 -0
- package/dist/ts/ts/Core/Template.js +180 -0
- package/dist/ts/ts/Core/Templates.js +75 -0
- package/dist/ts/ts/Core/URI.js +8 -0
- package/dist/ts/ts/Core/Value.js +194 -0
- package/dist/ts/ts/CrossAsync.js +20 -0
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +3 -0
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +3 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +48 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.js +339 -0
- package/dist/ts/ts/FileSystem/Path.js +36 -0
- package/dist/ts/ts/Json/Assay.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +221 -0
- package/dist/ts/ts/Json/Comment.d.ts +1 -1
- package/dist/ts/ts/Json/Comment.js +112 -0
- package/dist/ts/ts/Json/Data.d.ts +1 -1
- package/dist/ts/ts/Json/Data.js +138 -0
- package/dist/ts/ts/Json/DataFile.d.ts +1 -1
- package/dist/ts/ts/Json/DataFile.js +55 -0
- package/dist/ts/ts/Json/DataMap/DataContext.d.ts +1 -1
- package/dist/ts/ts/Json/DataMap/DataContext.js +39 -0
- package/dist/ts/ts/Json/DataMap/DataMap.d.ts +1 -1
- package/dist/ts/ts/Json/DataMap/DataMap.js +27 -0
- package/dist/ts/ts/Json/Decode.d.ts +2 -2
- package/dist/ts/ts/Json/Decode.js +209 -0
- package/dist/ts/ts/Json/Encode.d.ts +1 -1
- package/dist/ts/ts/Json/Encode.js +65 -0
- package/dist/ts/ts/Json/IDTable.d.ts +1 -1
- package/dist/ts/ts/Json/IDTable.js +28 -0
- package/dist/ts/ts/Json/Investigation.d.ts +1 -1
- package/dist/ts/ts/Json/Investigation.js +229 -0
- package/dist/ts/ts/Json/OntologyAnnotation.d.ts +1 -1
- package/dist/ts/ts/Json/OntologyAnnotation.js +194 -0
- package/dist/ts/ts/Json/OntologySourceReference.d.ts +1 -1
- package/dist/ts/ts/Json/OntologySourceReference.js +119 -0
- package/dist/ts/ts/Json/Person.d.ts +1 -1
- package/dist/ts/ts/Json/Person.js +316 -0
- package/dist/ts/ts/Json/Process/AssayMaterials.d.ts +1 -1
- package/dist/ts/ts/Json/Process/AssayMaterials.js +21 -0
- package/dist/ts/ts/Json/Process/Component.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Component.js +41 -0
- package/dist/ts/ts/Json/Process/Factor.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Factor.js +53 -0
- package/dist/ts/ts/Json/Process/FactorValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/FactorValue.js +44 -0
- package/dist/ts/ts/Json/Process/Material.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Material.js +112 -0
- package/dist/ts/ts/Json/Process/MaterialAttribute.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +43 -0
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +44 -0
- package/dist/ts/ts/Json/Process/MaterialType.d.ts +1 -1
- package/dist/ts/ts/Json/Process/MaterialType.js +45 -0
- package/dist/ts/ts/Json/Process/Process.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Process.js +103 -0
- package/dist/ts/ts/Json/Process/ProcessInput.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessInput.js +42 -0
- package/dist/ts/ts/Json/Process/ProcessOutput.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessOutput.js +35 -0
- package/dist/ts/ts/Json/Process/ProcessParameterValue.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +28 -0
- package/dist/ts/ts/Json/Process/Protocol.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Protocol.js +166 -0
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +43 -0
- package/dist/ts/ts/Json/Process/Sample.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Sample.js +165 -0
- package/dist/ts/ts/Json/Process/Source.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Source.js +133 -0
- package/dist/ts/ts/Json/Process/StudyMaterials.d.ts +1 -1
- package/dist/ts/ts/Json/Process/StudyMaterials.js +23 -0
- package/dist/ts/ts/Json/Process/Value.d.ts +1 -1
- package/dist/ts/ts/Json/Process/Value.js +41 -0
- package/dist/ts/ts/Json/PropertyValue.d.ts +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +280 -0
- package/dist/ts/ts/Json/Publication.d.ts +1 -1
- package/dist/ts/ts/Json/Publication.js +123 -0
- package/dist/ts/ts/Json/ROCrate/LDContext.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDContext.js +115 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +83 -0
- package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDNode.js +190 -0
- package/dist/ts/ts/Json/ROCrate/LDRef.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDRef.js +24 -0
- package/dist/ts/ts/Json/ROCrate/LDValue.d.ts +1 -1
- package/dist/ts/ts/Json/ROCrate/LDValue.js +63 -0
- package/dist/ts/ts/Json/StringTable.d.ts +1 -1
- package/dist/ts/ts/Json/StringTable.js +66 -0
- package/dist/ts/ts/Json/Study.d.ts +1 -1
- package/dist/ts/ts/Json/Study.js +326 -0
- package/dist/ts/ts/Json/Table/ArcTable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/ArcTable.js +210 -0
- package/dist/ts/ts/Json/Table/CellTable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CellTable.js +53 -0
- package/dist/ts/ts/Json/Table/CompositeCell.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CompositeCell.js +106 -0
- package/dist/ts/ts/Json/Table/CompositeHeader.d.ts +1 -1
- package/dist/ts/ts/Json/Table/CompositeHeader.js +121 -0
- package/dist/ts/ts/Json/Table/IOType.d.ts +1 -1
- package/dist/ts/ts/Json/Table/IOType.js +15 -0
- package/dist/ts/ts/Json/Table/OATable.d.ts +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +50 -0
- package/dist/ts/ts/Json/Table/Templates.d.ts +1 -1
- package/dist/ts/ts/Json/Table/Templates.js +15 -0
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +29 -0
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +41 -0
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +69 -0
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +37 -0
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +37 -0
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +41 -0
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +25 -0
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +86 -0
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +57 -0
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +45 -0
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +33 -0
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +33 -0
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +77 -0
- package/dist/ts/ts/Json/context/rocrate/property_value_context.d.ts +1 -1
- package/dist/ts/ts/Json/context/rocrate/property_value_context.js +61 -0
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.d.ts +1 -1
- package/dist/ts/ts/Json.js +171 -0
- package/dist/ts/ts/JsonIO/Assay.js +77 -0
- package/dist/ts/ts/JsonIO/Investigation.js +77 -0
- package/dist/ts/ts/JsonIO/LDObject.js +77 -0
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +56 -0
- package/dist/ts/ts/JsonIO/Study.js +77 -0
- package/dist/ts/ts/JsonIO/Table/Compression.d.ts +1 -1
- package/dist/ts/ts/JsonIO/Table/Compression.js +39 -0
- package/dist/ts/ts/JsonIO/Table/Templates.d.ts +1 -1
- package/dist/ts/ts/JsonIO/Table/Templates.js +25 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +103 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +624 -0
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +103 -0
- package/dist/ts/ts/ROCrate/Generic/File.js +184 -0
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +222 -0
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +257 -0
- package/dist/ts/ts/ROCrate/Generic/Organization.js +63 -0
- package/dist/ts/ts/ROCrate/Generic/Person.js +377 -0
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +143 -0
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +512 -0
- package/dist/ts/ts/ROCrate/Generic/Sample.js +131 -0
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +173 -0
- package/dist/ts/ts/ROCrate/Helper.js +7 -0
- package/dist/ts/ts/ROCrate/LDContext.js +288 -0
- package/dist/ts/ts/ROCrate/LDObject.js +855 -0
- package/dist/ts/ts/ROCrate/ROCrateContext.js +39 -0
- package/dist/ts/ts/ROCrateIO.d.ts +1 -1
- package/dist/ts/ts/ROCrateIO.js +58 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +149 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +63 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +108 -0
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +410 -0
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcAssay.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +169 -0
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +316 -0
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcRun.js +136 -0
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcStudy.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +92 -0
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +125 -0
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +34 -0
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMap.js +33 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts +2 -2
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +41 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +418 -0
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts +3 -3
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +85 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +90 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +58 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +85 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +133 -0
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +15 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +74 -0
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +58 -0
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +62 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +94 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +81 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +91 -0
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts +3 -3
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +193 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +238 -0
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +105 -0
- package/dist/ts/ts/Template.Web.js +22 -0
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +53 -0
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +78 -0
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +13 -0
- package/dist/ts/ts/WebRequest/WebRequest.js +19 -0
- package/dist/ts/ts/Xlsx.d.ts +1 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +91 -0
- package/dist/ts/ts/Yaml/Encode.js +8 -0
- package/dist/ts/ts/Yaml/ValidationPackage.js +26 -0
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +40 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +344 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +103 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +19 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +17 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +7 -0
- package/dist/ts/ts/fable_modules/Fable.Exceljs.1.6.0/ExcelJs.fs.js +5 -0
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +18 -0
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +44 -0
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +5 -0
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +142 -0
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +76 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +359 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +344 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +154 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +116 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +126 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +135 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +422 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +5 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +25 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +28 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +69 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +42 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +29 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +348 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +86 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +68 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +12 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +54 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +33 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +63 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +66 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +544 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +31 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +38 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +79 -0
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js +57 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +235 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +16 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +45 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +89 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +480 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +11 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +212 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +164 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +136 -0
- package/package.json +10 -7
- package/dist/ts/__vite-browser-external-2447137e.js +0 -4
- package/dist/ts/__vite-browser-external-b3701507.cjs +0 -1
- package/dist/ts/arctrl.cjs.js +0 -5691
- package/dist/ts/arctrl.es.js +0 -35562
- package/dist/ts/arctrl.umd.js +0 -5691
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defaultArg, map, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { isEmpty, map as map$2, toArray } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
|
+
import { seq, list, tuple2 } from '../fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js';
|
|
4
|
+
import { item } from '../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
5
|
+
import { isEmpty as isEmpty$1, map as map$1 } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
6
|
+
import { toString } from '../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
7
|
+
import { count } from '../../node_modules/@fable-org/fable-library-js/CollectionUtil.js';
|
|
8
|
+
import { toFail, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
9
|
+
|
|
10
|
+
function tryInclude(name, encoder, value) {
|
|
11
|
+
return [name, map(encoder, value)];
|
|
12
|
+
}
|
|
13
|
+
function tryIncludeSeq(name, encoder, value) {
|
|
14
|
+
return [name, isEmpty(value) ? void 0 : seq(map$2(encoder, value))];
|
|
15
|
+
}
|
|
16
|
+
function tryIncludeList(name, encoder, value) {
|
|
17
|
+
return [name, isEmpty$1(value) ? void 0 : list(map$1(encoder, value))];
|
|
18
|
+
}
|
|
19
|
+
function tryIncludeListOpt(name, encoder, value$1) {
|
|
20
|
+
let o;
|
|
21
|
+
return [name, value$1 != null ? (o = value(value$1), isEmpty$1(o) ? void 0 : list(map$1(encoder, o))) : void 0];
|
|
22
|
+
}
|
|
23
|
+
const DefaultSpaces = 0;
|
|
24
|
+
function defaultSpaces(spaces) {
|
|
25
|
+
return defaultArg(spaces, DefaultSpaces);
|
|
26
|
+
}
|
|
27
|
+
function dateTime(d) {
|
|
28
|
+
const value = item(0, toString(d, "O").split("+"));
|
|
29
|
+
return {
|
|
30
|
+
Encode(helpers) {
|
|
31
|
+
return helpers.encodeString(value);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function resizeArrayOrSingleton(encoder, values) {
|
|
36
|
+
if (values.length === 1) {
|
|
37
|
+
return encoder(values[0]);
|
|
38
|
+
} else {
|
|
39
|
+
return seq(map$2(encoder, values));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function intDictionary(valueEncoder, values) {
|
|
43
|
+
if (count(values) === 0) {
|
|
44
|
+
return {
|
|
45
|
+
Encode(helpers) {
|
|
46
|
+
return helpers.encodeNull();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
} else {
|
|
50
|
+
return seq(toArray(map$2((_arg) => {
|
|
51
|
+
const activePatternResult = _arg;
|
|
52
|
+
const k = activePatternResult[0] | 0;
|
|
53
|
+
if (k > 2147483647 ? true : k < -2147483648) {
|
|
54
|
+
toFail(printf("Key %d is out of bounds for Int32"))(k);
|
|
55
|
+
}
|
|
56
|
+
return tuple2((value) => ({
|
|
57
|
+
Encode(helpers_1) {
|
|
58
|
+
return helpers_1.encodeSignedIntegralNumber(value);
|
|
59
|
+
}
|
|
60
|
+
}), valueEncoder, k, activePatternResult[1]);
|
|
61
|
+
}, values)));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { DefaultSpaces, dateTime, defaultSpaces, intDictionary, resizeArrayOrSingleton, tryInclude, tryIncludeList, tryIncludeListOpt, tryIncludeSeq };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEncodable } from '../fable_modules/Thoth.Json.Core.0.
|
|
1
|
+
import { IEncodable } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
2
2
|
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
3
3
|
export declare function encodeID(id: string): IEncodable;
|
|
4
4
|
export declare function encode<Value>(genID: ((arg0: Value) => string), encoder: ((arg0: Value) => IEncodable), value: Value, table: IMap<string, IEncodable>): IEncodable;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { map } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
2
|
+
import { addToDict } from '../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
3
|
+
|
|
4
|
+
function encodeID(id) {
|
|
5
|
+
const values_1 = [["@id", {
|
|
6
|
+
Encode(helpers) {
|
|
7
|
+
return helpers.encodeString(id);
|
|
8
|
+
}
|
|
9
|
+
}]];
|
|
10
|
+
return {
|
|
11
|
+
Encode(helpers_1) {
|
|
12
|
+
const arg = map((tupledArg) => [tupledArg[0], tupledArg[1].Encode(helpers_1)], values_1);
|
|
13
|
+
return helpers_1.encodeObject(arg);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function encode(genID, encoder, value, table) {
|
|
18
|
+
const id = genID(value);
|
|
19
|
+
if (table.has(id)) {
|
|
20
|
+
return encodeID(id);
|
|
21
|
+
} else {
|
|
22
|
+
const v = encoder(value);
|
|
23
|
+
addToDict(table, genID(value), v);
|
|
24
|
+
return v;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { encode, encodeID };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
2
2
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
3
|
-
import { Decoder$1, IEncodable } from '../fable_modules/Thoth.Json.Core.0.
|
|
3
|
+
import { Decoder$1, IEncodable } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
4
4
|
import { ArcInvestigation } from '../Core/ArcTypes.js';
|
|
5
5
|
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
6
6
|
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { ofArray, unzip, empty, choose } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { value, defaultArg, unwrap, map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
4
|
+
import { ISAJson_decoder as ISAJson_decoder$2, decoder as decoder$1, ROCrate_decoder as ROCrate_decoder$2, encoder as encoder$1, ISAJson_encoder as ISAJson_encoder$1, ROCrate_encoder as ROCrate_encoder$1 } from './OntologySourceReference.js';
|
|
5
|
+
import { ISAJson_decoder as ISAJson_decoder$3, decoder as decoder$2, ROCrate_decoder as ROCrate_decoder$3, encoder as encoder$2, ISAJson_encoder as ISAJson_encoder$2, ROCrate_encoder as ROCrate_encoder$2 } from './Publication.js';
|
|
6
|
+
import { ISAJson_decoder as ISAJson_decoder$4, decoder as decoder$3, ROCrate_decoder as ROCrate_decoder$4, encoder as encoder$3, ISAJson_encoder as ISAJson_encoder$3, ROCrate_encoder as ROCrate_encoder$3 } from './Person.js';
|
|
7
|
+
import { decoder as decoder$4, decoderCompressed as decoderCompressed$1, encoder as encoder$4, encoderCompressed as encoderCompressed$1 } from './Assay.js';
|
|
8
|
+
import { ArcInvestigation } from '../Core/ArcTypes.js';
|
|
9
|
+
import { ISAJson_decoder as ISAJson_decoder$1, decoder as decoder$5, decoderCompressed as decoderCompressed$2, ROCrate_decoder as ROCrate_decoder$1, encoder as encoder$5, ISAJson_encoder as ISAJson_encoder$4, ROCrate_encoder as ROCrate_encoder$4, encoderCompressed as encoderCompressed$2 } from './Study.js';
|
|
10
|
+
import { ISAJson_decoder as ISAJson_decoder$5, decoder as decoder$6, ROCrate_decoder as ROCrate_decoder$5, encoder as encoder$6, ISAJson_encoder as ISAJson_encoder$5, ROCrate_encoder as ROCrate_encoder$5 } from './Comment.js';
|
|
11
|
+
import { concat, map } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
12
|
+
import { string, list, resizeArray, object } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
13
|
+
import { stringHash } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
14
|
+
import { toString, today } from '../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
15
|
+
import { context_jsonvalue } from './context/rocrate/isa_investigation_context.js';
|
|
16
|
+
import { createMissingIdentifier } from '../Core/Helper/Identifier.js';
|
|
17
|
+
import { distinctBy } from '../../node_modules/@fable-org/fable-library-js/Seq2.js';
|
|
18
|
+
import { Decode_objectNoAdditionalProperties } from './Decode.js';
|
|
19
|
+
|
|
20
|
+
function encoder(inv) {
|
|
21
|
+
let value;
|
|
22
|
+
const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = inv.Identifier, {
|
|
23
|
+
Encode(helpers) {
|
|
24
|
+
return helpers.encodeString(value);
|
|
25
|
+
}
|
|
26
|
+
})], tryInclude("Title", (value_1) => ({
|
|
27
|
+
Encode(helpers_1) {
|
|
28
|
+
return helpers_1.encodeString(value_1);
|
|
29
|
+
}
|
|
30
|
+
}), inv.Title), tryInclude("Description", (value_3) => ({
|
|
31
|
+
Encode(helpers_2) {
|
|
32
|
+
return helpers_2.encodeString(value_3);
|
|
33
|
+
}
|
|
34
|
+
}), inv.Description), tryInclude("SubmissionDate", (value_5) => ({
|
|
35
|
+
Encode(helpers_3) {
|
|
36
|
+
return helpers_3.encodeString(value_5);
|
|
37
|
+
}
|
|
38
|
+
}), inv.SubmissionDate), tryInclude("PublicReleaseDate", (value_7) => ({
|
|
39
|
+
Encode(helpers_4) {
|
|
40
|
+
return helpers_4.encodeString(value_7);
|
|
41
|
+
}
|
|
42
|
+
}), inv.PublicReleaseDate), tryIncludeSeq("OntologySourceReferences", encoder$1, inv.OntologySourceReferences), tryIncludeSeq("Publications", encoder$2, inv.Publications), tryIncludeSeq("Contacts", encoder$3, inv.Contacts), tryIncludeSeq("Assays", encoder$4, inv.Assays), tryIncludeSeq("Studies", encoder$5, inv.Studies), tryIncludeSeq("RegisteredStudyIdentifiers", (value_9) => ({
|
|
43
|
+
Encode(helpers_5) {
|
|
44
|
+
return helpers_5.encodeString(value_9);
|
|
45
|
+
}
|
|
46
|
+
}), inv.RegisteredStudyIdentifiers), tryIncludeSeq("Comments", encoder$6, inv.Comments)]));
|
|
47
|
+
return {
|
|
48
|
+
Encode(helpers_6) {
|
|
49
|
+
const arg = map((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
50
|
+
return helpers_6.encodeObject(arg);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const decoder = object((get$) => {
|
|
55
|
+
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, arg_11, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
56
|
+
return new ArcInvestigation((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("SubmissionDate", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("PublicReleaseDate", string))), unwrap((arg_11 = resizeArray(decoder$1), objectArg_5 = get$.Optional, objectArg_5.Field("OntologySourceReferences", arg_11))), unwrap((arg_13 = resizeArray(decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("Publications", arg_13))), unwrap((arg_15 = resizeArray(decoder$3), objectArg_7 = get$.Optional, objectArg_7.Field("Contacts", arg_15))), unwrap((arg_17 = resizeArray(decoder$4), objectArg_8 = get$.Optional, objectArg_8.Field("Assays", arg_17))), unwrap((arg_19 = resizeArray(decoder$5), objectArg_9 = get$.Optional, objectArg_9.Field("Studies", arg_19))), void 0, void 0, unwrap((arg_21 = resizeArray(string), objectArg_10 = get$.Optional, objectArg_10.Field("RegisteredStudyIdentifiers", arg_21))), unwrap((arg_23 = resizeArray(decoder$6), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
57
|
+
});
|
|
58
|
+
function encoderCompressed(stringTable, oaTable, cellTable, inv) {
|
|
59
|
+
let value;
|
|
60
|
+
const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["Identifier", (value = inv.Identifier, {
|
|
61
|
+
Encode(helpers) {
|
|
62
|
+
return helpers.encodeString(value);
|
|
63
|
+
}
|
|
64
|
+
})], tryInclude("Title", (value_1) => ({
|
|
65
|
+
Encode(helpers_1) {
|
|
66
|
+
return helpers_1.encodeString(value_1);
|
|
67
|
+
}
|
|
68
|
+
}), inv.Title), tryInclude("Description", (value_3) => ({
|
|
69
|
+
Encode(helpers_2) {
|
|
70
|
+
return helpers_2.encodeString(value_3);
|
|
71
|
+
}
|
|
72
|
+
}), inv.Description), tryInclude("SubmissionDate", (value_5) => ({
|
|
73
|
+
Encode(helpers_3) {
|
|
74
|
+
return helpers_3.encodeString(value_5);
|
|
75
|
+
}
|
|
76
|
+
}), inv.SubmissionDate), tryInclude("PublicReleaseDate", (value_7) => ({
|
|
77
|
+
Encode(helpers_4) {
|
|
78
|
+
return helpers_4.encodeString(value_7);
|
|
79
|
+
}
|
|
80
|
+
}), inv.PublicReleaseDate), tryIncludeSeq("OntologySourceReferences", encoder$1, inv.OntologySourceReferences), tryIncludeSeq("Publications", encoder$2, inv.Publications), tryIncludeSeq("Contacts", encoder$3, inv.Contacts), tryIncludeSeq("Assays", (assay) => encoderCompressed$1(stringTable, oaTable, cellTable, assay), inv.Assays), tryIncludeSeq("Studies", (study) => encoderCompressed$2(stringTable, oaTable, cellTable, study), inv.Studies), tryIncludeSeq("RegisteredStudyIdentifiers", (value_9) => ({
|
|
81
|
+
Encode(helpers_5) {
|
|
82
|
+
return helpers_5.encodeString(value_9);
|
|
83
|
+
}
|
|
84
|
+
}), inv.RegisteredStudyIdentifiers), tryIncludeSeq("Comments", encoder$6, inv.Comments)]));
|
|
85
|
+
return {
|
|
86
|
+
Encode(helpers_6) {
|
|
87
|
+
const arg = map((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_6)], values_1);
|
|
88
|
+
return helpers_6.encodeObject(arg);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function decoderCompressed(stringTable, oaTable, cellTable) {
|
|
93
|
+
return object((get$) => {
|
|
94
|
+
let objectArg, objectArg_1, objectArg_2, objectArg_3, objectArg_4, arg_11, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9, arg_21, objectArg_10, arg_23, objectArg_11;
|
|
95
|
+
return new ArcInvestigation((objectArg = get$.Required, objectArg.Field("Identifier", string)), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("Title", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("Description", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("SubmissionDate", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("PublicReleaseDate", string))), unwrap((arg_11 = resizeArray(decoder$1), objectArg_5 = get$.Optional, objectArg_5.Field("OntologySourceReferences", arg_11))), unwrap((arg_13 = resizeArray(decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("Publications", arg_13))), unwrap((arg_15 = resizeArray(decoder$3), objectArg_7 = get$.Optional, objectArg_7.Field("Contacts", arg_15))), unwrap((arg_17 = resizeArray(decoderCompressed$1(stringTable, oaTable, cellTable)), objectArg_8 = get$.Optional, objectArg_8.Field("Assays", arg_17))), unwrap((arg_19 = resizeArray(decoderCompressed$2(stringTable, oaTable, cellTable)), objectArg_9 = get$.Optional, objectArg_9.Field("Studies", arg_19))), void 0, void 0, unwrap((arg_21 = resizeArray(string), objectArg_10 = get$.Optional, objectArg_10.Field("RegisteredStudyIdentifiers", arg_21))), unwrap((arg_23 = resizeArray(decoder$6), objectArg_11 = get$.Optional, objectArg_11.Field("Comments", arg_23))));
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
function ROCrate_genID(i) {
|
|
99
|
+
return "./";
|
|
100
|
+
}
|
|
101
|
+
function ROCrate_encoder(oa) {
|
|
102
|
+
let value, value_3, value_4, value_12, copyOfStruct;
|
|
103
|
+
const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@id", (value = ROCrate_genID(), {
|
|
104
|
+
Encode(helpers) {
|
|
105
|
+
return helpers.encodeString(value);
|
|
106
|
+
}
|
|
107
|
+
})], ["@type", {
|
|
108
|
+
Encode(helpers_1) {
|
|
109
|
+
return helpers_1.encodeString("Investigation");
|
|
110
|
+
}
|
|
111
|
+
}], ["additionalType", {
|
|
112
|
+
Encode(helpers_2) {
|
|
113
|
+
return helpers_2.encodeString("Investigation");
|
|
114
|
+
}
|
|
115
|
+
}], ["identifier", (value_3 = oa.Identifier, {
|
|
116
|
+
Encode(helpers_3) {
|
|
117
|
+
return helpers_3.encodeString(value_3);
|
|
118
|
+
}
|
|
119
|
+
})], ["filename", (value_4 = ArcInvestigation.FileName, {
|
|
120
|
+
Encode(helpers_4) {
|
|
121
|
+
return helpers_4.encodeString(value_4);
|
|
122
|
+
}
|
|
123
|
+
})], tryInclude("title", (value_5) => ({
|
|
124
|
+
Encode(helpers_5) {
|
|
125
|
+
return helpers_5.encodeString(value_5);
|
|
126
|
+
}
|
|
127
|
+
}), oa.Title), tryInclude("description", (value_7) => ({
|
|
128
|
+
Encode(helpers_6) {
|
|
129
|
+
return helpers_6.encodeString(value_7);
|
|
130
|
+
}
|
|
131
|
+
}), oa.Description), tryInclude("submissionDate", (value_9) => ({
|
|
132
|
+
Encode(helpers_7) {
|
|
133
|
+
return helpers_7.encodeString(value_9);
|
|
134
|
+
}
|
|
135
|
+
}), oa.SubmissionDate), ["publicReleaseDate", (value_12 = defaultArg(oa.PublicReleaseDate, (copyOfStruct = today(), toString(copyOfStruct, "yyyy-MM-dd"))), {
|
|
136
|
+
Encode(helpers_8) {
|
|
137
|
+
return helpers_8.encodeString(value_12);
|
|
138
|
+
}
|
|
139
|
+
})], tryIncludeSeq("ontologySourceReferences", ROCrate_encoder$1, oa.OntologySourceReferences), tryIncludeSeq("publications", ROCrate_encoder$2, oa.Publications), tryIncludeSeq("people", ROCrate_encoder$3, oa.Contacts), tryIncludeSeq("studies", (s) => ROCrate_encoder$4(void 0, s), oa.Studies), tryIncludeSeq("comments", ROCrate_encoder$5, oa.Comments), ["@context", context_jsonvalue]]));
|
|
140
|
+
return {
|
|
141
|
+
Encode(helpers_9) {
|
|
142
|
+
const arg = map((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_9)], values_1);
|
|
143
|
+
return helpers_9.encodeObject(arg);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
const ROCrate_decoder = object((get$) => {
|
|
148
|
+
let arg_3, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9;
|
|
149
|
+
let identifier;
|
|
150
|
+
let matchValue;
|
|
151
|
+
const objectArg = get$.Optional;
|
|
152
|
+
matchValue = objectArg.Field("identifier", string);
|
|
153
|
+
identifier = matchValue == null ? createMissingIdentifier() : value(matchValue);
|
|
154
|
+
const patternInput = unzip(defaultArg((arg_3 = list(ROCrate_decoder$1), objectArg_1 = get$.Optional, objectArg_1.Field("studies", arg_3)), empty()));
|
|
155
|
+
const studiesRaw = patternInput[0];
|
|
156
|
+
let assays;
|
|
157
|
+
const collection = distinctBy((a) => a.Identifier, concat(patternInput[1]), {
|
|
158
|
+
Equals: (x, y) => x === y,
|
|
159
|
+
GetHashCode: stringHash
|
|
160
|
+
});
|
|
161
|
+
assays = Array.from(collection);
|
|
162
|
+
const studies = Array.from(studiesRaw);
|
|
163
|
+
let studyIdentifiers;
|
|
164
|
+
const collection_1 = map((a_1) => a_1.Identifier, studiesRaw);
|
|
165
|
+
studyIdentifiers = Array.from(collection_1);
|
|
166
|
+
return new ArcInvestigation(identifier, unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("title", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("description", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("submissionDate", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("publicReleaseDate", string))), unwrap((arg_13 = resizeArray(ROCrate_decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("ontologySourceReferences", arg_13))), unwrap((arg_15 = resizeArray(ROCrate_decoder$3), objectArg_7 = get$.Optional, objectArg_7.Field("publications", arg_15))), unwrap((arg_17 = resizeArray(ROCrate_decoder$4), objectArg_8 = get$.Optional, objectArg_8.Field("people", arg_17))), assays, studies, void 0, void 0, studyIdentifiers, unwrap((arg_19 = resizeArray(ROCrate_decoder$5), objectArg_9 = get$.Optional, objectArg_9.Field("comments", arg_19))));
|
|
167
|
+
});
|
|
168
|
+
const ISAJson_allowedFields = ofArray(["@id", "filename", "identifier", "title", "description", "submissionDate", "publicReleaseDate", "ontologySourceReferences", "publications", "people", "studies", "comments", "@type", "@context"]);
|
|
169
|
+
function ISAJson_encoder(idMap, inv) {
|
|
170
|
+
let value, value_1, value_2;
|
|
171
|
+
const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@id", (value = ROCrate_genID(), {
|
|
172
|
+
Encode(helpers) {
|
|
173
|
+
return helpers.encodeString(value);
|
|
174
|
+
}
|
|
175
|
+
})], ["filename", (value_1 = ArcInvestigation.FileName, {
|
|
176
|
+
Encode(helpers_1) {
|
|
177
|
+
return helpers_1.encodeString(value_1);
|
|
178
|
+
}
|
|
179
|
+
})], ["identifier", (value_2 = inv.Identifier, {
|
|
180
|
+
Encode(helpers_2) {
|
|
181
|
+
return helpers_2.encodeString(value_2);
|
|
182
|
+
}
|
|
183
|
+
})], tryInclude("title", (value_3) => ({
|
|
184
|
+
Encode(helpers_3) {
|
|
185
|
+
return helpers_3.encodeString(value_3);
|
|
186
|
+
}
|
|
187
|
+
}), inv.Title), tryInclude("description", (value_5) => ({
|
|
188
|
+
Encode(helpers_4) {
|
|
189
|
+
return helpers_4.encodeString(value_5);
|
|
190
|
+
}
|
|
191
|
+
}), inv.Description), tryInclude("submissionDate", (value_7) => ({
|
|
192
|
+
Encode(helpers_5) {
|
|
193
|
+
return helpers_5.encodeString(value_7);
|
|
194
|
+
}
|
|
195
|
+
}), inv.SubmissionDate), tryInclude("publicReleaseDate", (value_9) => ({
|
|
196
|
+
Encode(helpers_6) {
|
|
197
|
+
return helpers_6.encodeString(value_9);
|
|
198
|
+
}
|
|
199
|
+
}), inv.PublicReleaseDate), tryIncludeSeq("ontologySourceReferences", (osr) => ISAJson_encoder$1(idMap, osr), inv.OntologySourceReferences), tryIncludeSeq("publications", (oa) => ISAJson_encoder$2(idMap, oa), inv.Publications), tryIncludeSeq("people", (person) => ISAJson_encoder$3(idMap, person), inv.Contacts), tryIncludeSeq("studies", (s) => ISAJson_encoder$4(idMap, void 0, s), inv.Studies), tryIncludeSeq("comments", (comment) => ISAJson_encoder$5(idMap, comment), inv.Comments)]));
|
|
200
|
+
return {
|
|
201
|
+
Encode(helpers_7) {
|
|
202
|
+
const arg = map((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_7)], values_1);
|
|
203
|
+
return helpers_7.encodeObject(arg);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
const ISAJson_decoder = Decode_objectNoAdditionalProperties(ISAJson_allowedFields, (get$) => {
|
|
208
|
+
let arg_3, objectArg_1, objectArg_2, objectArg_3, objectArg_4, objectArg_5, arg_13, objectArg_6, arg_15, objectArg_7, arg_17, objectArg_8, arg_19, objectArg_9;
|
|
209
|
+
let identifer;
|
|
210
|
+
let matchValue;
|
|
211
|
+
const objectArg = get$.Optional;
|
|
212
|
+
matchValue = objectArg.Field("identifier", string);
|
|
213
|
+
identifer = matchValue == null ? createMissingIdentifier() : value(matchValue);
|
|
214
|
+
const patternInput = unzip(defaultArg((arg_3 = list(ISAJson_decoder$1), objectArg_1 = get$.Optional, objectArg_1.Field("studies", arg_3)), empty()));
|
|
215
|
+
const studiesRaw = patternInput[0];
|
|
216
|
+
let assays;
|
|
217
|
+
const collection = distinctBy((a) => a.Identifier, concat(patternInput[1]), {
|
|
218
|
+
Equals: (x, y) => x === y,
|
|
219
|
+
GetHashCode: stringHash
|
|
220
|
+
});
|
|
221
|
+
assays = Array.from(collection);
|
|
222
|
+
const studies = Array.from(studiesRaw);
|
|
223
|
+
let studyIdentifiers;
|
|
224
|
+
const collection_1 = map((a_1) => a_1.Identifier, studiesRaw);
|
|
225
|
+
studyIdentifiers = Array.from(collection_1);
|
|
226
|
+
return new ArcInvestigation(identifer, unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("title", string))), unwrap((objectArg_3 = get$.Optional, objectArg_3.Field("description", string))), unwrap((objectArg_4 = get$.Optional, objectArg_4.Field("submissionDate", string))), unwrap((objectArg_5 = get$.Optional, objectArg_5.Field("publicReleaseDate", string))), unwrap((arg_13 = resizeArray(ISAJson_decoder$2), objectArg_6 = get$.Optional, objectArg_6.Field("ontologySourceReferences", arg_13))), unwrap((arg_15 = resizeArray(ISAJson_decoder$3), objectArg_7 = get$.Optional, objectArg_7.Field("publications", arg_15))), unwrap((arg_17 = resizeArray(ISAJson_decoder$4), objectArg_8 = get$.Optional, objectArg_8.Field("people", arg_17))), assays, studies, void 0, void 0, studyIdentifiers, unwrap((arg_19 = resizeArray(ISAJson_decoder$5), objectArg_9 = get$.Optional, objectArg_9.Field("comments", arg_19))));
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
export { ISAJson_allowedFields, ISAJson_decoder, ISAJson_encoder, ROCrate_decoder, ROCrate_encoder, ROCrate_genID, decoder, decoderCompressed, encoder, encoderCompressed };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
2
2
|
import { int32 } from '@fable-org/fable-library-js/Int32.js';
|
|
3
|
-
import { IEncodable, Decoder$1 } from '../fable_modules/Thoth.Json.Core.0.
|
|
3
|
+
import { IEncodable, Decoder$1 } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
4
4
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
5
5
|
import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
|
|
6
6
|
export declare const AnnotationValue_decoder: Decoder$1<string>;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { oneOf, map, string, int, float, object, resizeArray } from '../fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
2
|
+
import { int32ToString } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
3
|
+
import { ofArray, choose } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
4
|
+
import { unwrap, map as map$1, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
|
+
import { tryInclude, tryIncludeSeq } from './Encode.js';
|
|
6
|
+
import { decoder, ROCrate_decoderDisambiguatingDescription, encoder, ROCrate_encoderDisambiguatingDescription } from './Comment.js';
|
|
7
|
+
import { map as map$2, filter } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
8
|
+
import { OntologyAnnotation } from '../Core/OntologyAnnotation.js';
|
|
9
|
+
import { decodeString, encodeString } from './StringTable.js';
|
|
10
|
+
import { replace } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
11
|
+
import { URIModule_toString } from '../Core/URI.js';
|
|
12
|
+
import { context_jsonvalue } from './context/rocrate/isa_ontology_annotation_context.js';
|
|
13
|
+
import { context_jsonvalue as context_jsonvalue$1 } from './context/rocrate/property_value_context.js';
|
|
14
|
+
import { orderName } from '../Core/Process/ColumnIndex.js';
|
|
15
|
+
import { encode } from './IDTable.js';
|
|
16
|
+
|
|
17
|
+
const AnnotationValue_decoder = oneOf(ofArray([map(int32ToString, int), map((value_1) => value_1.toString(), float), string]));
|
|
18
|
+
function OntologyAnnotation_encoder(oa) {
|
|
19
|
+
const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("annotationValue", (value) => ({
|
|
20
|
+
Encode(helpers) {
|
|
21
|
+
return helpers.encodeString(value);
|
|
22
|
+
}
|
|
23
|
+
}), oa.Name), tryInclude("termSource", (value_2) => ({
|
|
24
|
+
Encode(helpers_1) {
|
|
25
|
+
return helpers_1.encodeString(value_2);
|
|
26
|
+
}
|
|
27
|
+
}), oa.TermSourceREF), tryInclude("termAccession", (value_4) => ({
|
|
28
|
+
Encode(helpers_2) {
|
|
29
|
+
return helpers_2.encodeString(value_4);
|
|
30
|
+
}
|
|
31
|
+
}), oa.TermAccessionNumber), tryIncludeSeq("comments", encoder, oa.Comments)]));
|
|
32
|
+
return {
|
|
33
|
+
Encode(helpers_3) {
|
|
34
|
+
const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_3)], values_1);
|
|
35
|
+
return helpers_3.encodeObject(arg);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
const OntologyAnnotation_decoder = object((get$) => {
|
|
40
|
+
let objectArg, objectArg_1, objectArg_2, arg_7, objectArg_3;
|
|
41
|
+
return OntologyAnnotation.create(unwrap((objectArg = get$.Optional, objectArg.Field("annotationValue", AnnotationValue_decoder))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("termSource", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("termAccession", string))), unwrap((arg_7 = resizeArray(decoder), objectArg_3 = get$.Optional, objectArg_3.Field("comments", arg_7))));
|
|
42
|
+
});
|
|
43
|
+
function OntologyAnnotation_compressedEncoder(stringTable, oa) {
|
|
44
|
+
const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("a", (s) => encodeString(stringTable, s), oa.Name), tryInclude("ts", (s_1) => encodeString(stringTable, s_1), oa.TermSourceREF), tryInclude("ta", (s_2) => encodeString(stringTable, s_2), oa.TermAccessionNumber), tryIncludeSeq("comments", encoder, oa.Comments)]));
|
|
45
|
+
return {
|
|
46
|
+
Encode(helpers) {
|
|
47
|
+
const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers)], values_1);
|
|
48
|
+
return helpers.encodeObject(arg);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function OntologyAnnotation_compressedDecoder(stringTable) {
|
|
53
|
+
return object((get$) => {
|
|
54
|
+
let arg_1, objectArg, arg_3, objectArg_1, arg_5, objectArg_2, arg_7, objectArg_3;
|
|
55
|
+
return new OntologyAnnotation(unwrap((arg_1 = decodeString(stringTable), objectArg = get$.Optional, objectArg.Field("a", arg_1))), unwrap((arg_3 = decodeString(stringTable), objectArg_1 = get$.Optional, objectArg_1.Field("ts", arg_3))), unwrap((arg_5 = decodeString(stringTable), objectArg_2 = get$.Optional, objectArg_2.Field("ta", arg_5))), unwrap((arg_7 = resizeArray(decoder), objectArg_3 = get$.Optional, objectArg_3.Field("comments", arg_7))));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function OntologyAnnotation_ROCrate_genID(o) {
|
|
59
|
+
const matchValue = o.TermAccessionNumber;
|
|
60
|
+
if (matchValue == null) {
|
|
61
|
+
const matchValue_1 = o.TermSourceREF;
|
|
62
|
+
if (matchValue_1 == null) {
|
|
63
|
+
const matchValue_2 = o.Name;
|
|
64
|
+
if (matchValue_2 == null) {
|
|
65
|
+
return "#DummyOntologyAnnotation";
|
|
66
|
+
} else {
|
|
67
|
+
return "#UserTerm_" + replace(value(matchValue_2), " ", "_");
|
|
68
|
+
}
|
|
69
|
+
} else {
|
|
70
|
+
return "#" + replace(value(matchValue_1), " ", "_");
|
|
71
|
+
}
|
|
72
|
+
} else {
|
|
73
|
+
return URIModule_toString(value(matchValue));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function OntologyAnnotation_ROCrate_encoderDefinedTerm(oa) {
|
|
77
|
+
let value;
|
|
78
|
+
const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@id", (value = OntologyAnnotation_ROCrate_genID(oa), {
|
|
79
|
+
Encode(helpers) {
|
|
80
|
+
return helpers.encodeString(value);
|
|
81
|
+
}
|
|
82
|
+
})], ["@type", {
|
|
83
|
+
Encode(helpers_1) {
|
|
84
|
+
return helpers_1.encodeString("OntologyAnnotation");
|
|
85
|
+
}
|
|
86
|
+
}], tryInclude("annotationValue", (value_2) => ({
|
|
87
|
+
Encode(helpers_2) {
|
|
88
|
+
return helpers_2.encodeString(value_2);
|
|
89
|
+
}
|
|
90
|
+
}), oa.Name), tryInclude("termSource", (value_4) => ({
|
|
91
|
+
Encode(helpers_3) {
|
|
92
|
+
return helpers_3.encodeString(value_4);
|
|
93
|
+
}
|
|
94
|
+
}), oa.TermSourceREF), tryInclude("termAccession", (value_6) => ({
|
|
95
|
+
Encode(helpers_4) {
|
|
96
|
+
return helpers_4.encodeString(value_6);
|
|
97
|
+
}
|
|
98
|
+
}), oa.TermAccessionNumber), tryIncludeSeq("comments", ROCrate_encoderDisambiguatingDescription, oa.Comments), ["@context", context_jsonvalue]]));
|
|
99
|
+
return {
|
|
100
|
+
Encode(helpers_5) {
|
|
101
|
+
const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_5)], values_1);
|
|
102
|
+
return helpers_5.encodeObject(arg);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
const OntologyAnnotation_ROCrate_decoderDefinedTerm = object((get$) => {
|
|
107
|
+
let objectArg, objectArg_1, objectArg_2, arg_7, objectArg_3;
|
|
108
|
+
return OntologyAnnotation.create(unwrap((objectArg = get$.Optional, objectArg.Field("annotationValue", AnnotationValue_decoder))), unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("termSource", string))), unwrap((objectArg_2 = get$.Optional, objectArg_2.Field("termAccession", string))), unwrap((arg_7 = resizeArray(ROCrate_decoderDisambiguatingDescription), objectArg_3 = get$.Optional, objectArg_3.Field("comments", arg_7))));
|
|
109
|
+
});
|
|
110
|
+
function OntologyAnnotation_ROCrate_encoderPropertyValue(oa) {
|
|
111
|
+
let value;
|
|
112
|
+
const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([["@id", (value = OntologyAnnotation_ROCrate_genID(oa), {
|
|
113
|
+
Encode(helpers) {
|
|
114
|
+
return helpers.encodeString(value);
|
|
115
|
+
}
|
|
116
|
+
})], ["@type", {
|
|
117
|
+
Encode(helpers_1) {
|
|
118
|
+
return helpers_1.encodeString("PropertyValue");
|
|
119
|
+
}
|
|
120
|
+
}], tryInclude("category", (value_2) => ({
|
|
121
|
+
Encode(helpers_2) {
|
|
122
|
+
return helpers_2.encodeString(value_2);
|
|
123
|
+
}
|
|
124
|
+
}), oa.Name), tryInclude("categoryCode", (value_4) => ({
|
|
125
|
+
Encode(helpers_3) {
|
|
126
|
+
return helpers_3.encodeString(value_4);
|
|
127
|
+
}
|
|
128
|
+
}), oa.TermAccessionNumber), tryIncludeSeq("comments", ROCrate_encoderDisambiguatingDescription, oa.Comments), ["@context", context_jsonvalue$1]]));
|
|
129
|
+
return {
|
|
130
|
+
Encode(helpers_4) {
|
|
131
|
+
const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values_1);
|
|
132
|
+
return helpers_4.encodeObject(arg);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
const OntologyAnnotation_ROCrate_decoderPropertyValue = object((get$) => {
|
|
137
|
+
let objectArg, objectArg_1, arg_5, objectArg_2;
|
|
138
|
+
return OntologyAnnotation.create(unwrap((objectArg = get$.Optional, objectArg.Field("category", string))), void 0, unwrap((objectArg_1 = get$.Optional, objectArg_1.Field("categoryCode", string))), unwrap((arg_5 = resizeArray(ROCrate_decoderDisambiguatingDescription), objectArg_2 = get$.Optional, objectArg_2.Field("comments", arg_5))));
|
|
139
|
+
});
|
|
140
|
+
function OntologyAnnotation_ISAJson_encoder(idMap, oa) {
|
|
141
|
+
const f = (oa_1) => {
|
|
142
|
+
const comments = filter((c) => {
|
|
143
|
+
const matchValue = c.Name;
|
|
144
|
+
let matchResult;
|
|
145
|
+
if (matchValue != null) {
|
|
146
|
+
if (value(matchValue) === orderName) {
|
|
147
|
+
matchResult = 0;
|
|
148
|
+
value(matchValue);
|
|
149
|
+
} else {
|
|
150
|
+
matchResult = 1;
|
|
151
|
+
}
|
|
152
|
+
} else {
|
|
153
|
+
matchResult = 1;
|
|
154
|
+
}
|
|
155
|
+
switch (matchResult) {
|
|
156
|
+
case 0:
|
|
157
|
+
return false;
|
|
158
|
+
default:
|
|
159
|
+
return true;
|
|
160
|
+
}
|
|
161
|
+
}, oa_1.Comments);
|
|
162
|
+
const values_1 = choose((tupledArg) => map$1((v_1) => [tupledArg[0], v_1], tupledArg[1]), ofArray([tryInclude("@id", (value) => ({
|
|
163
|
+
Encode(helpers) {
|
|
164
|
+
return helpers.encodeString(value);
|
|
165
|
+
}
|
|
166
|
+
}), OntologyAnnotation_ROCrate_genID(oa_1)), tryInclude("annotationValue", (value_2) => ({
|
|
167
|
+
Encode(helpers_1) {
|
|
168
|
+
return helpers_1.encodeString(value_2);
|
|
169
|
+
}
|
|
170
|
+
}), oa_1.Name), tryInclude("termSource", (value_4) => ({
|
|
171
|
+
Encode(helpers_2) {
|
|
172
|
+
return helpers_2.encodeString(value_4);
|
|
173
|
+
}
|
|
174
|
+
}), oa_1.TermSourceREF), tryInclude("termAccession", (value_6) => ({
|
|
175
|
+
Encode(helpers_3) {
|
|
176
|
+
return helpers_3.encodeString(value_6);
|
|
177
|
+
}
|
|
178
|
+
}), oa_1.TermAccessionNumber), tryIncludeSeq("comments", encoder, comments)]));
|
|
179
|
+
return {
|
|
180
|
+
Encode(helpers_4) {
|
|
181
|
+
const arg = map$2((tupledArg_1) => [tupledArg_1[0], tupledArg_1[1].Encode(helpers_4)], values_1);
|
|
182
|
+
return helpers_4.encodeObject(arg);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
if (idMap != null) {
|
|
187
|
+
return encode(OntologyAnnotation_ROCrate_genID, f, oa, value(idMap));
|
|
188
|
+
} else {
|
|
189
|
+
return f(oa);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
const OntologyAnnotation_ISAJson_decoder = OntologyAnnotation_decoder;
|
|
193
|
+
|
|
194
|
+
export { AnnotationValue_decoder, OntologyAnnotation_ISAJson_decoder, OntologyAnnotation_ISAJson_encoder, OntologyAnnotation_ROCrate_decoderDefinedTerm, OntologyAnnotation_ROCrate_decoderPropertyValue, OntologyAnnotation_ROCrate_encoderDefinedTerm, OntologyAnnotation_ROCrate_encoderPropertyValue, OntologyAnnotation_ROCrate_genID, OntologyAnnotation_compressedDecoder, OntologyAnnotation_compressedEncoder, OntologyAnnotation_decoder, OntologyAnnotation_encoder };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
2
|
-
import { Decoder$1, IEncodable } from '../fable_modules/Thoth.Json.Core.0.
|
|
2
|
+
import { Decoder$1, IEncodable } from '../fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
3
3
|
import { OntologySourceReference } from '../Core/OntologySourceReference.js';
|
|
4
4
|
import { IMap } from '@fable-org/fable-library-js/Util.js';
|
|
5
5
|
export declare function encoder(osr: OntologySourceReference): IEncodable;
|