@nfdi4plants/arctrl 3.0.0-beta.9 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +210 -0
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Decode.js +2617 -0
- package/dist/ts/ts/CWL/Encode.d.ts +96 -0
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -0
- package/dist/ts/ts/CWL/Encode.js +1509 -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 +5 -5
- 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 +5 -5
- 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.3}/Encode.fs.js +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/FlowToBlock.fs.js +954 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Persil.fs.js +1 -1
- package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Reader.fs.js +208 -152
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Regex.fs.js +15 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/RegexActivePatterns.fs.js +14 -10
- 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/Regex.fs.js +0 -11
- /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.3}/Decode.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Preprocessing.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/Writer.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.0.0.3 → YAMLicious.1.0.0-alpha.3}/YAMLiciousTypes.fs.js +0 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
2
|
+
import { writeYaml, encodeCWLType } from '../CWL/Encode.js';
|
|
3
|
+
import { CWLType_file } from '../CWL/CWLTypes.js';
|
|
4
|
+
import { exists, tryPick, find } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
5
|
+
import { replace, trimStart, join, toFail, printf } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
6
|
+
import { combineMany, combine } from '../FileSystem/Path.js';
|
|
7
|
+
import { value, defaultArg, bind, unwrap, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
8
|
+
import { equals } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
9
|
+
import { LDFile } from '../ROCrate/LDTypes/File.js';
|
|
10
|
+
import { LDPropertyValue } from '../ROCrate/LDTypes/PropertyValue.js';
|
|
11
|
+
import { ResizeArray_singleton, ResizeArray_map, ResizeArray_zip, ResizeArray_appendSingleton, Option_fromSeq, Option_fromValueWithDefault, ResizeArray_filter } from '../Core/Helper/Collections.js';
|
|
12
|
+
import { CWLParameterReference } from '../CWL/ParameterReference.js';
|
|
13
|
+
import { LDFormalParameter } from '../ROCrate/LDTypes/FormalParameter.js';
|
|
14
|
+
import { Run_cwlFileNameFromIdentifier } from '../Core/Helper/Identifier.js';
|
|
15
|
+
import { WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7, WorkflowConversion_getInputParametersFromProcessingUnit_30922B92, WorkflowConversion_decomposeWorkflowProtocolToProcessingUnit_ZB11202F } from './Workflow.js';
|
|
16
|
+
import { LDComputationalWorkflow } from '../ROCrate/LDTypes/ComputationalWorkflow.js';
|
|
17
|
+
import { ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586 } from './Table.js';
|
|
18
|
+
import { ArcTables } from '../Core/Table/ArcTables.js';
|
|
19
|
+
import { ofSeq } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
20
|
+
import { LDWorkflowInvocation } from '../ROCrate/LDTypes/WorkflowInvocation.js';
|
|
21
|
+
import { LDLabProcess } from '../ROCrate/LDTypes/LabProcess.js';
|
|
22
|
+
import { ArcRun } from '../Core/ArcTypes.js';
|
|
23
|
+
import { BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
|
|
24
|
+
import { PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
|
|
25
|
+
import { LDOrganization } from '../ROCrate/LDTypes/Organization.js';
|
|
26
|
+
import { utcNow } from '../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
27
|
+
import { DatamapConversion_composeFragmentDescriptors_Z892BFC3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F } from './Datamap.js';
|
|
28
|
+
import { Datamap } from '../Core/Datamap.js';
|
|
29
|
+
import { AssayConversion_getDataFilesFromProcesses_6BABD1B0 } from './Assay.js';
|
|
30
|
+
import { LDDataset } from '../ROCrate/LDTypes/Dataset.js';
|
|
31
|
+
import { LDWorkflowProtocol } from '../ROCrate/LDTypes/WorkflowProtocol.js';
|
|
32
|
+
|
|
33
|
+
class RunConversion {
|
|
34
|
+
constructor() {
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function RunConversion_$reflection() {
|
|
38
|
+
return class_type("ARCtrl.Conversion.RunConversion", void 0, RunConversion);
|
|
39
|
+
}
|
|
40
|
+
function RunConversion_formatCWLType_Z5C31A0F9(type_) {
|
|
41
|
+
const s = writeYaml(encodeCWLType(type_));
|
|
42
|
+
return s.trim();
|
|
43
|
+
}
|
|
44
|
+
function RunConversion_isArrayType_Z5C31A0F9(type_) {
|
|
45
|
+
switch (type_.tag) {
|
|
46
|
+
case /* Array */
|
|
47
|
+
11:
|
|
48
|
+
return true;
|
|
49
|
+
case /* Union */
|
|
50
|
+
14:
|
|
51
|
+
return exists((_arg) => {
|
|
52
|
+
if (_arg.tag === /* Array */
|
|
53
|
+
11) {
|
|
54
|
+
return true;
|
|
55
|
+
} else {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}, type_.fields[0]);
|
|
59
|
+
default:
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function RunConversion_composeCWLInputFilePath_Z384F8060(path, runName) {
|
|
64
|
+
if (path.startsWith("../..")) {
|
|
65
|
+
return replace(replace(path, "../../", ""), "../..", "");
|
|
66
|
+
} else {
|
|
67
|
+
return combineMany(["runs", runName, path]);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
function RunConversion_decomposeCWLInputFilePath_Z384F8060(path, runName) {
|
|
71
|
+
const prefix = combineMany(["runs", runName]);
|
|
72
|
+
if (path.startsWith(prefix)) {
|
|
73
|
+
return trimStart(replace(path, prefix, ""), "/");
|
|
74
|
+
} else {
|
|
75
|
+
return combine("../..", path);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function RunConversion_composeCWLInputValue_70DD9184(inputValue, exampleOfWork, inputParam, runName) {
|
|
79
|
+
if (inputParam.Type_ == null) {
|
|
80
|
+
throw new Error(`Cannot convert param values "${inputValue.Values}" as Input parameter "${inputParam.Name}" has no type.`);
|
|
81
|
+
}
|
|
82
|
+
const type_ = value(inputParam.Type_);
|
|
83
|
+
if (inputValue.Type != null) {
|
|
84
|
+
if (!equals(value(inputValue.Type), type_)) {
|
|
85
|
+
throw new Error(`Type (${RunConversion_formatCWLType_Z5C31A0F9(value(inputValue.Type))}) of yml input value "${inputValue.Key}" does not match type of workflow input parameter (${RunConversion_formatCWLType_Z5C31A0F9(type_)}).`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
let matchResult;
|
|
89
|
+
if (type_.tag === /* File */
|
|
90
|
+
0) {
|
|
91
|
+
if (inputValue.Values.length === 1) {
|
|
92
|
+
matchResult = 0;
|
|
93
|
+
} else if (RunConversion_isArrayType_Z5C31A0F9(type_)) {
|
|
94
|
+
matchResult = 1;
|
|
95
|
+
} else {
|
|
96
|
+
matchResult = 2;
|
|
97
|
+
}
|
|
98
|
+
} else if (RunConversion_isArrayType_Z5C31A0F9(type_)) {
|
|
99
|
+
matchResult = 1;
|
|
100
|
+
} else {
|
|
101
|
+
matchResult = 2;
|
|
102
|
+
}
|
|
103
|
+
switch (matchResult) {
|
|
104
|
+
case 0: {
|
|
105
|
+
const path = RunConversion_composeCWLInputFilePath_Z384F8060(inputValue.Values[0], runName);
|
|
106
|
+
return LDFile.createCWLParameter(path, exampleOfWork);
|
|
107
|
+
}
|
|
108
|
+
case 1: {
|
|
109
|
+
const values = join(defaultArg(bind((ib) => ib.ItemSeparator, inputParam.InputBinding), ","), inputValue.Values);
|
|
110
|
+
return LDPropertyValue.createCWLParameter(exampleOfWork, inputValue.Key, ResizeArray_singleton(values));
|
|
111
|
+
}
|
|
112
|
+
default:
|
|
113
|
+
return LDPropertyValue.createCWLParameter(exampleOfWork, inputValue.Key, inputValue.Values);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function RunConversion_decomposeCWLInputValue_Z1346FE9D(inputValue, runName, context, graph) {
|
|
117
|
+
let exampleOfWork;
|
|
118
|
+
const matchValue = LDFile.tryGetExampleOfWorkAsFormalParameter(inputValue, unwrap(graph), unwrap(context));
|
|
119
|
+
if (matchValue == null) {
|
|
120
|
+
const arg = inputValue.Id;
|
|
121
|
+
exampleOfWork = toFail(printf("Input value %s of run %s must have an exampleOfWork property pointing to a CWL formal parameter."))(arg)(runName);
|
|
122
|
+
} else {
|
|
123
|
+
exampleOfWork = value(matchValue);
|
|
124
|
+
}
|
|
125
|
+
const key = LDFormalParameter.getNameAsString(exampleOfWork, unwrap(context));
|
|
126
|
+
if (LDFile.validateCWLParameter(inputValue, unwrap(context))) {
|
|
127
|
+
return new CWLParameterReference(key, [RunConversion_decomposeCWLInputFilePath_Z384F8060(inputValue.Id, runName)], CWLType_file());
|
|
128
|
+
} else if (LDPropertyValue.validateCWLParameter(inputValue, unwrap(context))) {
|
|
129
|
+
return new CWLParameterReference(key, LDPropertyValue.getValuesAsString(inputValue, unwrap(context)));
|
|
130
|
+
} else {
|
|
131
|
+
const arg_2 = inputValue.Id;
|
|
132
|
+
return toFail(printf("Input value %s of run %s is neither a CWL File nor a CWL Parameter."))(arg_2)(runName);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function RunConversion_composeWorkflowInvocationFromArcRun_Z8CC08AC(run, fs) {
|
|
136
|
+
let b;
|
|
137
|
+
let workflowProtocol;
|
|
138
|
+
const workflowFilePath = Run_cwlFileNameFromIdentifier(run.Identifier);
|
|
139
|
+
const matchValue = run.CWLDescription;
|
|
140
|
+
if (matchValue == null) {
|
|
141
|
+
const arg = run.Identifier;
|
|
142
|
+
workflowProtocol = toFail(printf("Run %s must have a CWL description"))(arg);
|
|
143
|
+
} else {
|
|
144
|
+
workflowProtocol = WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7(workflowFilePath, value(matchValue), void 0, run.Identifier);
|
|
145
|
+
}
|
|
146
|
+
const inputParams = ResizeArray_map((tupledArg) => {
|
|
147
|
+
const ldI = tupledArg[1];
|
|
148
|
+
const name = LDFormalParameter.getNameAsString(ldI, unwrap(workflowProtocol.TryGetContext()));
|
|
149
|
+
const paramRef = tryPick((i_1) => {
|
|
150
|
+
if (i_1.Key === name) {
|
|
151
|
+
return i_1;
|
|
152
|
+
} else {
|
|
153
|
+
return void 0;
|
|
154
|
+
}
|
|
155
|
+
}, run.CWLInput);
|
|
156
|
+
if (paramRef == null) {
|
|
157
|
+
throw new Error(`Could not create workflow invocation for run "${run.Identifier}": Workflow parameter "${name}" had no assigned value.`);
|
|
158
|
+
} else {
|
|
159
|
+
return RunConversion_composeCWLInputValue_70DD9184(value(paramRef), ldI, tupledArg[0], run.Identifier);
|
|
160
|
+
}
|
|
161
|
+
}, (b = LDComputationalWorkflow.getInputsAsFormalParameters(workflowProtocol, void 0, unwrap(workflowProtocol.TryGetContext())), ResizeArray_zip(WorkflowConversion_getInputParametersFromProcessingUnit_30922B92(value(run.CWLDescription)), b)));
|
|
162
|
+
let processSequence;
|
|
163
|
+
const collection = ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(new ArcTables(run.Tables), void 0, void 0, unwrap(fs));
|
|
164
|
+
processSequence = Array.from(collection);
|
|
165
|
+
const mainInvocation = LDWorkflowInvocation.create(run.Identifier, workflowProtocol, inputParams, void 0, void 0, void 0, void 0, void 0, void 0, workflowProtocol);
|
|
166
|
+
if (processSequence.length === 0) {
|
|
167
|
+
return ResizeArray_singleton(mainInvocation);
|
|
168
|
+
} else {
|
|
169
|
+
return ResizeArray_appendSingleton(mainInvocation, ResizeArray_map((p) => {
|
|
170
|
+
const id = replace(p.Id, "Process", `WorkflowInvocation_${run.Identifier}`);
|
|
171
|
+
const name_1 = LDLabProcess.getNameAsString(p, unwrap(p.TryGetContext()));
|
|
172
|
+
const inputs = LDLabProcess.getObjects(p);
|
|
173
|
+
const results = Option_fromSeq(LDLabProcess.getResults(p));
|
|
174
|
+
const protocol = LDLabProcess.tryGetExecutesLabProtocol(p);
|
|
175
|
+
const parameterValues = Option_fromSeq(LDLabProcess.getParameterValues(p));
|
|
176
|
+
const agents = map(ResizeArray_singleton, LDLabProcess.tryGetAgent(p));
|
|
177
|
+
const disambiguatingDescriptions = Option_fromSeq(LDLabProcess.getDisambiguatingDescriptionsAsString(p));
|
|
178
|
+
return LDWorkflowInvocation.create(name_1, workflowProtocol, inputs, unwrap(results), void 0, unwrap(agents), id, void 0, unwrap(disambiguatingDescriptions), unwrap(protocol), unwrap(parameterValues));
|
|
179
|
+
}, processSequence));
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
function RunConversion_decomposeMainWorkflowInvocation_Z1346FE9D(workflowInvocation, runName, context, graph) {
|
|
183
|
+
let matchValue;
|
|
184
|
+
return [(matchValue = LDLabProcess.tryGetExecutesLabProtocol(workflowInvocation, unwrap(graph), unwrap(context)), matchValue == null ? (() => {
|
|
185
|
+
throw new Error(`Could not decompose workflow invocation for run "${runName}": Workflow parameter "name" had no assigned value.`);
|
|
186
|
+
})() : WorkflowConversion_decomposeWorkflowProtocolToProcessingUnit_ZB11202F(value(matchValue), void 0, unwrap(context), unwrap(graph))), ResizeArray_map((iv) => RunConversion_decomposeCWLInputValue_Z1346FE9D(iv, runName, unwrap(context), unwrap(graph)), LDLabProcess.getObjects(workflowInvocation, unwrap(graph), unwrap(context)))];
|
|
187
|
+
}
|
|
188
|
+
function RunConversion_composeRun_Z8CC08AC(run, fs) {
|
|
189
|
+
let fds_1, vm_1, fds, vm;
|
|
190
|
+
let workflowProtocol;
|
|
191
|
+
const workflowFilePath = Run_cwlFileNameFromIdentifier(run.Identifier);
|
|
192
|
+
const matchValue = run.CWLDescription;
|
|
193
|
+
if (matchValue == null) {
|
|
194
|
+
const arg = run.Identifier;
|
|
195
|
+
workflowProtocol = toFail(printf("Run %s must have a CWL description"))(arg);
|
|
196
|
+
} else {
|
|
197
|
+
workflowProtocol = WorkflowConversion_composeWorkflowProtocolFromProcessingUnit_Z3099C0F7(workflowFilePath, value(matchValue), void 0, run.Identifier);
|
|
198
|
+
}
|
|
199
|
+
const workflowInvocations = Option_fromSeq(RunConversion_composeWorkflowInvocationFromArcRun_Z8CC08AC(run, unwrap(fs)));
|
|
200
|
+
const measurementMethod = map(BaseTypes_composeDefinedTerm_ZDED3A0F, run.TechnologyType);
|
|
201
|
+
const measurementTechnique = map(BaseTypes_composeDefinedTerm_ZDED3A0F, run.TechnologyPlatform);
|
|
202
|
+
const variableMeasured = map(BaseTypes_composePropertyValueFromOA_ZDED3A0F, run.MeasurementType);
|
|
203
|
+
const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, run.Performers));
|
|
204
|
+
const publisher = LDOrganization.create("DataPLANT");
|
|
205
|
+
const dateCreated = utcNow();
|
|
206
|
+
if (creators != null) {
|
|
207
|
+
LDComputationalWorkflow.setCreators(workflowProtocol, value(creators));
|
|
208
|
+
}
|
|
209
|
+
LDComputationalWorkflow.setSdPublisher(workflowProtocol, publisher);
|
|
210
|
+
LDComputationalWorkflow.setDateCreatedAsDateTime(workflowProtocol, dateCreated);
|
|
211
|
+
const fragmentDescriptors = map(DatamapConversion_composeFragmentDescriptors_Z892BFC3, run.Datamap);
|
|
212
|
+
const dataFiles = map((ps) => AssayConversion_getDataFilesFromProcesses_6BABD1B0(ps, unwrap(fragmentDescriptors)), workflowInvocations);
|
|
213
|
+
const hasParts = dataFiles == null ? ResizeArray_singleton(workflowProtocol) : ResizeArray_appendSingleton(workflowProtocol, value(dataFiles));
|
|
214
|
+
const variableMeasureds = variableMeasured == null ? fragmentDescriptors == null ? void 0 : (fds_1 = value(fragmentDescriptors), fds_1) : fragmentDescriptors == null ? (vm_1 = value(variableMeasured), ResizeArray_singleton(vm_1)) : (fds = value(fragmentDescriptors), vm = value(variableMeasured), ResizeArray_appendSingleton(vm, fds));
|
|
215
|
+
const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, run.Comments));
|
|
216
|
+
return LDDataset.createARCRun(run.Identifier, ResizeArray_singleton(workflowProtocol), void 0, unwrap(run.Title), unwrap(run.Description), unwrap(creators), unwrap(hasParts), unwrap(measurementMethod), unwrap(measurementTechnique), unwrap(variableMeasureds), unwrap(workflowInvocations), unwrap(workflowInvocations), unwrap(comments));
|
|
217
|
+
}
|
|
218
|
+
function RunConversion_decomposeRun_Z6839B9E8(run, graph, context) {
|
|
219
|
+
const workflowProtocol = LDDataset.tryGetMainEntityAsWorkflowProtocol(run, unwrap(graph), unwrap(context));
|
|
220
|
+
const mainWorkflowInvocation = find((wi) => {
|
|
221
|
+
let lp;
|
|
222
|
+
const matchValue = LDLabProcess.tryGetExecutesLabProtocol(wi, unwrap(graph), unwrap(context));
|
|
223
|
+
let matchResult, lp_1;
|
|
224
|
+
if (matchValue != null) {
|
|
225
|
+
if (lp = value(matchValue), LDWorkflowProtocol.validate(lp, unwrap(context))) {
|
|
226
|
+
matchResult = 0;
|
|
227
|
+
lp_1 = value(matchValue);
|
|
228
|
+
} else {
|
|
229
|
+
matchResult = 1;
|
|
230
|
+
}
|
|
231
|
+
} else {
|
|
232
|
+
matchResult = 1;
|
|
233
|
+
}
|
|
234
|
+
switch (matchResult) {
|
|
235
|
+
case 0:
|
|
236
|
+
return true;
|
|
237
|
+
default:
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
}, LDDataset.getAboutsAsWorkflowInvocation(run, unwrap(graph), unwrap(context)));
|
|
241
|
+
const patternInput = workflowProtocol == null ? RunConversion_decomposeMainWorkflowInvocation_Z1346FE9D(mainWorkflowInvocation, LDDataset.getIdentifierAsString(run, unwrap(context)), unwrap(context), unwrap(graph)) : [WorkflowConversion_decomposeWorkflowProtocolToProcessingUnit_ZB11202F(value(workflowProtocol), void 0, unwrap(context), unwrap(graph)), ResizeArray_map((iv) => RunConversion_decomposeCWLInputValue_Z1346FE9D(iv, LDDataset.getIdentifierAsString(run, unwrap(context)), unwrap(context), unwrap(graph)), LDLabProcess.getObjects(mainWorkflowInvocation, unwrap(graph), unwrap(context)))];
|
|
242
|
+
const measurementMethod = map((m) => BaseTypes_decomposeDefinedTerm_Z2F770004(m, unwrap(context)), LDDataset.tryGetMeasurementMethodAsDefinedTerm(run, unwrap(graph), unwrap(context)));
|
|
243
|
+
const measurementTechnique = map((m_1) => BaseTypes_decomposeDefinedTerm_Z2F770004(m_1, unwrap(context)), LDDataset.tryGetMeasurementTechniqueAsDefinedTerm(run, unwrap(graph), unwrap(context)));
|
|
244
|
+
const variableMeasured = map((v) => BaseTypes_decomposePropertyValueToOA_Z2F770004(v, unwrap(context)), LDDataset.tryGetVariableMeasuredAsMeasurementType(run, unwrap(graph), unwrap(context)));
|
|
245
|
+
const contacts = ResizeArray_map((c) => PersonConversion_decomposePerson_Z6839B9E8(c, unwrap(graph), unwrap(context)), LDDataset.getCreators(run, unwrap(graph), unwrap(context)));
|
|
246
|
+
const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(run, unwrap(graph), unwrap(context)));
|
|
247
|
+
let datamap;
|
|
248
|
+
const v_1 = DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(LDDataset.getVariableMeasuredAsFragmentDescriptors(run, unwrap(graph), unwrap(context)), unwrap(graph), unwrap(context));
|
|
249
|
+
datamap = Option_fromValueWithDefault(Datamap.init(), v_1);
|
|
250
|
+
const tables = ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586(ofSeq(ResizeArray_filter((wi_1) => wi_1.Id !== mainWorkflowInvocation.Id, LDDataset.getAboutsAsLabProcess(run, unwrap(graph), unwrap(context)))), unwrap(graph), unwrap(context));
|
|
251
|
+
return ArcRun.create(LDDataset.getIdentifierAsString(run, unwrap(context)), unwrap(LDDataset.tryGetNameAsString(run, unwrap(context))), unwrap(LDDataset.tryGetDescriptionAsString(run, unwrap(context))), unwrap(variableMeasured), unwrap(measurementMethod), unwrap(measurementTechnique), void 0, tables.Tables, unwrap(datamap), contacts, patternInput[0], patternInput[1], comments);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export { RunConversion, RunConversion_$reflection, RunConversion_composeCWLInputFilePath_Z384F8060, RunConversion_composeCWLInputValue_70DD9184, RunConversion_composeRun_Z8CC08AC, RunConversion_composeWorkflowInvocationFromArcRun_Z8CC08AC, RunConversion_decomposeCWLInputFilePath_Z384F8060, RunConversion_decomposeCWLInputValue_Z1346FE9D, RunConversion_decomposeMainWorkflowInvocation_Z1346FE9D, RunConversion_decomposeRun_Z6839B9E8, RunConversion_formatCWLType_Z5C31A0F9, RunConversion_isArrayType_Z5C31A0F9 };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
2
|
+
import { LDGraph, LDNode } from '../ROCrate/LDObject.js';
|
|
3
|
+
import { LDContext } from '../ROCrate/LDContext.js';
|
|
4
|
+
import { Publication } from '../Core/Publication.js';
|
|
5
|
+
export declare class ScholarlyArticleConversion {
|
|
6
|
+
constructor();
|
|
7
|
+
}
|
|
8
|
+
export declare function ScholarlyArticleConversion_$reflection(): TypeInfo;
|
|
9
|
+
export declare function ScholarlyArticleConversion_composeAuthor_Z721C83C5(author: string): LDNode;
|
|
10
|
+
export declare function ScholarlyArticleConversion_splitAuthors_Z721C83C5(a: string): string[];
|
|
11
|
+
export declare function ScholarlyArticleConversion_composeAuthors_Z721C83C5(authors: string): LDNode[];
|
|
12
|
+
export declare function ScholarlyArticleConversion_decomposeAuthor_Z2F770004(author: LDNode, context?: LDContext): string;
|
|
13
|
+
export declare function ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5(authors: LDNode[], context?: LDContext): string;
|
|
14
|
+
export declare function ScholarlyArticleConversion_composeScholarlyArticle_D324A6D(publication: Publication): LDNode;
|
|
15
|
+
export declare function ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8(sa: LDNode, graph?: LDGraph, context?: LDContext): Publication;
|
|
16
|
+
//# sourceMappingURL=ScholarlyArticle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScholarlyArticle.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/ScholarlyArticle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAIjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AASzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAOpD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,qBAAa,0BAA0B;;CAGtC;AAED,wBAAgB,sCAAsC,IAAI,QAAQ,CAEjE;AAED,wBAAgB,kDAAkD,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAczF;AAED,wBAAgB,iDAAiD,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAmCrF;AAED,wBAAgB,mDAAmD,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAG7F;AAED,wBAAgB,oDAAoD,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAOhH;AAED,wBAAgB,oDAAoD,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAEnH;AAED,wBAAgB,0DAA0D,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAc3G;AAED,wBAAgB,8DAA8D,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAa5I"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
2
|
+
import { LDPerson } from '../ROCrate/LDTypes/Person.js';
|
|
3
|
+
import { fromString } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
|
|
4
|
+
import { decoder, encoder } from '../Json/ROCrate/LDNode.js';
|
|
5
|
+
import { toText, printf, join } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
6
|
+
import { StringBuilder_$ctor, StringBuilder__Clear, StringBuilder__Append_244C7CD6 } from '../../node_modules/@fable-org/fable-library-js/System.Text.js';
|
|
7
|
+
import { getEnumerator, disposeSafe } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
8
|
+
import { toString } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
9
|
+
import { map, isEmpty, filter, toList, delay, append, singleton, empty } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
10
|
+
import { unwrap, value, map as map$1 } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
11
|
+
import { toString as toString$1 } from '../fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
|
|
12
|
+
import { ResizeArray_map, Option_fromSeq, ResizeArray_tryPick } from '../Core/Helper/Collections.js';
|
|
13
|
+
import { BaseTypes_composeComment_Z13201A7E, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_decomposeComment_Z2F770004, BaseTypes_decomposeDefinedTerm_Z2F770004 } from './Basic.js';
|
|
14
|
+
import { LDPropertyValue } from '../ROCrate/LDTypes/PropertyValue.js';
|
|
15
|
+
import { LDScholarlyArticle } from '../ROCrate/LDTypes/ScholarlyArticle.js';
|
|
16
|
+
import { Publication } from '../Core/Publication.js';
|
|
17
|
+
|
|
18
|
+
class ScholarlyArticleConversion {
|
|
19
|
+
constructor() {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function ScholarlyArticleConversion_$reflection() {
|
|
23
|
+
return class_type("ARCtrl.Conversion.ScholarlyArticleConversion", void 0, ScholarlyArticleConversion);
|
|
24
|
+
}
|
|
25
|
+
function ScholarlyArticleConversion_composeAuthor_Z721C83C5(author) {
|
|
26
|
+
let arg;
|
|
27
|
+
try {
|
|
28
|
+
const matchValue = fromString(decoder, author);
|
|
29
|
+
if (matchValue.tag === /* Error */
|
|
30
|
+
1) {
|
|
31
|
+
throw new Error((arg = matchValue.fields[0], toText(printf("Error decoding string: %O"))(arg)));
|
|
32
|
+
} else {
|
|
33
|
+
return matchValue.fields[0];
|
|
34
|
+
}
|
|
35
|
+
} catch (matchValue_1) {
|
|
36
|
+
return LDPerson.create(author);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function ScholarlyArticleConversion_splitAuthors_Z721C83C5(a) {
|
|
40
|
+
let bracketCount = 0;
|
|
41
|
+
const authors = [];
|
|
42
|
+
const sb = StringBuilder_$ctor();
|
|
43
|
+
const enumerator = getEnumerator(a.split(""));
|
|
44
|
+
try {
|
|
45
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
46
|
+
const c = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
47
|
+
switch (c) {
|
|
48
|
+
case "{": {
|
|
49
|
+
bracketCount = bracketCount + 1 | 0;
|
|
50
|
+
StringBuilder__Append_244C7CD6(sb, c);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
case "}": {
|
|
54
|
+
bracketCount = bracketCount - 1 | 0;
|
|
55
|
+
StringBuilder__Append_244C7CD6(sb, c);
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
default:
|
|
59
|
+
if (c === "," && bracketCount === 0) {
|
|
60
|
+
void authors.push(toString(sb));
|
|
61
|
+
StringBuilder__Clear(sb);
|
|
62
|
+
} else {
|
|
63
|
+
StringBuilder__Append_244C7CD6(sb, c);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
} finally {
|
|
68
|
+
disposeSafe(enumerator);
|
|
69
|
+
}
|
|
70
|
+
void authors.push(toString(sb));
|
|
71
|
+
return authors;
|
|
72
|
+
}
|
|
73
|
+
function ScholarlyArticleConversion_composeAuthors_Z721C83C5(authors) {
|
|
74
|
+
const collection = map(ScholarlyArticleConversion_composeAuthor_Z721C83C5, ScholarlyArticleConversion_splitAuthors_Z721C83C5(authors));
|
|
75
|
+
return Array.from(collection);
|
|
76
|
+
}
|
|
77
|
+
function ScholarlyArticleConversion_decomposeAuthor_Z2F770004(author, context) {
|
|
78
|
+
if (isEmpty(filter((n) => n !== LDPerson.givenName, author.GetPropertyNames(unwrap(context))))) {
|
|
79
|
+
return LDPerson.getGivenNameAsString(author, unwrap(context));
|
|
80
|
+
} else {
|
|
81
|
+
return toString$1(0, encoder(author));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
function ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5(authors, context) {
|
|
85
|
+
return join(",", ResizeArray_map((a) => ScholarlyArticleConversion_decomposeAuthor_Z2F770004(a, unwrap(context)), authors));
|
|
86
|
+
}
|
|
87
|
+
function ScholarlyArticleConversion_composeScholarlyArticle_D324A6D(publication) {
|
|
88
|
+
let title;
|
|
89
|
+
const matchValue = publication.Title;
|
|
90
|
+
if (matchValue == null) {
|
|
91
|
+
throw new Error("Publication must have a title");
|
|
92
|
+
} else {
|
|
93
|
+
title = value(matchValue);
|
|
94
|
+
}
|
|
95
|
+
const authors_1 = map$1(ScholarlyArticleConversion_composeAuthors_Z721C83C5, publication.Authors);
|
|
96
|
+
const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, publication.Comments));
|
|
97
|
+
const identifiers = Array.from(toList(delay(() => append(publication.DOI != null && value(publication.DOI) !== "" ? singleton(LDPropertyValue.createDOI(value(publication.DOI))) : empty(), delay(() => publication.PubMedID != null && value(publication.PubMedID) !== "" ? singleton(LDPropertyValue.createPubMedID(value(publication.PubMedID))) : empty())))));
|
|
98
|
+
const status = map$1(BaseTypes_composeDefinedTerm_ZDED3A0F, publication.Status);
|
|
99
|
+
return LDScholarlyArticle.create(title, identifiers, void 0, unwrap(authors_1), void 0, unwrap(status), unwrap(comments));
|
|
100
|
+
}
|
|
101
|
+
function ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8(sa, graph, context) {
|
|
102
|
+
const title = LDScholarlyArticle.getHeadlineAsString(sa, unwrap(context));
|
|
103
|
+
const authors = map$1((a) => ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5(a, unwrap(context)), Option_fromSeq(LDScholarlyArticle.getAuthors(sa, unwrap(graph), unwrap(context))));
|
|
104
|
+
const comments = ResizeArray_map((c) => BaseTypes_decomposeComment_Z2F770004(c, unwrap(context)), LDScholarlyArticle.getComments(sa, unwrap(graph), unwrap(context)));
|
|
105
|
+
const status = map$1((s) => BaseTypes_decomposeDefinedTerm_Z2F770004(s, unwrap(context)), LDScholarlyArticle.tryGetCreativeWorkStatus(sa, unwrap(graph), unwrap(context)));
|
|
106
|
+
const identifiers = LDScholarlyArticle.getIdentifiersAsPropertyValue(sa, unwrap(graph), unwrap(context));
|
|
107
|
+
let doi;
|
|
108
|
+
const _arg = ResizeArray_tryPick((i) => LDPropertyValue.tryGetAsDOI(i, unwrap(context)), identifiers);
|
|
109
|
+
doi = _arg == null ? LDScholarlyArticle.tryGetSameAsAsString(sa, unwrap(context)) : value(_arg);
|
|
110
|
+
let pubMedID;
|
|
111
|
+
const _arg_1 = ResizeArray_tryPick((i_1) => LDPropertyValue.tryGetAsPubMedID(i_1, unwrap(context)), identifiers);
|
|
112
|
+
pubMedID = _arg_1 == null ? LDScholarlyArticle.tryGetUrlAsString(sa, unwrap(context)) : value(_arg_1);
|
|
113
|
+
return Publication.create(unwrap(pubMedID), unwrap(doi), unwrap(authors), title, unwrap(status), comments);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export { ScholarlyArticleConversion, ScholarlyArticleConversion_$reflection, ScholarlyArticleConversion_composeAuthor_Z721C83C5, ScholarlyArticleConversion_composeAuthors_Z721C83C5, ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, ScholarlyArticleConversion_decomposeAuthor_Z2F770004, ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5, ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8, ScholarlyArticleConversion_splitAuthors_Z721C83C5 };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
|
|
2
|
+
import { LDGraph, LDNode } from '../ROCrate/LDObject.js';
|
|
3
|
+
import { ArcStudy } from '../Core/ArcTypes.js';
|
|
4
|
+
import { FileSystem } from '../FileSystem/FileSystem.js';
|
|
5
|
+
import { LDContext } from '../ROCrate/LDContext.js';
|
|
6
|
+
export declare class StudyConversion {
|
|
7
|
+
constructor();
|
|
8
|
+
}
|
|
9
|
+
export declare function StudyConversion_$reflection(): TypeInfo;
|
|
10
|
+
export declare function StudyConversion_composeStudy_ZFE0E38E(study: ArcStudy, fs?: FileSystem): LDNode;
|
|
11
|
+
export declare function StudyConversion_decomposeStudy_Z6839B9E8(study: LDNode, graph?: LDGraph, context?: LDContext): ArcStudy;
|
|
12
|
+
//# sourceMappingURL=Study.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Study.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Study.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAOjF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAWzD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,qBAAa,eAAe;;CAG3B;AAED,wBAAgB,2BAA2B,IAAI,QAAQ,CAEtD;AAED,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,EAAE,UAAU,GAAG,MAAM,CAY9F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAWtH"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { class_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
2
|
+
import { bind, unwrap, map } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
|
+
import { tryFromString, toString } from './DateTime.js';
|
|
4
|
+
import { now } from '../../node_modules/@fable-org/fable-library-js/Date.js';
|
|
5
|
+
import { Option_fromSeq, ResizeArray_map, Option_fromValueWithDefault } from '../Core/Helper/Collections.js';
|
|
6
|
+
import { ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8 } from './ScholarlyArticle.js';
|
|
7
|
+
import { PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposePerson_Z6839B9E8 } from './Person.js';
|
|
8
|
+
import { ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586 } from './Table.js';
|
|
9
|
+
import { ArcTables } from '../Core/Table/ArcTables.js';
|
|
10
|
+
import { DatamapConversion_composeFragmentDescriptors_Z892BFC3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F } from './Datamap.js';
|
|
11
|
+
import { Datamap } from '../Core/Datamap.js';
|
|
12
|
+
import { AssayConversion_getDataFilesFromProcesses_6BABD1B0 } from './Assay.js';
|
|
13
|
+
import { BaseTypes_composeComment_Z13201A7E, BaseTypes_decomposeComment_Z2F770004 } from './Basic.js';
|
|
14
|
+
import { LDDataset } from '../ROCrate/LDTypes/Dataset.js';
|
|
15
|
+
import { ArcStudy } from '../Core/ArcTypes.js';
|
|
16
|
+
import { ofSeq } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
17
|
+
|
|
18
|
+
class StudyConversion {
|
|
19
|
+
constructor() {
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function StudyConversion_$reflection() {
|
|
23
|
+
return class_type("ARCtrl.Conversion.StudyConversion", void 0, StudyConversion);
|
|
24
|
+
}
|
|
25
|
+
function StudyConversion_composeStudy_ZFE0E38E(study, fs) {
|
|
26
|
+
let collection;
|
|
27
|
+
const dateCreated = bind(tryFromString, study.SubmissionDate);
|
|
28
|
+
const datePublished = bind(tryFromString, study.PublicReleaseDate);
|
|
29
|
+
const dateModified = now();
|
|
30
|
+
const publications = Option_fromSeq(ResizeArray_map(ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, study.Publications));
|
|
31
|
+
const creators = Option_fromSeq(ResizeArray_map(PersonConversion_composePerson_Z64D846DC, study.Contacts));
|
|
32
|
+
const processSequence = Option_fromSeq((collection = ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(new ArcTables(study.Tables), void 0, study.Identifier, unwrap(fs)), Array.from(collection)));
|
|
33
|
+
const fragmentDescriptors = map(DatamapConversion_composeFragmentDescriptors_Z892BFC3, study.Datamap);
|
|
34
|
+
const dataFiles = map((ps) => AssayConversion_getDataFilesFromProcesses_6BABD1B0(ps, unwrap(fragmentDescriptors)), processSequence);
|
|
35
|
+
const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, study.Comments));
|
|
36
|
+
return LDDataset.createStudy(study.Identifier, void 0, unwrap(creators), unwrap(dateCreated), unwrap(datePublished), dateModified, unwrap(study.Description), unwrap(dataFiles), unwrap(study.Title), unwrap(publications), unwrap(fragmentDescriptors), unwrap(comments), void 0, unwrap(processSequence));
|
|
37
|
+
}
|
|
38
|
+
function StudyConversion_decomposeStudy_Z6839B9E8(study, graph, context) {
|
|
39
|
+
const dateCreated = map(toString, LDDataset.tryGetDateCreatedAsDateTime(study, unwrap(context)));
|
|
40
|
+
const datePublished = map(toString, LDDataset.tryGetDatePublishedAsDateTime(study, unwrap(context)));
|
|
41
|
+
const publications = ResizeArray_map((p) => ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8(p, unwrap(graph), unwrap(context)), LDDataset.getCitations(study, unwrap(graph), unwrap(context)));
|
|
42
|
+
const creators = ResizeArray_map((c) => PersonConversion_decomposePerson_Z6839B9E8(c, unwrap(graph), unwrap(context)), LDDataset.getCreators(study, unwrap(graph), unwrap(context)));
|
|
43
|
+
let datamap;
|
|
44
|
+
const v = DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(LDDataset.getVariableMeasuredAsFragmentDescriptors(study, unwrap(graph), unwrap(context)), unwrap(graph), unwrap(context));
|
|
45
|
+
datamap = Option_fromValueWithDefault(Datamap.init(), v);
|
|
46
|
+
const tables = ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586(ofSeq(LDDataset.getAboutsAsLabProcess(study, unwrap(graph), unwrap(context))), unwrap(graph), unwrap(context));
|
|
47
|
+
const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(study, unwrap(graph), unwrap(context)));
|
|
48
|
+
return ArcStudy.create(LDDataset.getIdentifierAsString(study, unwrap(context)), unwrap(LDDataset.tryGetNameAsString(study, unwrap(context))), unwrap(LDDataset.tryGetDescriptionAsString(study, unwrap(context))), unwrap(dateCreated), unwrap(datePublished), publications, creators, void 0, tables.Tables, unwrap(datamap), void 0, comments);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { StudyConversion, StudyConversion_$reflection, StudyConversion_composeStudy_ZFE0E38E, StudyConversion_decomposeStudy_Z6839B9E8 };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { LDGraph, LDNode } from '../ROCrate/LDObject.js';
|
|
2
|
+
import { CompositeCell_$union } from '../Core/Table/CompositeCell.js';
|
|
3
|
+
import { CompositeHeader_$union } from '../Core/Table/CompositeHeader.js';
|
|
4
|
+
import { Option } from '@fable-org/fable-library-js/Option.js';
|
|
5
|
+
import { ArcTable } from '../Core/Table/ArcTable.js';
|
|
6
|
+
import { LDContext } from '../ROCrate/LDContext.js';
|
|
7
|
+
import { FSharpList } from '@fable-org/fable-library-js/List.js';
|
|
8
|
+
import { FileSystem } from '../FileSystem/FileSystem.js';
|
|
9
|
+
import { ArcTables } from '../Core/Table/ArcTables.js';
|
|
10
|
+
export declare function CompositeRow_toProtocol(tableName: string, row: Iterable<[CompositeHeader_$union, CompositeCell_$union]>): LDNode;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new table from an ISA protocol.
|
|
13
|
+
*
|
|
14
|
+
* The table will have at most one row, with the protocol information and the component values
|
|
15
|
+
*/
|
|
16
|
+
export declare function ARCtrl_ArcTable__ArcTable_fromProtocol_Static_Z6839B9E8(p: LDNode, graph?: LDGraph, context?: LDContext): ArcTable;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the list of protocols executed in this ArcTable
|
|
19
|
+
*/
|
|
20
|
+
export declare function ARCtrl_ArcTable__ArcTable_GetProtocols(this$: ArcTable): FSharpList<LDNode>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the list of processes specidified in this ArcTable
|
|
23
|
+
*/
|
|
24
|
+
export declare function ARCtrl_ArcTable__ArcTable_GetProcesses_5E660E5C(this$: ArcTable, assayName: Option<string>, studyName: Option<string>, fs: Option<FileSystem>): FSharpList<LDNode>;
|
|
25
|
+
/**
|
|
26
|
+
* Create a new table from a list of processes
|
|
27
|
+
*
|
|
28
|
+
* The name will be used as the sheet name
|
|
29
|
+
*
|
|
30
|
+
* The processes SHOULD have the same headers, or even execute the same protocol
|
|
31
|
+
*/
|
|
32
|
+
export declare function ARCtrl_ArcTable__ArcTable_fromProcesses_Static_Z3575FB5F(name: string, ps: FSharpList<LDNode>, graph?: LDGraph, context?: LDContext): ArcTable;
|
|
33
|
+
/**
|
|
34
|
+
* Return a list of all the processes in all the tables.
|
|
35
|
+
*/
|
|
36
|
+
export declare function ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(this$: ArcTables, assayName: Option<string>, studyName: Option<string>, fs: Option<FileSystem>): FSharpList<LDNode>;
|
|
37
|
+
/**
|
|
38
|
+
* Create a collection of tables from a list of processes.
|
|
39
|
+
*
|
|
40
|
+
* For this, the processes are grouped by nameroot ("nameroot_1", "nameroot_2" ...) or exectued protocol if no name exists
|
|
41
|
+
*
|
|
42
|
+
* Then each group is converted to a table with this nameroot as sheetname
|
|
43
|
+
*/
|
|
44
|
+
export declare function ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586(ps: FSharpList<LDNode>, graph?: LDGraph, context?: LDContext): ArcTables;
|
|
45
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/Conversion/Table.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGzD,OAAO,EAAE,oBAAoB,EAAiB,MAAM,gCAAgC,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAe,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIrD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAgC,UAAU,EAAyB,MAAM,qCAAqC,CAAC;AAItH,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,CAAC,GAAG,MAAM,CAkGhI;AAED;;;;GAIG;AACH,wBAAgB,uDAAuD,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CA4BjI;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAyB1F;AAED;;GAEG;AACH,wBAAgB,+CAA+C,CAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAQjL;AAED;;;;;;GAMG;AACH,wBAAgB,wDAAwD,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAG7J;AAED;;GAEG;AACH,wBAAgB,iDAAiD,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,MAAM,CAAC,CAEpL;AAED;;;;;;GAMG;AACH,wBAAgB,0DAA0D,CAAC,EAAE,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAMlJ"}
|