@nfdi4plants/arctrl 3.0.0-beta.9 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -3
- package/dist/ts/index.d.ts +54 -16
- package/dist/ts/index.d.ts.map +1 -1
- package/dist/ts/index.js +56 -18
- package/dist/ts/ts/ARC.d.ts +26 -9
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +148 -63
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts +62 -0
- package/dist/ts/ts/CWL/CWLProcessingUnit.d.ts.map +1 -0
- package/dist/ts/ts/CWL/CWLProcessingUnit.js +250 -0
- package/dist/ts/ts/CWL/CWLTypes.d.ts +148 -0
- package/dist/ts/ts/CWL/CWLTypes.d.ts.map +1 -0
- package/dist/ts/ts/CWL/CWLTypes.js +384 -0
- package/dist/ts/ts/CWL/Decode.d.ts +214 -0
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Decode.js +2667 -0
- package/dist/ts/ts/CWL/Encode.d.ts +103 -0
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Encode.js +1513 -0
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts +50 -0
- package/dist/ts/ts/CWL/ExpressionToolDescription.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ExpressionToolDescription.js +152 -0
- package/dist/ts/ts/CWL/HashHelpers.d.ts +9 -0
- package/dist/ts/ts/CWL/HashHelpers.d.ts.map +1 -0
- package/dist/ts/ts/CWL/HashHelpers.js +35 -0
- package/dist/ts/ts/CWL/Inputs.d.ts +31 -0
- package/dist/ts/ts/CWL/Inputs.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Inputs.js +86 -0
- package/dist/ts/ts/CWL/OperationDescription.d.ts +46 -0
- package/dist/ts/ts/CWL/OperationDescription.d.ts.map +1 -0
- package/dist/ts/ts/CWL/OperationDescription.js +133 -0
- package/dist/ts/ts/CWL/Outputs.d.ts +44 -0
- package/dist/ts/ts/CWL/Outputs.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Outputs.js +143 -0
- package/dist/ts/ts/CWL/ParameterReference.d.ts +23 -0
- package/dist/ts/ts/CWL/ParameterReference.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ParameterReference.js +60 -0
- package/dist/ts/ts/CWL/Requirements.d.ts +206 -0
- package/dist/ts/ts/CWL/Requirements.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Requirements.js +384 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts +50 -0
- package/dist/ts/ts/CWL/ToolDescription.d.ts.map +1 -0
- package/dist/ts/ts/CWL/ToolDescription.js +152 -0
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts +50 -0
- package/dist/ts/ts/CWL/WorkflowDescription.d.ts.map +1 -0
- package/dist/ts/ts/CWL/WorkflowDescription.js +142 -0
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +160 -0
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts.map +1 -0
- package/dist/ts/ts/CWL/WorkflowSteps.js +317 -0
- package/dist/ts/ts/CWLRunResolver.d.ts +45 -0
- package/dist/ts/ts/CWLRunResolver.d.ts.map +1 -0
- package/dist/ts/ts/CWLRunResolver.js +181 -0
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +27 -9
- package/dist/ts/ts/Contract/ArcRun.d.ts +6 -0
- package/dist/ts/ts/Contract/ArcRun.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcRun.js +131 -4
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts +3 -0
- package/dist/ts/ts/Contract/ArcWorkflow.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ArcWorkflow.js +70 -4
- package/dist/ts/ts/Contract/Datamap.d.ts +25 -25
- package/dist/ts/ts/Contract/Datamap.js +34 -34
- package/dist/ts/ts/ContractIO/ContractIO.d.ts.map +1 -1
- package/dist/ts/ts/ContractIO/ContractIO.js +3 -1
- package/dist/ts/ts/Conversion/Assay.d.ts +13 -0
- package/dist/ts/ts/Conversion/Assay.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Assay.js +69 -0
- package/dist/ts/ts/Conversion/Basic.d.ts +105 -0
- package/dist/ts/ts/Conversion/Basic.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Basic.js +452 -0
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts +11 -0
- package/dist/ts/ts/Conversion/ColumnIndex.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/ColumnIndex.js +71 -0
- package/dist/ts/ts/Conversion/Datamap.d.ts +11 -0
- package/dist/ts/ts/Conversion/Datamap.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Datamap.js +21 -0
- package/dist/ts/ts/Conversion/DateTime.d.ts +4 -0
- package/dist/ts/ts/Conversion/DateTime.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/DateTime.js +23 -0
- package/dist/ts/ts/Conversion/Investigation.d.ts +12 -0
- package/dist/ts/ts/Conversion/Investigation.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Investigation.js +79 -0
- package/dist/ts/ts/Conversion/Person.d.ts +16 -0
- package/dist/ts/ts/Conversion/Person.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Person.js +100 -0
- package/dist/ts/ts/Conversion/Process.d.ts +84 -0
- package/dist/ts/ts/Conversion/Process.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Process.js +455 -0
- package/dist/ts/ts/Conversion/Run.d.ts +35 -0
- package/dist/ts/ts/Conversion/Run.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Run.js +254 -0
- package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts +16 -0
- package/dist/ts/ts/Conversion/ScholarlyArticle.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/ScholarlyArticle.js +116 -0
- package/dist/ts/ts/Conversion/Study.d.ts +12 -0
- package/dist/ts/ts/Conversion/Study.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Study.js +51 -0
- package/dist/ts/ts/Conversion/Table.d.ts +45 -0
- package/dist/ts/ts/Conversion/Table.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Table.js +203 -0
- package/dist/ts/ts/Conversion/Workflow.d.ts +91 -0
- package/dist/ts/ts/Conversion/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/Conversion/Workflow.js +455 -0
- package/dist/ts/ts/Conversion.d.ts +25 -276
- package/dist/ts/ts/Conversion.d.ts.map +1 -1
- package/dist/ts/ts/Conversion.js +64 -1477
- package/dist/ts/ts/Core/ArcTypes.d.ts +69 -59
- package/dist/ts/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/ts/Core/ArcTypes.js +222 -142
- package/dist/ts/ts/Core/{DataMap.d.ts → Datamap.d.ts} +24 -24
- package/dist/ts/ts/Core/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
- package/dist/ts/ts/Core/{DataMap.js → Datamap.js} +36 -36
- package/dist/ts/ts/Core/Helper/Identifier.d.ts +24 -0
- package/dist/ts/ts/Core/Helper/Identifier.d.ts.map +1 -1
- package/dist/ts/ts/Core/Helper/Identifier.js +35 -2
- package/dist/ts/ts/Core/Table/ArcTable.d.ts +8 -8
- package/dist/ts/ts/Core/Table/ArcTable.d.ts.map +1 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +20 -20
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +4 -4
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -27
- package/dist/ts/ts/FileSystem/Path.d.ts +22 -0
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +173 -3
- package/dist/ts/ts/Json/Assay.js +5 -5
- package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts.map +1 -1
- package/dist/ts/ts/Json/{DataMap/DataMap.d.ts → Datamap/Datamap.d.ts} +6 -6
- package/dist/ts/ts/Json/{DataMap/DataMap.d.ts.map → Datamap/Datamap.d.ts.map} +1 -1
- package/dist/ts/ts/Json/{DataMap/DataMap.js → Datamap/Datamap.js} +2 -2
- package/dist/ts/ts/Json/ROCrate/LDContext.d.ts.map +1 -1
- package/dist/ts/ts/Json/ROCrate/LDContext.js +21 -11
- package/dist/ts/ts/Json/ROCrate/LDNode.d.ts +1 -0
- package/dist/ts/ts/Json/ROCrate/LDNode.d.ts.map +1 -1
- package/dist/ts/ts/Json/ROCrate/LDNode.js +18 -7
- package/dist/ts/ts/Json/Run.js +5 -5
- package/dist/ts/ts/Json/Study.js +5 -5
- package/dist/ts/ts/Json/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Json/Workflow.js +10 -11
- package/dist/ts/ts/Json.d.ts +3 -5
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +4 -10
- package/dist/ts/ts/JsonIO/Datamap.d.ts +4 -4
- package/dist/ts/ts/JsonIO/Datamap.js +6 -6
- package/dist/ts/ts/JsonIO/Investigation.d.ts +0 -6
- package/dist/ts/ts/JsonIO/Investigation.d.ts.map +1 -1
- package/dist/ts/ts/JsonIO/Investigation.js +2 -21
- package/dist/ts/ts/License.js +1 -1
- package/dist/ts/ts/ROCrate/LDContext.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDContext.js +35 -31
- package/dist/ts/ts/ROCrate/LDObject.d.ts +2 -2
- package/dist/ts/ts/ROCrate/LDObject.js +2 -2
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts +63 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputationalWorkflow.js +361 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts +39 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/ComputerLanguage.js +219 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts +43 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/CreateAction.js +224 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.js +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.d.ts +34 -22
- package/dist/ts/ts/ROCrate/LDTypes/Dataset.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Dataset.js +59 -2
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.d.ts +10 -4
- package/dist/ts/ts/ROCrate/LDTypes/File.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/File.js +34 -1
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts +59 -0
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/FormalParameter.js +344 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.d.ts +2 -0
- package/dist/ts/ts/ROCrate/LDTypes/LabProcess.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProcess.js +31 -5
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.d.ts +6 -2
- package/dist/ts/ts/ROCrate/LDTypes/LabProtocol.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/LabProtocol.js +66 -15
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.d.ts +35 -11
- package/dist/ts/ts/ROCrate/LDTypes/PropertyValue.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PropertyValue.js +191 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts +46 -0
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/SoftwareSourceCode.js +247 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts +12 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowInvocation.js +40 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts +11 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/LDTypes/WorkflowProtocol.js +46 -0
- package/dist/ts/ts/ROCrate/ROCrateContext.d.ts +2 -2
- package/dist/ts/ts/ROCrate/ROCrateContext.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/ROCrateContext.js +6 -6
- package/dist/ts/ts/ROCrateIO.d.ts +7 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +82 -13
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcRun.js +2 -2
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +3 -3
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +2 -2
- package/dist/ts/ts/Spreadsheet/Datamap.d.ts +8 -0
- package/dist/ts/ts/Spreadsheet/{DataMap.d.ts.map → Datamap.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMap.js → Datamap.js} +9 -9
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts → DatamapTable/DatamapColumn.d.ts} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts.map → DatamapTable/DatamapColumn.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.js → DatamapTable/DatamapColumn.js} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts → DatamapTable/DatamapHeader.d.ts} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts.map → DatamapTable/DatamapHeader.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts → DatamapTable/DatamapTable.d.ts} +5 -5
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts.map → DatamapTable/DatamapTable.d.ts.map} +1 -1
- package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.js → DatamapTable/DatamapTable.js} +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.d.ts.map +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +4 -4
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts +36 -0
- package/dist/ts/ts/WorkflowGraph/Adapters.d.ts.map +1 -0
- package/dist/ts/ts/WorkflowGraph/Adapters.js +94 -0
- package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts +37 -0
- package/dist/ts/ts/WorkflowGraph/BuildOptions.d.ts.map +1 -0
- package/dist/ts/ts/WorkflowGraph/BuildOptions.js +35 -0
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts +160 -0
- package/dist/ts/ts/WorkflowGraph/Builder.d.ts.map +1 -0
- package/dist/ts/ts/WorkflowGraph/Builder.js +556 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts +182 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.d.ts.map +1 -0
- package/dist/ts/ts/WorkflowGraph/GraphTypes.js +281 -0
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts +27 -0
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.d.ts.map +1 -0
- package/dist/ts/ts/WorkflowGraph/ReferenceParsing.js +49 -0
- package/dist/ts/ts/Xlsx.d.ts +5 -5
- package/dist/ts/ts/Xlsx.js +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +6 -6
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts.map +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +6 -6
- package/dist/ts/ts/Yaml.d.ts +24 -0
- package/dist/ts/ts/Yaml.d.ts.map +1 -0
- package/dist/ts/ts/Yaml.js +56 -0
- package/dist/ts/ts/fable_modules/DynamicObj.7.1.0/DynObj.fs.js +109 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.4}/Encode.fs.js +9 -9
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Escapes.fs.js +313 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/FlowToBlock.fs.js +956 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Persil.fs.js +562 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.4}/Preprocessing.fs.js +52 -12
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Reader.fs.js +1314 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Regex.fs.js +21 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/RegexActivePatterns.fs.js +313 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/StringBuffer.fs.js +60 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Writer.fs.js +391 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/YAMLiciousTypes.fs.js +317 -0
- package/package.json +1 -1
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +0 -1
- package/dist/ts/ts/ROCrate/Generic/File.d.ts.map +0 -1
- package/dist/ts/ts/ROCrate/Generic/LabProcess.d.ts.map +0 -1
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.d.ts.map +0 -1
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.d.ts.map +0 -1
- package/dist/ts/ts/Spreadsheet/DataMap.d.ts +0 -8
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +0 -10
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +0 -45
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +0 -483
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Regex.fs.js +0 -11
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +0 -212
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +0 -164
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +0 -152
- /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.d.ts +0 -0
- /package/dist/ts/ts/Json/{DataMap → Datamap}/DataContext.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Comment.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/CreativeWork.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/DefinedTerm.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Organization.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Person.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/PostalAddress.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/Sample.js +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.d.ts +0 -0
- /package/dist/ts/ts/ROCrate/{Generic → LDTypes}/ScholarlyArticle.js +0 -0
- /package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.js → DatamapTable/DatamapHeader.js} +0 -0
- /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/DynamicObj.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/FableJS.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/HashCodes.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/PropertyHelper.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{DynamicObj.7.0.1 → DynamicObj.7.1.0}/ReflectionUtils.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.4}/Decode.fs.js +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
2
|
-
import { LDNode } from './ROCrate/LDObject.js';
|
|
2
|
+
import { LDGraph, LDNode } from './ROCrate/LDObject.js';
|
|
3
3
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
4
4
|
import { License } from './License.js';
|
|
5
5
|
import { LDContext } from './ROCrate/LDContext.js';
|
|
6
|
-
import { ArcInvestigation } from './Core/ArcTypes.js';
|
|
6
|
+
import { ArcWorkflow, ArcRun, ArcInvestigation } from './Core/ArcTypes.js';
|
|
7
7
|
import { FileSystem } from './FileSystem/FileSystem.js';
|
|
8
8
|
import { Decoder$1, IEncodable } from './fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js';
|
|
9
9
|
export declare class ROCrate {
|
|
@@ -11,12 +11,16 @@ export declare class ROCrate {
|
|
|
11
11
|
}
|
|
12
12
|
export declare function ROCrate_$reflection(): TypeInfo;
|
|
13
13
|
export declare function ROCrate_get_metadataFileDescriptor(): LDNode;
|
|
14
|
+
export declare function ROCrate_get_metadataFileDescriptorWfRun(): LDNode;
|
|
14
15
|
export declare function ROCrate_createLicenseNode_29619109(license: Option<License>): LDNode;
|
|
15
16
|
export declare function ROCrate_getLicense_Z2F770004(license: LDNode, context?: LDContext): Option<License>;
|
|
16
|
-
export declare function
|
|
17
|
+
export declare function ROCrate_encoder_Z7FE34C43(isa: ArcInvestigation, license?: License, fs?: FileSystem, ignoreBrokenWR?: boolean): IEncodable;
|
|
17
18
|
/**
|
|
18
19
|
* Returns ArcInvestigation, list of file Ids, and optional License
|
|
19
20
|
*/
|
|
20
21
|
export declare function ROCrate_get_decoder(): Decoder$1<[ArcInvestigation, string[], Option<License>]>;
|
|
22
|
+
export declare function ROCrate_packDatasetAsCrate_Z2DB026F7(dataset: LDNode, datasetName: string, datasetDescription: string, metadataFileDescriptor: Option<LDNode>, license: License): LDGraph;
|
|
23
|
+
export declare function ROCrate_writeRunAsCrate_5E53831D(arcRun: ArcRun, fileSystem: FileSystem, license: License): string;
|
|
24
|
+
export declare function ROCrate_writeWorkflowAsCrate_Z4A0538D9(arcWorkflow: ArcWorkflow, fileSystem: FileSystem, license: License): string;
|
|
21
25
|
export declare function ROCrate_get_decoderDeprecated(): Decoder$1<ArcInvestigation>;
|
|
22
26
|
//# sourceMappingURL=ROCrateIO.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ROCrateIO.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/ROCrateIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,
|
|
1
|
+
{"version":3,"file":"ROCrateIO.d.ts","sourceRoot":"","sources":["../../../src/ARCtrl/ts/ROCrateIO.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAA2D,OAAO,EAAS,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAGxH,OAAO,EAA4B,MAAM,EAAoB,MAAM,uCAAuC,CAAC;AAC3G,OAAO,EAAsB,OAAO,EAAE,MAAM,cAAc,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAMnD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAW1F,qBAAa,OAAO;;CAGnB;AAED,wBA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ject.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { LDNode, LDRef, DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5 } from './ROCrate/LDObject.js';
|
|
3
|
+
import { ofArray, filter, isEmpty, map as map$1 } from '../node_modules/@fable-org/fable-library-js/List.js';
|
|
4
|
+
import { LDCreativeWork } from './ROCrate/LDTypes/CreativeWork.js';
|
|
5
|
+
import { value, unwrap, bind, defaultArg } from '../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
6
|
import { License } from './License.js';
|
|
6
7
|
import { LDContext } from './ROCrate/LDContext.js';
|
|
7
|
-
import {
|
|
8
|
-
import { LDDataset } from './ROCrate/
|
|
8
|
+
import { ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_Z7960E96B, ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8, ARCtrl_ArcRun__ArcRun_ToROCrateRun_1695DD5C, ARCtrl_ArcWorkflow__ArcWorkflow_ToROCrateWorkflow_1695DD5C } from './Conversion.js';
|
|
9
|
+
import { LDDataset } from './ROCrate/LDTypes/Dataset.js';
|
|
9
10
|
import { now } from '../node_modules/@fable-org/fable-library-js/Date.js';
|
|
10
|
-
import {
|
|
11
|
+
import { initV1_2, initBioschemasContext, initV1_1 } from './ROCrate/ROCrateContext.js';
|
|
11
12
|
import { encoder, decoder } from './Json/ROCrate/LDGraph.js';
|
|
12
13
|
import { map } from './fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js';
|
|
13
14
|
import { ResizeArray_choose } from './Core/Helper/Collections.js';
|
|
14
|
-
import { LDFile } from './ROCrate/
|
|
15
|
-
import { exactlyOne } from '../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
15
|
+
import { LDFile } from './ROCrate/LDTypes/File.js';
|
|
16
|
+
import { iterate, tryHead, exactlyOne } from '../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
17
|
+
import { join, replace, toFail, printf } from '../node_modules/@fable-org/fable-library-js/String.js';
|
|
18
|
+
import { LDCreateAction } from './ROCrate/LDTypes/CreateAction.js';
|
|
19
|
+
import { ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F } from './JsonIO/LDObject.js';
|
|
20
|
+
import { LDComputationalWorkflow } from './ROCrate/LDTypes/ComputationalWorkflow.js';
|
|
16
21
|
import { decoder as decoder$1 } from './Json/ROCrate/LDNode.js';
|
|
17
22
|
|
|
18
23
|
class ROCrate {
|
|
@@ -24,7 +29,13 @@ function ROCrate_$reflection() {
|
|
|
24
29
|
}
|
|
25
30
|
function ROCrate_get_metadataFileDescriptor() {
|
|
26
31
|
const node = new LDNode("ro-crate-metadata.json", ["http://schema.org/CreativeWork"]);
|
|
27
|
-
node.SetProperty("http://purl.org/dc/terms/conformsTo", new LDRef("https://w3id.org/ro/crate/1.
|
|
32
|
+
node.SetProperty("http://purl.org/dc/terms/conformsTo", new LDRef("https://w3id.org/ro/crate/1.2"));
|
|
33
|
+
node.SetProperty("http://schema.org/about", new LDRef("./"));
|
|
34
|
+
return node;
|
|
35
|
+
}
|
|
36
|
+
function ROCrate_get_metadataFileDescriptorWfRun() {
|
|
37
|
+
const node = new LDNode("ro-crate-metadata.json", ["http://schema.org/CreativeWork"]);
|
|
38
|
+
node.SetProperty("http://purl.org/dc/terms/conformsTo", ofArray([new LDRef("https://w3id.org/ro/crate/1.1"), new LDRef("https://w3id.org/workflowhub/workflow-ro-crate/1.0")]));
|
|
28
39
|
node.SetProperty("http://schema.org/about", new LDRef("./"));
|
|
29
40
|
return node;
|
|
30
41
|
}
|
|
@@ -73,13 +84,13 @@ function ROCrate_getLicense_Z2F770004(license, context) {
|
|
|
73
84
|
return new License("fulltext", "", path_1);
|
|
74
85
|
}
|
|
75
86
|
}
|
|
76
|
-
function
|
|
87
|
+
function ROCrate_encoder_Z7FE34C43(isa, license, fs, ignoreBrokenWR) {
|
|
77
88
|
const license_1 = ROCrate_createLicenseNode_29619109(license);
|
|
78
|
-
const isa_1 =
|
|
89
|
+
const isa_1 = ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_Z7960E96B(isa, unwrap(fs), unwrap(ignoreBrokenWR));
|
|
79
90
|
LDDataset.setSDDatePublishedAsDateTime(isa_1, now());
|
|
80
91
|
LDDataset.setLicenseAsCreativeWork(isa_1, license_1);
|
|
81
92
|
const graph = isa_1.Flatten();
|
|
82
|
-
const context = new LDContext(void 0, [
|
|
93
|
+
const context = new LDContext(void 0, [initV1_2(), initBioschemasContext()]);
|
|
83
94
|
graph.SetContext(context);
|
|
84
95
|
graph.AddNode(ROCrate_get_metadataFileDescriptor());
|
|
85
96
|
graph.Compact_InPlace();
|
|
@@ -104,8 +115,66 @@ function ROCrate_get_decoder() {
|
|
|
104
115
|
}
|
|
105
116
|
}, decoder);
|
|
106
117
|
}
|
|
118
|
+
function ROCrate_packDatasetAsCrate_Z2DB026F7(dataset, datasetName, datasetDescription, metadataFileDescriptor, license) {
|
|
119
|
+
const metadataFileDescriptor_1 = defaultArg(metadataFileDescriptor, ROCrate_get_metadataFileDescriptor());
|
|
120
|
+
const license_1 = ROCrate_createLicenseNode_29619109(license);
|
|
121
|
+
const mainEntity = LDDataset.create("./", void 0, void 0, void 0, void 0, void 0, datasetDescription, void 0, datasetName);
|
|
122
|
+
iterate((kv) => {
|
|
123
|
+
mainEntity.SetProperty(kv[0], kv[1]);
|
|
124
|
+
}, dataset.GetProperties(false));
|
|
125
|
+
LDDataset.setDateCreatedAsDateTime(mainEntity, now());
|
|
126
|
+
LDDataset.setLicenseAsCreativeWork(mainEntity, license_1);
|
|
127
|
+
const graph = mainEntity.Flatten();
|
|
128
|
+
const context = new LDContext(void 0, [initV1_2(), initBioschemasContext()]);
|
|
129
|
+
graph.SetContext(context);
|
|
130
|
+
graph.AddNode(metadataFileDescriptor_1);
|
|
131
|
+
graph.Compact_InPlace();
|
|
132
|
+
return graph;
|
|
133
|
+
}
|
|
134
|
+
function ROCrate_writeRunAsCrate_5E53831D(arcRun, fileSystem, license) {
|
|
135
|
+
const runDataset = ARCtrl_ArcRun__ArcRun_ToROCrateRun_1695DD5C(arcRun, fileSystem);
|
|
136
|
+
const missingDatasetProps = filter((prop) => !DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5(runDataset, prop), ofArray([LDDataset.identifier, LDDataset.name, LDDataset.description, LDDataset.about, LDDataset.mentions, LDDataset.creator, LDDataset.hasPart]));
|
|
137
|
+
if (!isEmpty(missingDatasetProps)) {
|
|
138
|
+
const missingPropsStr = join(", ", map$1((p) => replace(p, "http://schema.org/", ""), missingDatasetProps));
|
|
139
|
+
toFail(printf("Run dataset is missing required properties: %s"))(missingPropsStr);
|
|
140
|
+
}
|
|
141
|
+
let workflowInvocation;
|
|
142
|
+
const matchValue = tryHead(LDDataset.getAboutsAsWorkflowInvocation(runDataset));
|
|
143
|
+
if (matchValue == null) {
|
|
144
|
+
throw new Error("Run dataset 'about' property must contain a workflowInvocation");
|
|
145
|
+
} else {
|
|
146
|
+
workflowInvocation = value(matchValue);
|
|
147
|
+
}
|
|
148
|
+
const missingWfInvocationProps = filter((prop_1) => !DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5(workflowInvocation, prop_1), ofArray([LDCreateAction.name, LDCreateAction.instrument, LDCreateAction.result, LDCreateAction.object_]));
|
|
149
|
+
if (!isEmpty(missingWfInvocationProps)) {
|
|
150
|
+
const missingPropsStr_1 = join(", ", map$1((p_1) => replace(p_1, "http://schema.org/", ""), missingWfInvocationProps));
|
|
151
|
+
toFail(printf("WorkflowInvocation is missing required properties: %s"))(missingPropsStr_1);
|
|
152
|
+
}
|
|
153
|
+
return ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F(2)(ROCrate_packDatasetAsCrate_Z2DB026F7(runDataset, value(arcRun.Title), value(arcRun.Description), ROCrate_get_metadataFileDescriptorWfRun(), license));
|
|
154
|
+
}
|
|
155
|
+
function ROCrate_writeWorkflowAsCrate_Z4A0538D9(arcWorkflow, fileSystem, license) {
|
|
156
|
+
const workflowDataset = ARCtrl_ArcWorkflow__ArcWorkflow_ToROCrateWorkflow_1695DD5C(arcWorkflow, fileSystem);
|
|
157
|
+
const missingDatasetProps = filter((prop) => !DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5(workflowDataset, prop), ofArray([LDDataset.identifier, LDDataset.name, LDDataset.description, LDDataset.mainEntity, LDDataset.hasPart, LDDataset.creator]));
|
|
158
|
+
if (!isEmpty(missingDatasetProps)) {
|
|
159
|
+
const missingPropsStr = join(", ", map$1((p) => replace(p, "http://schema.org/", ""), missingDatasetProps));
|
|
160
|
+
toFail(printf("Workflow dataset is missing required properties: %s"))(missingPropsStr);
|
|
161
|
+
}
|
|
162
|
+
let workflowProtocol;
|
|
163
|
+
const matchValue = LDDataset.tryGetMainEntityAsWorkflowProtocol(workflowDataset);
|
|
164
|
+
if (matchValue == null) {
|
|
165
|
+
throw new Error("Workflow dataset 'mainEntity' property must contain a workflow protocol");
|
|
166
|
+
} else {
|
|
167
|
+
workflowProtocol = value(matchValue);
|
|
168
|
+
}
|
|
169
|
+
const missingProtocolProps = filter((prop_1) => !DynamicObj_DynamicObj__DynamicObj_HasProperty_Z721C83C5(workflowProtocol, prop_1), ofArray([LDComputationalWorkflow.creator, LDComputationalWorkflow.name, LDComputationalWorkflow.input, LDComputationalWorkflow.output, LDComputationalWorkflow.programmingLanguage, LDComputationalWorkflow.url, LDComputationalWorkflow.version, LDComputationalWorkflow.dateCreated]));
|
|
170
|
+
if (!isEmpty(missingProtocolProps)) {
|
|
171
|
+
const missingPropsStr_1 = join(", ", map$1((p_1) => replace(p_1, "http://schema.org/", ""), missingProtocolProps));
|
|
172
|
+
toFail(printf("Workflow protocol is missing required properties: %s"))(missingPropsStr_1);
|
|
173
|
+
}
|
|
174
|
+
return ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F(2)(ROCrate_packDatasetAsCrate_Z2DB026F7(workflowDataset, value(arcWorkflow.Title), value(arcWorkflow.Description), ROCrate_get_metadataFileDescriptorWfRun(), license));
|
|
175
|
+
}
|
|
107
176
|
function ROCrate_get_decoderDeprecated() {
|
|
108
177
|
return map((ldnode) => ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(exactlyOne(LDDataset.getAbouts(ldnode)), void 0, initV1_1()), decoder$1);
|
|
109
178
|
}
|
|
110
179
|
|
|
111
|
-
export { ROCrate, ROCrate_$reflection, ROCrate_createLicenseNode_29619109,
|
|
180
|
+
export { ROCrate, ROCrate_$reflection, ROCrate_createLicenseNode_29619109, ROCrate_encoder_Z7FE34C43, ROCrate_getLicense_Z2F770004, ROCrate_get_decoder, ROCrate_get_decoderDeprecated, ROCrate_get_metadataFileDescriptor, ROCrate_get_metadataFileDescriptorWfRun, ROCrate_packDatasetAsCrate_Z2DB026F7, ROCrate_writeRunAsCrate_5E53831D, ROCrate_writeWorkflowAsCrate_Z4A0538D9 };
|
|
@@ -11,7 +11,7 @@ import { FsWorksheet } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWork
|
|
|
11
11
|
import { toFail, printf, toConsole } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
12
12
|
import { FsWorkbook } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
|
|
13
13
|
import { tryFromFsWorksheet, toFsWorksheet as toFsWorksheet$1 } from './AnnotationTable/ArcTable.js';
|
|
14
|
-
import { tryFromFsWorksheet as tryFromFsWorksheet$1, toFsWorksheet } from './
|
|
14
|
+
import { tryFromFsWorksheet as tryFromFsWorksheet$1, toFsWorksheet } from './DatamapTable/DatamapTable.js';
|
|
15
15
|
|
|
16
16
|
function ArcAssay_fromRows(rows) {
|
|
17
17
|
const patternInput = exists((row) => {
|
|
@@ -153,7 +153,7 @@ function ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D(doc) {
|
|
|
153
153
|
if (!isEmpty$1(annotationTables)) {
|
|
154
154
|
assayMetadata.Tables = Array.from(annotationTables);
|
|
155
155
|
}
|
|
156
|
-
assayMetadata.
|
|
156
|
+
assayMetadata.Datamap = datamapSheet;
|
|
157
157
|
return assayMetadata;
|
|
158
158
|
} catch (err) {
|
|
159
159
|
const arg_2 = err.message;
|
|
@@ -169,7 +169,7 @@ function ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(assay, datamapS
|
|
|
169
169
|
iterate((arg) => {
|
|
170
170
|
const sheet = toFsWorksheet(arg);
|
|
171
171
|
doc.AddWorksheet(sheet);
|
|
172
|
-
}, toArray(assay.
|
|
172
|
+
}, toArray(assay.Datamap));
|
|
173
173
|
}
|
|
174
174
|
iterateIndexed((i, arg_1) => {
|
|
175
175
|
const sheet_1 = toFsWorksheet$1(i, arg_1);
|
|
@@ -11,7 +11,7 @@ import { FsWorksheet } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWork
|
|
|
11
11
|
import { toFail, printf, toConsole } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
12
12
|
import { FsWorkbook } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
|
|
13
13
|
import { tryFromFsWorksheet, toFsWorksheet } from './AnnotationTable/ArcTable.js';
|
|
14
|
-
import { tryFromFsWorksheet as tryFromFsWorksheet$1 } from './
|
|
14
|
+
import { tryFromFsWorksheet as tryFromFsWorksheet$1 } from './DatamapTable/DatamapTable.js';
|
|
15
15
|
|
|
16
16
|
function ArcRun_fromRows(rows) {
|
|
17
17
|
const en = getEnumerator(rows);
|
|
@@ -124,7 +124,7 @@ function ARCtrl_ArcRun__ArcRun_fromFsWorkbook_Static_32154C9D(doc) {
|
|
|
124
124
|
const sheets = doc.GetWorksheets();
|
|
125
125
|
const annotationTables = choose(tryFromFsWorksheet, sheets);
|
|
126
126
|
const datamapSheet = tryPick(tryFromFsWorksheet$1, sheets);
|
|
127
|
-
runMetadata.
|
|
127
|
+
runMetadata.Datamap = datamapSheet;
|
|
128
128
|
if (!isEmpty(annotationTables)) {
|
|
129
129
|
runMetadata.Tables = Array.from(annotationTables);
|
|
130
130
|
}
|
|
@@ -11,7 +11,7 @@ import { createMissingIdentifier } from '../Core/Helper/Identifier.js';
|
|
|
11
11
|
import { FsWorkbook } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
|
|
12
12
|
import { ResizeArray_choose, ResizeArray_isEmpty } from '../Core/Helper/Collections.js';
|
|
13
13
|
import { tryFromFsWorksheet, toFsWorksheet as toFsWorksheet$1 } from './AnnotationTable/ArcTable.js';
|
|
14
|
-
import { tryFromFsWorksheet as tryFromFsWorksheet$1, toFsWorksheet } from './
|
|
14
|
+
import { tryFromFsWorksheet as tryFromFsWorksheet$1, toFsWorksheet } from './DatamapTable/DatamapTable.js';
|
|
15
15
|
|
|
16
16
|
function ArcStudy_toMetadataSheet(study, assays) {
|
|
17
17
|
let source_1;
|
|
@@ -76,7 +76,7 @@ function ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D(doc) {
|
|
|
76
76
|
if (!ResizeArray_isEmpty(annotationTables)) {
|
|
77
77
|
studyMetadata.Tables = annotationTables;
|
|
78
78
|
}
|
|
79
|
-
studyMetadata.
|
|
79
|
+
studyMetadata.Datamap = datamapSheet;
|
|
80
80
|
return [studyMetadata, patternInput[1]];
|
|
81
81
|
} catch (err) {
|
|
82
82
|
const arg_2 = err.message;
|
|
@@ -92,7 +92,7 @@ function ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(study, assays,
|
|
|
92
92
|
iterate((arg) => {
|
|
93
93
|
const sheet = toFsWorksheet(arg);
|
|
94
94
|
doc.AddWorksheet(sheet);
|
|
95
|
-
}, toArray(study.
|
|
95
|
+
}, toArray(study.Datamap));
|
|
96
96
|
}
|
|
97
97
|
iterateIndexed((i, arg_1) => {
|
|
98
98
|
const sheet_1 = toFsWorksheet$1(i, arg_1);
|
|
@@ -10,7 +10,7 @@ import { delay, append, singleton, iterateIndexed, map, tryFind, tryPick } from
|
|
|
10
10
|
import { FsWorksheet } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js';
|
|
11
11
|
import { toFail, printf, toConsole } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
12
12
|
import { FsWorkbook } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
|
|
13
|
-
import { tryFromFsWorksheet } from './
|
|
13
|
+
import { tryFromFsWorksheet } from './DatamapTable/DatamapTable.js';
|
|
14
14
|
|
|
15
15
|
function ArcWorkflow_fromRows(rows) {
|
|
16
16
|
const en = getEnumerator(rows);
|
|
@@ -121,7 +121,7 @@ function ARCtrl_ArcWorkflow__ArcWorkflow_fromFsWorkbook_Static_32154C9D(doc) {
|
|
|
121
121
|
workflowMetadata = ArcWorkflow_fromMetadataSheet(value(matchValue));
|
|
122
122
|
}
|
|
123
123
|
const datamapSheet = tryPick(tryFromFsWorksheet, doc.GetWorksheets());
|
|
124
|
-
workflowMetadata.
|
|
124
|
+
workflowMetadata.Datamap = datamapSheet;
|
|
125
125
|
return workflowMetadata;
|
|
126
126
|
} catch (err) {
|
|
127
127
|
const arg_1 = err.message;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Datamap } from '../Core/Datamap.js';
|
|
2
|
+
import { FsWorkbook } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
|
|
3
|
+
/**
|
|
4
|
+
* Reads an datamap from a spreadsheet
|
|
5
|
+
*/
|
|
6
|
+
export declare function fromFsWorkbook(doc: FsWorkbook): Datamap;
|
|
7
|
+
export declare function toFsWorkbook(datamap: Datamap): FsWorkbook;
|
|
8
|
+
//# sourceMappingURL=Datamap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"Datamap.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Spreadsheet/Datamap.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,+DAA+D,CAAC;AAE3F;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAoBvD;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAKzD"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { toFail, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
2
2
|
import { tryPick, forAll } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
|
-
import { tryFromFsWorksheet, toFsWorksheet } from './
|
|
3
|
+
import { tryFromFsWorksheet, toFsWorksheet } from './DatamapTable/DatamapTable.js';
|
|
4
4
|
import { value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
|
-
import {
|
|
5
|
+
import { Datamap } from '../Core/Datamap.js';
|
|
6
6
|
import { FsWorkbook } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
|
|
7
7
|
|
|
8
8
|
function fromFsWorkbook(doc) {
|
|
9
9
|
try {
|
|
10
10
|
const worksheets = doc.GetWorksheets();
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
11
|
+
const datamapTable = tryPick(tryFromFsWorksheet, worksheets);
|
|
12
|
+
if (datamapTable == null) {
|
|
13
13
|
if (forAll((sheet) => sheet.CellCollection.Count === 0, worksheets)) {
|
|
14
|
-
return
|
|
14
|
+
return Datamap.init();
|
|
15
15
|
} else {
|
|
16
|
-
throw new Error("No
|
|
16
|
+
throw new Error("No DatamapTable was found in any of the sheets of the workbook");
|
|
17
17
|
}
|
|
18
18
|
} else {
|
|
19
|
-
return value(
|
|
19
|
+
return value(datamapTable);
|
|
20
20
|
}
|
|
21
21
|
} catch (err) {
|
|
22
22
|
const arg = err.message;
|
|
23
23
|
return toFail(printf("Could not parse datamap: \n%s"))(arg);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
function toFsWorkbook(
|
|
26
|
+
function toFsWorkbook(datamap) {
|
|
27
27
|
const doc = new FsWorkbook();
|
|
28
|
-
const sheet = toFsWorksheet(
|
|
28
|
+
const sheet = toFsWorksheet(datamap);
|
|
29
29
|
doc.AddWorksheet(sheet);
|
|
30
30
|
return doc;
|
|
31
31
|
}
|
package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.d.ts → DatamapTable/DatamapColumn.d.ts}
RENAMED
|
@@ -4,4 +4,4 @@ import { FsCell } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/Fs
|
|
|
4
4
|
import { DataContext } from '../../Core/DataContext.js';
|
|
5
5
|
export declare function setFromFsColumns(dc: DataContext[], columns: FSharpList<FsColumn>): DataContext[];
|
|
6
6
|
export declare function toFsColumns(dc: DataContext[]): FSharpList<FSharpList<FsCell>>;
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=DatamapColumn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"DatamapColumn.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Spreadsheet/DatamapTable/DatamapColumn.ts"],"names":[],"mappings":"AACA,OAAO,EAAiC,UAAU,EAAO,MAAM,qCAAqC,CAAC;AACrG,OAAO,EAAE,QAAQ,EAAE,MAAM,gEAAgE,CAAC;AAC1F,OAAO,EAAE,MAAM,EAAE,MAAM,oEAAoE,CAAC;AAC5F,OAAO,EAAwK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAS9N,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,GAAG,WAAW,EAAE,CAMhG;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAuB7E"}
|
package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapColumn.js → DatamapTable/DatamapColumn.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fromFsCells, toFsCells } from './
|
|
1
|
+
import { fromFsCells, toFsCells } from './DatamapHeader.js';
|
|
2
2
|
import { map, ofArray, singleton, transpose } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
3
3
|
import { FsCell } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js';
|
|
4
4
|
import { DataContext__get_Explication, DataContext__get_Unit, DataContext__get_ObjectType, DataContext__get_Description, DataContext__get_GeneratedBy, DataContext__get_Label } from '../../Core/DataContext.js';
|
package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapHeader.d.ts → DatamapTable/DatamapHeader.d.ts}
RENAMED
|
@@ -20,4 +20,4 @@ export declare function ActivePattern_$007CComment$007C_$007C(cells: FSharpList<
|
|
|
20
20
|
export declare function ActivePattern_$007CFreetext$007C_$007C(cells: FSharpList<FsCell>): Option<((arg0: DataContext) => ((arg0: FSharpList<FsCell>) => DataContext))>;
|
|
21
21
|
export declare function fromFsCells(cells: FSharpList<FsCell>): ((arg0: DataContext) => ((arg0: FSharpList<FsCell>) => DataContext));
|
|
22
22
|
export declare function toFsCells(commentKeys: FSharpList<string>): FSharpList<FsCell>;
|
|
23
|
-
//# sourceMappingURL=
|
|
23
|
+
//# sourceMappingURL=DatamapHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"DatamapHeader.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Spreadsheet/DatamapTable/DatamapHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,UAAU,EAAO,MAAM,qCAAqC,CAAC;AAC/G,OAAO,EAAE,MAAM,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AI,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,CA+B7J;AAED,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,CAyB9J;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK,WAAW,CAAC,CAAC,CA8E3H;AAED,wBAAgB,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAE7E"}
|
package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.d.ts → DatamapTable/DatamapTable.d.ts}
RENAMED
|
@@ -4,13 +4,13 @@ import { FsTable } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/
|
|
|
4
4
|
import { FsWorksheet } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js';
|
|
5
5
|
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
6
6
|
import { DataContext } from '../../Core/DataContext.js';
|
|
7
|
-
import {
|
|
7
|
+
import { Datamap } from '../../Core/Datamap.js';
|
|
8
8
|
export declare const helperColumnStrings: FSharpList<string>;
|
|
9
9
|
export declare function groupColumnsByHeader(columns: FSharpList<FsColumn>): FSharpList<FSharpList<FsColumn>>;
|
|
10
10
|
/**
|
|
11
11
|
* Returns the annotation table of the worksheet if it exists, else returns None
|
|
12
12
|
*/
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function tryDatamapTable(sheet: FsWorksheet): Option<FsTable>;
|
|
14
14
|
/**
|
|
15
15
|
* Groups and parses a collection of single columns into the according ISA composite columns
|
|
16
16
|
*/
|
|
@@ -18,6 +18,6 @@ export declare function composeColumns(columns: Iterable<FsColumn>): DataContext
|
|
|
18
18
|
/**
|
|
19
19
|
* Returns the protocol described by the headers and a function for parsing the values of the matrix to the processes of this protocol
|
|
20
20
|
*/
|
|
21
|
-
export declare function tryFromFsWorksheet(sheet: FsWorksheet): Option<
|
|
22
|
-
export declare function toFsWorksheet(table:
|
|
23
|
-
//# sourceMappingURL=
|
|
21
|
+
export declare function tryFromFsWorksheet(sheet: FsWorksheet): Option<Datamap>;
|
|
22
|
+
export declare function toFsWorksheet(table: Datamap): FsWorksheet;
|
|
23
|
+
//# sourceMappingURL=DatamapTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"DatamapTable.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Spreadsheet/DatamapTable/DatamapTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiD,UAAU,EAAW,MAAM,qCAAqC,CAAC;AAEzH,OAAO,EAAE,QAAQ,EAAE,MAAM,gEAAgE,CAAC;AAE1F,OAAO,EAAE,OAAO,EAAE,MAAM,sEAAsE,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAChG,OAAO,EAAoB,MAAM,EAAE,MAAM,uCAAuC,CAAC;AAEjF,OAAO,EAAE,WAAW,EAA+B,MAAM,2BAA2B,CAAC;AAIrF,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,MAAM,CAAgG,CAAC;AAEpJ,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,CAAC,QAAQ,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAKpG;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,CAEnE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,WAAW,EAAE,CAOzE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,CAgBtE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAqCzD"}
|
package/dist/ts/ts/Spreadsheet/{DataMapTable/DataMapTable.js → DatamapTable/DatamapTable.js}
RENAMED
|
@@ -5,9 +5,9 @@ import { FsWorksheet } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsW
|
|
|
5
5
|
import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
6
6
|
import { DataContext_$ctor_Z780A8A2A } from '../../Core/DataContext.js';
|
|
7
7
|
import { rangeDouble } from '../../../node_modules/@fable-org/fable-library-js/Range.js';
|
|
8
|
-
import { setFromFsColumns, toFsColumns } from './
|
|
8
|
+
import { setFromFsColumns, toFsColumns } from './DatamapColumn.js';
|
|
9
9
|
import { toFail, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
10
|
-
import {
|
|
10
|
+
import { Datamap } from '../../Core/Datamap.js';
|
|
11
11
|
import { FsRangeAddress } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js';
|
|
12
12
|
import { FsAddress } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js';
|
|
13
13
|
import { Dictionary_tryGet } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js';
|
|
@@ -20,7 +20,7 @@ function groupColumnsByHeader(columns) {
|
|
|
20
20
|
return !exists((s) => v.startsWith(s), helperColumnStrings);
|
|
21
21
|
}, columns);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function tryDatamapTable(sheet) {
|
|
24
24
|
return tryFind((t) => t.Name.startsWith("datamapTable"), sheet.Tables);
|
|
25
25
|
}
|
|
26
26
|
function composeColumns(columns) {
|
|
@@ -33,12 +33,12 @@ function composeColumns(columns) {
|
|
|
33
33
|
}
|
|
34
34
|
function tryFromFsWorksheet(sheet) {
|
|
35
35
|
try {
|
|
36
|
-
const matchValue =
|
|
36
|
+
const matchValue = tryDatamapTable(sheet);
|
|
37
37
|
if (matchValue == null) {
|
|
38
38
|
return void 0;
|
|
39
39
|
} else {
|
|
40
40
|
const t = value(matchValue);
|
|
41
|
-
return new
|
|
41
|
+
return new Datamap(composeColumns(t.GetColumns(sheet.CellCollection)));
|
|
42
42
|
}
|
|
43
43
|
} catch (err) {
|
|
44
44
|
const arg = sheet.Name;
|
|
@@ -82,4 +82,4 @@ function toFsWorksheet(table) {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export { composeColumns, groupColumnsByHeader, helperColumnStrings, toFsWorksheet,
|
|
85
|
+
export { composeColumns, groupColumnsByHeader, helperColumnStrings, toFsWorksheet, tryDatamapTable, tryFromFsWorksheet };
|
|
@@ -38,7 +38,7 @@ function fromString(identifier, title, description, workflowIdentifiers, measure
|
|
|
38
38
|
const measurementType_2 = Option_fromValueWithDefault(new OntologyAnnotation(), measurementType_1);
|
|
39
39
|
const technologyType_2 = Option_fromValueWithDefault(new OntologyAnnotation(), technologyType_1);
|
|
40
40
|
const technologyPlatform_1 = map(JsonTypes_decomposeTechnologyPlatform, technologyPlatform);
|
|
41
|
-
return ArcRun.make(identifier_4, title, description, measurementType_2, technologyType_2, technologyPlatform_1, workflowIdentifiers_1, [], void 0, [], comments);
|
|
41
|
+
return ArcRun.make(identifier_4, title, description, measurementType_2, technologyType_2, technologyPlatform_1, workflowIdentifiers_1, [], void 0, [], void 0, [], comments);
|
|
42
42
|
}
|
|
43
43
|
function fromSparseTable(matrix) {
|
|
44
44
|
let comments;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Spreadsheet/Metadata/Workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,UAAU,EAAW,MAAM,qCAAqC,CAAC;AACrH,OAAO,EAAsB,MAAM,EAAS,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"Workflow.d.ts","sourceRoot":"","sources":["../../../../../src/ARCtrl/ts/Spreadsheet/Metadata/Workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,UAAU,EAAW,MAAM,qCAAqC,CAAC;AACrH,OAAO,EAAsB,MAAM,EAAS,MAAM,uCAAuC,CAAC;AAO1F,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAA6F,WAAW,EAA+E,MAAM,kBAAkB,CAAC;AACvN,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAI7D,OAAO,EAAE,WAAW,EAAc,MAAM,qCAAqC,CAAC;AAE9E,eAAO,MAAM,eAAe,eAAe,CAAC;AAE5C,eAAO,MAAM,UAAU,UAAU,CAAC;AAElC,eAAO,MAAM,gBAAgB,gBAAgB,CAAC;AAE9C,eAAO,MAAM,iBAAiB,SAAS,CAAC;AAExC,eAAO,MAAM,4BAA4B,+BAA+B,CAAC;AAEzE,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AAE7D,eAAO,MAAM,2BAA2B,6BAA6B,CAAC;AAEtE,eAAO,MAAM,QAAQ,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY,YAAY,CAAC;AAEtC,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAErD,eAAO,MAAM,kCAAkC,qCAAqC,CAAC;AAErF,eAAO,MAAM,4BAA4B,+BAA+B,CAAC;AAEzE,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAErD,eAAO,MAAM,mBA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CAAC,CAGlJ;AAED,wBAAgB,MAAM,CAAC,QAAQ,EAAE,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAEjF"}
|
|
@@ -3,7 +3,7 @@ import { value, unwrap, defaultArg } from '../../../node_modules/@fable-org/fabl
|
|
|
3
3
|
import { map } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
4
4
|
import { OntologyAnnotation } from '../../Core/OntologyAnnotation.js';
|
|
5
5
|
import { Option_fromValueWithDefault, ResizeArray_iter } from '../../Core/Helper/Collections.js';
|
|
6
|
-
import {
|
|
6
|
+
import { OntologyAnnotation_fromAggregatedStrings, Component_fromAggregatedStrings, OntologyAnnotation_toAggregatedStrings, Component_toAggregatedStrings } from './Conversions.js';
|
|
7
7
|
import { createMissingIdentifier, Workflow_tryIdentifierFromFileName, Workflow_fileNameFromIdentifier } from '../../Core/Helper/Identifier.js';
|
|
8
8
|
import { ArcWorkflow } from '../../Core/ArcTypes.js';
|
|
9
9
|
import { Comment_fromString, Comment_toString } from './Comment.js';
|
|
@@ -44,7 +44,7 @@ function fromString(identifier, title, description, workflowType, workflowTypeTe
|
|
|
44
44
|
const v = OntologyAnnotation.create(unwrap(workflowType), unwrap(workflowTypeTermSourceREF), unwrap(workflowTypeTermAccessionNumber));
|
|
45
45
|
workflowType_1 = Option_fromValueWithDefault(new OntologyAnnotation(), v);
|
|
46
46
|
let parameters;
|
|
47
|
-
const collection_1 =
|
|
47
|
+
const collection_1 = OntologyAnnotation_fromAggregatedStrings(";", parametersName, parametersTermSourceREF, parametersTermAccessionNumber);
|
|
48
48
|
parameters = Array.from(collection_1);
|
|
49
49
|
let components;
|
|
50
50
|
const collection_2 = Component_fromAggregatedStrings(";", componentsName, componentsType, componentsTypeTermSourceREF, componentsTypeTermAccessionNumber);
|
|
@@ -60,7 +60,7 @@ function fromString(identifier, title, description, workflowType, workflowTypeTe
|
|
|
60
60
|
} else {
|
|
61
61
|
identifier_4 = value(identifier);
|
|
62
62
|
}
|
|
63
|
-
return ArcWorkflow.make(identifier_4, title, description, workflowType_1, uri, version, subworkflowIdentifiers_2, parameters, components, void 0, [], comments);
|
|
63
|
+
return ArcWorkflow.make(identifier_4, title, description, workflowType_1, uri, version, subworkflowIdentifiers_2, parameters, components, void 0, [], void 0, comments);
|
|
64
64
|
}
|
|
65
65
|
function fromSparseTable(matrix) {
|
|
66
66
|
const comments = map$1((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, 0])), matrix.CommentKeys);
|
|
@@ -73,7 +73,7 @@ function toSparseTable(workflow) {
|
|
|
73
73
|
let wt;
|
|
74
74
|
const tt = defaultArg(workflow.WorkflowType, new OntologyAnnotation());
|
|
75
75
|
wt = OntologyAnnotation.toStringObject(tt, true);
|
|
76
|
-
const pAgg =
|
|
76
|
+
const pAgg = OntologyAnnotation_toAggregatedStrings(";", Array.from(workflow.Parameters));
|
|
77
77
|
const cAgg = Component_toAggregatedStrings(";", ofSeq(workflow.Components));
|
|
78
78
|
const subWorkflowsAgg = join(";", workflow.SubWorkflowIdentifiers);
|
|
79
79
|
addToDict(matrix.Matrix, [identifierLabel, 1], patternInput[0]);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
2
|
+
import { ArcRun, ArcWorkflow, ArcInvestigation } from '../Core/ArcTypes.js';
|
|
3
|
+
import { FSharpMap } from '@fable-org/fable-library-js/Map.js';
|
|
4
|
+
import { CWLProcessingUnit_$union } from '../CWL/CWLProcessingUnit.js';
|
|
5
|
+
import { WorkflowGraphIndex, WorkflowGraph, GraphBuildIssue } from './GraphTypes.js';
|
|
6
|
+
import { FSharpResult$2_$union } from '@fable-org/fable-library-js/Result.js';
|
|
7
|
+
/**
|
|
8
|
+
* Builds a lookup map of normalized CWL file paths to processing units from all workflows and runs in an investigation.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createCwlLookupFromInvestigation(investigation: Option<ArcInvestigation>): FSharpMap<string, CWLProcessingUnit_$union>;
|
|
11
|
+
/**
|
|
12
|
+
* Wraps a CWL lookup map into a resolver function suitable for WorkflowGraphBuildOptions.TryResolveRunPath.
|
|
13
|
+
*/
|
|
14
|
+
export declare function createResolver(lookup: FSharpMap<string, CWLProcessingUnit_$union>): Option<((arg0: string) => Option<CWLProcessingUnit_$union>)>;
|
|
15
|
+
/**
|
|
16
|
+
* Creates a GraphBuildIssue for a workflow or run that has no CWL description.
|
|
17
|
+
*/
|
|
18
|
+
export declare function createMissingDescriptionError<$a>(identifier: string, scopeType: $a): GraphBuildIssue;
|
|
19
|
+
/**
|
|
20
|
+
* Converts an ArcWorkflow into a WorkflowGraph.
|
|
21
|
+
* Returns Error with a GraphBuildIssue if the workflow has no CWL description.
|
|
22
|
+
* Automatically creates a resolver from the parent investigation's CWL descriptions.
|
|
23
|
+
*/
|
|
24
|
+
export declare function ofWorkflow(workflow: ArcWorkflow): FSharpResult$2_$union<WorkflowGraph, GraphBuildIssue>;
|
|
25
|
+
/**
|
|
26
|
+
* Converts an ArcRun into a WorkflowGraph.
|
|
27
|
+
* Returns Error with a GraphBuildIssue if the run has no CWL description.
|
|
28
|
+
* Automatically creates a resolver from the parent investigation's CWL descriptions.
|
|
29
|
+
*/
|
|
30
|
+
export declare function ofRun(run: ArcRun): FSharpResult$2_$union<WorkflowGraph, GraphBuildIssue>;
|
|
31
|
+
/**
|
|
32
|
+
* Builds workflow graphs for all workflows and runs in an ArcInvestigation.
|
|
33
|
+
* Returns a WorkflowGraphIndex containing named results for each workflow and run.
|
|
34
|
+
*/
|
|
35
|
+
export declare function ofInvestigation(investigation: ArcInvestigation): WorkflowGraphIndex;
|
|
36
|
+
//# sourceMappingURL=Adapters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Adapters.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/WorkflowGraph/Adapters.ts"],"names":[],"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