@nfdi4plants/arctrl 3.0.0-beta.4 → 3.0.0-beta.6
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/dist/ts/node_modules/@fable-org/fable-library-js/Array.js +894 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Async.js +121 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/BigInt.js +279 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Char.js +101 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Choice.js +187 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/CollectionUtil.js +156 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Date.js +183 -7
- package/dist/ts/node_modules/@fable-org/fable-library-js/DateOffset.js +217 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Decimal.js +154 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Double.js +20 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Collections.js +30 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/FSharp.Core.js +68 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Global.js +6 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Guid.js +98 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Int32.js +18 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/List.js +601 -5
- package/dist/ts/node_modules/@fable-org/fable-library-js/Long.js +10 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Map.js +760 -16
- package/dist/ts/node_modules/@fable-org/fable-library-js/MapUtil.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableMap.js +18 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/MutableSet.js +36 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Option.js +35 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Range.js +26 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Reflection.js +355 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/RegExp.js +21 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Result.js +133 -1
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq.js +543 -8
- package/dist/ts/node_modules/@fable-org/fable-library-js/Seq2.js +53 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/Set.js +673 -41
- package/dist/ts/node_modules/@fable-org/fable-library-js/String.js +197 -4
- package/dist/ts/node_modules/@fable-org/fable-library-js/System.Text.js +128 -3
- package/dist/ts/node_modules/@fable-org/fable-library-js/SystemException.js +8 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/TimeSpan.js +180 -0
- package/dist/ts/node_modules/@fable-org/fable-library-js/Types.js +20 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/Util.js +406 -2
- package/dist/ts/node_modules/@fable-org/fable-library-js/lib/big.js +2 -2
- package/dist/ts/ts/ARC.d.ts +12 -5
- package/dist/ts/ts/ARC.d.ts.map +1 -1
- package/dist/ts/ts/ARC.js +172 -93
- package/dist/ts/ts/Contract/ARC.d.ts.map +1 -1
- package/dist/ts/ts/Contract/ARC.js +8 -1
- package/dist/ts/ts/Contract/ArcAssay.js +14 -5
- package/dist/ts/ts/Contract/ArcInvestigation.js +10 -1
- package/dist/ts/ts/Contract/ArcRun.js +19 -6
- package/dist/ts/ts/Contract/ArcStudy.js +19 -6
- package/dist/ts/ts/Contract/ArcWorkflow.js +19 -6
- package/dist/ts/ts/Contract/Contract.js +42 -1
- package/dist/ts/ts/Contract/Datamap.js +61 -17
- package/dist/ts/ts/Contract/Git.d.ts.map +1 -1
- package/dist/ts/ts/Contract/Git.js +22 -6
- package/dist/ts/ts/Contract/License.d.ts +5 -0
- package/dist/ts/ts/Contract/License.d.ts.map +1 -0
- package/dist/ts/ts/Contract/License.js +34 -0
- package/dist/ts/ts/Contract/ValidationPackagesConfig.js +31 -6
- package/dist/ts/ts/ContractIO/ContractIO.js +5 -5
- package/dist/ts/ts/ContractIO/FileSystemHelper.js +16 -4
- package/dist/ts/ts/Conversion.js +321 -48
- package/dist/ts/ts/Core/ArcTypes.js +216 -15
- package/dist/ts/ts/Core/Comment.js +11 -1
- package/dist/ts/ts/Core/CommentList.js +77 -2
- package/dist/ts/ts/Core/Conversion.js +123 -43
- package/dist/ts/ts/Core/Data.js +9 -2
- package/dist/ts/ts/Core/DataContext.js +19 -4
- package/dist/ts/ts/Core/DataFile.js +38 -1
- package/dist/ts/ts/Core/DataMap.js +111 -5
- package/dist/ts/ts/Core/Helper/Collections.js +106 -5
- package/dist/ts/ts/Core/Helper/HashCodes.js +4 -4
- package/dist/ts/ts/Core/Helper/Identifier.js +100 -2
- package/dist/ts/ts/Core/Helper/Regex.js +134 -2
- package/dist/ts/ts/Core/Helper/SemVer.js +23 -2
- package/dist/ts/ts/Core/IdentifierSetters.d.ts +3 -1
- package/dist/ts/ts/Core/IdentifierSetters.d.ts.map +1 -1
- package/dist/ts/ts/Core/IdentifierSetters.js +27 -1
- package/dist/ts/ts/Core/OntologyAnnotation.js +4 -1
- package/dist/ts/ts/Core/OntologySourceReference.js +8 -1
- package/dist/ts/ts/Core/Person.js +8 -1
- package/dist/ts/ts/Core/Process/ColumnIndex.js +121 -4
- package/dist/ts/ts/Core/Process/Component.js +37 -4
- package/dist/ts/ts/Core/Process/Factor.js +9 -4
- package/dist/ts/ts/Core/Process/FactorValue.js +61 -4
- package/dist/ts/ts/Core/Process/Material.js +14 -4
- package/dist/ts/ts/Core/Process/MaterialAttribute.js +41 -3
- package/dist/ts/ts/Core/Process/MaterialAttributeValue.js +67 -4
- package/dist/ts/ts/Core/Process/MaterialType.js +15 -1
- package/dist/ts/ts/Core/Process/Process.js +150 -7
- package/dist/ts/ts/Core/Process/ProcessInput.js +48 -8
- package/dist/ts/ts/Core/Process/ProcessOutput.js +44 -7
- package/dist/ts/ts/Core/Process/ProcessParameterValue.js +10 -5
- package/dist/ts/ts/Core/Process/ProcessSequence.js +127 -6
- package/dist/ts/ts/Core/Process/Protocol.js +78 -4
- package/dist/ts/ts/Core/Process/ProtocolParameter.js +6 -2
- package/dist/ts/ts/Core/Process/Sample.js +21 -3
- package/dist/ts/ts/Core/Process/Source.js +13 -3
- package/dist/ts/ts/Core/Publication.js +8 -1
- package/dist/ts/ts/Core/Table/ArcTable.js +34 -25
- package/dist/ts/ts/Core/Table/ArcTableAux.js +150 -23
- package/dist/ts/ts/Core/Table/ArcTables.js +24 -15
- package/dist/ts/ts/Core/Table/CompositeCell.js +7 -3
- package/dist/ts/ts/Core/Table/CompositeColumn.js +8 -4
- package/dist/ts/ts/Core/Table/CompositeHeader.js +18 -15
- package/dist/ts/ts/Core/Template.js +12 -2
- package/dist/ts/ts/Core/Templates.js +8 -4
- package/dist/ts/ts/Core/Value.js +7 -3
- package/dist/ts/ts/CrossAsync.js +11 -1
- package/dist/ts/ts/FileSystem/Commit.js +18 -0
- package/dist/ts/ts/FileSystem/FileSystem.js +8 -3
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts +1 -0
- package/dist/ts/ts/FileSystem/FileSystemTree.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/FileSystemTree.js +20 -13
- package/dist/ts/ts/FileSystem/Path.d.ts +2 -0
- package/dist/ts/ts/FileSystem/Path.d.ts.map +1 -1
- package/dist/ts/ts/FileSystem/Path.js +17 -3
- package/dist/ts/ts/Json/Assay.d.ts +1 -1
- package/dist/ts/ts/Json/Assay.js +28 -28
- package/dist/ts/ts/Json/Comment.js +10 -10
- package/dist/ts/ts/Json/Data.js +6 -6
- package/dist/ts/ts/Json/DataMap/DataContext.js +4 -4
- package/dist/ts/ts/Json/DataMap/DataMap.js +2 -2
- package/dist/ts/ts/Json/Decode.js +14 -9
- package/dist/ts/ts/Json/Encode.js +43 -11
- package/dist/ts/ts/Json/Investigation.js +40 -22
- package/dist/ts/ts/Json/OntologyAnnotation.js +5 -5
- package/dist/ts/ts/Json/OntologySourceReference.js +2 -2
- package/dist/ts/ts/Json/Person.js +26 -26
- package/dist/ts/ts/Json/Process/Component.d.ts +6 -4
- package/dist/ts/ts/Json/Process/Component.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/Component.js +27 -7
- package/dist/ts/ts/Json/Process/Factor.js +3 -3
- package/dist/ts/ts/Json/Process/FactorValue.js +8 -8
- package/dist/ts/ts/Json/Process/Material.js +9 -9
- package/dist/ts/ts/Json/Process/MaterialAttribute.js +1 -1
- package/dist/ts/ts/Json/Process/MaterialAttributeValue.js +8 -8
- package/dist/ts/ts/Json/Process/Process.js +12 -12
- package/dist/ts/ts/Json/Process/ProcessInput.js +4 -4
- package/dist/ts/ts/Json/Process/ProcessOutput.js +3 -3
- package/dist/ts/ts/Json/Process/ProcessParameterValue.js +11 -8
- package/dist/ts/ts/Json/Process/Protocol.js +13 -13
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts +4 -2
- package/dist/ts/ts/Json/Process/ProtocolParameter.d.ts.map +1 -1
- package/dist/ts/ts/Json/Process/ProtocolParameter.js +21 -12
- package/dist/ts/ts/Json/Process/Sample.js +14 -14
- package/dist/ts/ts/Json/Process/Source.js +9 -9
- package/dist/ts/ts/Json/Process/Value.js +1 -1
- package/dist/ts/ts/Json/PropertyValue.js +1 -1
- package/dist/ts/ts/Json/Publication.js +6 -6
- package/dist/ts/ts/Json/ROCrate/LDContext.js +1 -0
- package/dist/ts/ts/Json/ROCrate/LDGraph.js +3 -3
- package/dist/ts/ts/Json/ROCrate/LDNode.js +19 -19
- package/dist/ts/ts/Json/Run.d.ts +11 -0
- package/dist/ts/ts/Json/Run.d.ts.map +1 -0
- package/dist/ts/ts/Json/Run.js +76 -0
- package/dist/ts/ts/Json/StringTable.js +1 -1
- package/dist/ts/ts/Json/Study.js +34 -34
- package/dist/ts/ts/Json/Table/ArcTable.js +29 -29
- package/dist/ts/ts/Json/Table/CellTable.js +6 -6
- package/dist/ts/ts/Json/Table/CompositeCell.js +4 -4
- package/dist/ts/ts/Json/Table/CompositeHeader.js +2 -2
- package/dist/ts/ts/Json/Table/IOType.js +1 -1
- package/dist/ts/ts/Json/Table/OATable.js +7 -7
- package/dist/ts/ts/Json/Table/Templates.js +92 -6
- package/dist/ts/ts/Json/Workflow.d.ts +11 -0
- package/dist/ts/ts/Json/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/Json/Workflow.js +93 -0
- package/dist/ts/ts/Json/context/rocrate/isa_assay_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_comment_context.js +17 -1
- package/dist/ts/ts/Json/context/rocrate/isa_data_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_investigation_context.js +27 -1
- package/dist/ts/ts/Json/context/rocrate/isa_material_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_annotation_context.js +18 -1
- package/dist/ts/ts/Json/context/rocrate/isa_ontology_source_reference_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_organization_context.js +16 -1
- package/dist/ts/ts/Json/context/rocrate/isa_person_context.js +25 -1
- package/dist/ts/ts/Json/context/rocrate/isa_process_context.js +24 -1
- package/dist/ts/ts/Json/context/rocrate/isa_protocol_context.js +23 -1
- package/dist/ts/ts/Json/context/rocrate/isa_publication_context.js +20 -1
- package/dist/ts/ts/Json/context/rocrate/isa_sample_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_source_context.js +19 -1
- package/dist/ts/ts/Json/context/rocrate/isa_study_context.js +35 -1
- package/dist/ts/ts/Json/context/rocrate/rocrate_context.js +61 -0
- package/dist/ts/ts/Json.d.ts +34 -2
- package/dist/ts/ts/Json.d.ts.map +1 -1
- package/dist/ts/ts/Json.js +129 -2
- package/dist/ts/ts/JsonIO/Assay.js +15 -3
- package/dist/ts/ts/JsonIO/Investigation.js +15 -3
- package/dist/ts/ts/JsonIO/LDObject.js +17 -3
- package/dist/ts/ts/JsonIO/OntologyAnnotation.js +12 -2
- package/dist/ts/ts/JsonIO/Person.d.ts +16 -0
- package/dist/ts/ts/JsonIO/Person.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Person.js +67 -0
- package/dist/ts/ts/JsonIO/Run.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Run.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Run.js +50 -0
- package/dist/ts/ts/JsonIO/Study.js +15 -3
- package/dist/ts/ts/JsonIO/Table/Compression.js +3 -3
- package/dist/ts/ts/JsonIO/Table/Templates.js +60 -5
- package/dist/ts/ts/JsonIO/Workflow.d.ts +10 -0
- package/dist/ts/ts/JsonIO/Workflow.d.ts.map +1 -0
- package/dist/ts/ts/JsonIO/Workflow.js +50 -0
- package/dist/ts/ts/License.d.ts +39 -0
- package/dist/ts/ts/License.d.ts.map +1 -0
- package/dist/ts/ts/License.js +123 -0
- package/dist/ts/ts/ROCrate/Generic/Comment.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts +69 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.d.ts.map +1 -0
- package/dist/ts/ts/ROCrate/Generic/CreativeWork.js +450 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts +1 -0
- package/dist/ts/ts/ROCrate/Generic/Dataset.d.ts.map +1 -1
- package/dist/ts/ts/ROCrate/Generic/Dataset.js +27 -1
- package/dist/ts/ts/ROCrate/Generic/DefinedTerm.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/File.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProcess.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/LabProtocol.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Organization.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/Person.js +7 -2
- package/dist/ts/ts/ROCrate/Generic/PostalAddress.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/PropertyValue.js +19 -15
- package/dist/ts/ts/ROCrate/Generic/Sample.js +5 -1
- package/dist/ts/ts/ROCrate/Generic/ScholarlyArticle.js +5 -1
- package/dist/ts/ts/ROCrate/LDContext.js +15 -6
- package/dist/ts/ts/ROCrate/LDObject.js +53 -17
- package/dist/ts/ts/ROCrateIO.d.ts +9 -3
- package/dist/ts/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/ts/ROCrateIO.js +67 -14
- package/dist/ts/ts/Spreadsheet/AnnotationTable/ArcTable.js +18 -15
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeCell.js +5 -4
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +40 -17
- package/dist/ts/ts/Spreadsheet/AnnotationTable/CompositeHeader.js +4 -4
- package/dist/ts/ts/Spreadsheet/ArcAssay.js +30 -15
- package/dist/ts/ts/Spreadsheet/ArcInvestigation.js +32 -18
- package/dist/ts/ts/Spreadsheet/ArcRun.js +23 -8
- package/dist/ts/ts/Spreadsheet/ArcStudy.js +22 -7
- package/dist/ts/ts/Spreadsheet/ArcWorkflow.js +23 -8
- package/dist/ts/ts/Spreadsheet/CollectionAux.js +75 -5
- package/dist/ts/ts/Spreadsheet/DataMap.js +1 -1
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapColumn.js +4 -4
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapHeader.js +8 -8
- package/dist/ts/ts/Spreadsheet/DataMapTable/DataMapTable.js +4 -4
- package/dist/ts/ts/Spreadsheet/Metadata/Assays.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/Comment.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Contacts.js +2 -2
- package/dist/ts/ts/Spreadsheet/Metadata/Conversions.js +6 -3
- package/dist/ts/ts/Spreadsheet/Metadata/DesignDescriptors.js +9 -3
- package/dist/ts/ts/Spreadsheet/Metadata/Factors.js +6 -4
- package/dist/ts/ts/Spreadsheet/Metadata/OntologyAnnotation.js +7 -5
- package/dist/ts/ts/Spreadsheet/Metadata/OntologySourceReference.js +1 -1
- package/dist/ts/ts/Spreadsheet/Metadata/Protocols.js +10 -8
- package/dist/ts/ts/Spreadsheet/Metadata/Publication.js +5 -5
- package/dist/ts/ts/Spreadsheet/Metadata/Run.js +6 -6
- package/dist/ts/ts/Spreadsheet/Metadata/SparseTable.js +246 -10
- package/dist/ts/ts/Spreadsheet/Metadata/Study.js +19 -13
- package/dist/ts/ts/Spreadsheet/Metadata/Workflow.js +5 -5
- package/dist/ts/ts/Template.Web.js +5 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackage.js +8 -1
- package/dist/ts/ts/ValidationPackages/ValidationPackagesConfig.js +10 -3
- package/dist/ts/ts/WebRequest/WebRequest.Node.js +1 -0
- package/dist/ts/ts/Xlsx.d.ts +21 -1
- package/dist/ts/ts/Xlsx.d.ts.map +1 -1
- package/dist/ts/ts/Xlsx.js +81 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +18 -2
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +5 -2
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/DynamicObj.fs.js +27 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/FableJS.fs.js +14 -3
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/HashCodes.fs.js +30 -4
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/PropertyHelper.fs.js +5 -1
- package/dist/ts/ts/fable_modules/DynamicObj.7.0.1/ReflectionUtils.fs.js +65 -2
- package/dist/ts/ts/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +257 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +71 -1
- package/dist/ts/ts/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +11 -1
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +188 -11
- package/dist/ts/ts/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +80 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js +63 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCellsCollection.fs.js +17 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/CellBuilder.fs.js +198 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Expression.fs.js +46 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/RowBuilder.fs.js +131 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/DSL/Types.fs.js +307 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsAddress.fs.js +38 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsColumn.fs.js +11 -4
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsRow.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js +14 -7
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js +31 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Cell.fs.js +65 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Column.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Row.fs.js +38 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Table.fs.js +34 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Value.fs.js +49 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Workbook.fs.js +44 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Json/Worksheet.fs.js +129 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRange.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeAddress.fs.js +82 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeBase.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeColumn.fs.js +17 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Ranges/FsRangeRow.fs.js +9 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTable.fs.js +12 -5
- package/dist/ts/ts/fable_modules/FsSpreadsheet.7.0.0-alpha.1/Tables/FsTableField.fs.js +12 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Cell.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/FsExtensions.fs.js +42 -3
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Json.fs.js +53 -0
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Table.fs.js +9 -9
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Workbook.fs.js +1 -1
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Worksheet.fs.js +2 -2
- package/dist/ts/ts/fable_modules/FsSpreadsheet.Js.7.0.0-alpha.1/Xlsx.fs.js +5 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Decode.fs.js +730 -23
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Encode.fs.js +192 -7
- package/dist/ts/ts/fable_modules/Thoth.Json.Core.0.7.0/Types.fs.js +45 -1
- package/dist/ts/ts/fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js +15 -2
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Decode.fs.js +1383 -15
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Encode.fs.js +45 -4
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Interop/JsInterop.fs.js +10 -0
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Persil.fs.js +5 -5
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Preprocessing.fs.js +16 -6
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Reader.fs.js +26 -23
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/RegexActivePatterns.fs.js +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/Writer.fs.js +8 -8
- package/dist/ts/ts/fable_modules/YAMLicious.0.0.3/YAMLiciousTypes.fs.js +18 -2
- package/package.json +1 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitattributes.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitattributes.js +0 -3
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts +0 -2
- package/dist/ts/ts/FileSystem/DefaultGitignore.d.ts.map +0 -1
- package/dist/ts/ts/FileSystem/DefaultGitignore.js +0 -3
package/dist/ts/ts/Conversion.js
CHANGED
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { fromString } from './fable_modules/Thoth.Json.JavaScript.0.4.1/Decode.fs.js';
|
|
2
2
|
import { Decode_datetime } from './Json/Decode.js';
|
|
3
|
-
import { toText, printf,
|
|
4
|
-
import { unwrap, map,
|
|
5
|
-
import { toString
|
|
3
|
+
import { toText, printf, toFail, join } from '../node_modules/@fable-org/fable-library-js/String.js';
|
|
4
|
+
import { value, unwrap, map, defaultArg, bind } from '../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
|
+
import { toString } from './fable_modules/Thoth.Json.JavaScript.0.4.1/Encode.fs.js';
|
|
6
6
|
import { dateTime } from './Json/Encode.js';
|
|
7
7
|
import { tryParse, parse } from '../node_modules/@fable-org/fable-library-js/Int32.js';
|
|
8
|
-
import {
|
|
8
|
+
import { FSharpRef, toString as toString$1 } from '../node_modules/@fable-org/fable-library-js/Types.js';
|
|
9
9
|
import { LDRef, LDNode } from './ROCrate/LDObject.js';
|
|
10
|
-
import { getEnumerator, disposeSafe,
|
|
10
|
+
import { int32ToString, stringHash, comparePrimitives, getEnumerator, disposeSafe, safeHash, equals } from '../node_modules/@fable-org/fable-library-js/Util.js';
|
|
11
|
+
import { class_type } from '../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
11
12
|
import { LDComment } from './ROCrate/Generic/Comment.js';
|
|
12
13
|
import { Comment$ } from './Core/Comment.js';
|
|
13
14
|
import { OntologyAnnotation } from './Core/OntologyAnnotation.js';
|
|
14
|
-
import { Option_fromSeq, ResizeArray_map, ResizeArray_singleton,
|
|
15
|
+
import { Option_fromValueWithDefault, Option_fromSeq, ResizeArray_map, ResizeArray_singleton, ResizeArray_create, ResizeArray_zip, ResizeArray_appendSingleton, ResizeArray_tryPick, ResizeArray_distinct, ResizeArray_append, ResizeArray_choose, ResizeArray_collect, ResizeArray_filter, ResizeArray_tryFind, ResizeArray_groupBy } from './Core/Helper/Collections.js';
|
|
15
16
|
import { LDDefinedTerm } from './ROCrate/Generic/DefinedTerm.js';
|
|
16
17
|
import { LDPropertyValue } from './ROCrate/Generic/PropertyValue.js';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
18
|
+
import { Data, DataAux_pathAndSelectorFromName } from './Core/Data.js';
|
|
19
|
+
import { CompositeCell_Term, CompositeCell_Unitized, CompositeCell_FreeText, CompositeCell_Data } from './Core/Table/CompositeCell.js';
|
|
20
|
+
import { CompositeHeader_Component, CompositeHeader_Parameter, CompositeHeader_Factor, CompositeHeader_Characteristic, CompositeHeader_Input, IOType_Source, IOType_Material, IOType_Sample, IOType_Data, IOType_FreeText, CompositeHeader_Output, CompositeHeader_ProtocolREF, CompositeHeader_ProtocolDescription, CompositeHeader_ProtocolUri, CompositeHeader_ProtocolVersion, CompositeHeader_ProtocolType, CompositeHeader_Comment } from './Core/Table/CompositeHeader.js';
|
|
20
21
|
import { DataFile__get_AsString, DataFile_fromString_Z721C83C5 } from './Core/DataFile.js';
|
|
21
22
|
import { LDFile } from './ROCrate/Generic/File.js';
|
|
22
23
|
import { LDDataset } from './ROCrate/Generic/Dataset.js';
|
|
23
|
-
import { map as map$
|
|
24
|
+
import { map as map$1 } from '../node_modules/@fable-org/fable-library-js/Array.js';
|
|
24
25
|
import { combine } from './FileSystem/Path.js';
|
|
25
26
|
import { DataContext__get_Explication, DataContext__get_Unit, DataContext__get_ObjectType, DataContext__get_GeneratedBy, DataContext__get_Description, DataContext__get_Label, DataContext_$ctor_Z780A8A2A } from './Core/DataContext.js';
|
|
26
27
|
import { LDSample } from './ROCrate/Generic/Sample.js';
|
|
27
28
|
import { ActivePatterns_$007CRegex$007C_$007C } from './Core/Helper/Regex.js';
|
|
28
29
|
import { LDLabProtocol } from './ROCrate/Generic/LabProtocol.js';
|
|
29
|
-
import {
|
|
30
|
+
import { Unchecked_tryGetCellAt, getEmptyCellForHeader, Unchecked_alignByHeaders } from './Core/Table/ArcTableAux.js';
|
|
30
31
|
import { ArcTable } from './Core/Table/ArcTable.js';
|
|
31
32
|
import { LDPerson } from './ROCrate/Generic/Person.js';
|
|
32
|
-
import { toList,
|
|
33
|
-
import {
|
|
33
|
+
import { indexed, toList, filter, tryPick, choose as choose$1, map as map$2, delay, append, empty as empty$1, singleton, fold, zip, isEmpty } from '../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
34
|
+
import { choose, length, empty, map as map$3, sortBy, singleton as singleton$1, initialize, collect, ofSeq } from '../node_modules/@fable-org/fable-library-js/List.js';
|
|
34
35
|
import { LDLabProcess } from './ROCrate/Generic/LabProcess.js';
|
|
35
|
-
import { List_groupBy } from '../node_modules/@fable-org/fable-library-js/Seq2.js';
|
|
36
|
+
import { List_groupBy, List_distinct } from '../node_modules/@fable-org/fable-library-js/Seq2.js';
|
|
36
37
|
import { createMissingIdentifier } from './Core/Helper/Identifier.js';
|
|
37
38
|
import { rangeDouble } from '../node_modules/@fable-org/fable-library-js/Range.js';
|
|
38
39
|
import { ArcTables } from './Core/Table/ArcTables.js';
|
|
39
|
-
import {
|
|
40
|
+
import { DataMap__get_DataContexts, DataMap_$ctor_4E3220A7, DataMap_init } from './Core/DataMap.js';
|
|
40
41
|
import { LDOrganization } from './ROCrate/Generic/Organization.js';
|
|
41
42
|
import { decoder, encoder } from './Json/ROCrate/LDNode.js';
|
|
42
43
|
import { Person } from './Core/Person.js';
|
|
@@ -60,7 +61,7 @@ function DateTime_tryFromString(s) {
|
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
function DateTime_toString(d) {
|
|
63
|
-
return toString
|
|
64
|
+
return toString(0, dateTime(d));
|
|
64
65
|
}
|
|
65
66
|
function ColumnIndex_tryInt(str) {
|
|
66
67
|
let matchValue;
|
|
@@ -98,9 +99,22 @@ function ColumnIndex_tryGetIndex(node) {
|
|
|
98
99
|
function ColumnIndex_setIndex(node, index) {
|
|
99
100
|
node.SetProperty(ColumnIndex_orderName, int32ToString(index));
|
|
100
101
|
}
|
|
102
|
+
function ARCtrl_ROCrate_LDNode__LDNode_GetColumnIndex(this$) {
|
|
103
|
+
return value(ColumnIndex_tryGetIndex(this$));
|
|
104
|
+
}
|
|
105
|
+
function ARCtrl_ROCrate_LDNode__LDNode_TryGetColumnIndex(this$) {
|
|
106
|
+
return ColumnIndex_tryGetIndex(this$);
|
|
107
|
+
}
|
|
101
108
|
function ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4(this$, index) {
|
|
102
109
|
ColumnIndex_setIndex(this$, index);
|
|
103
110
|
}
|
|
111
|
+
class BaseTypes {
|
|
112
|
+
constructor() {
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function BaseTypes_$reflection() {
|
|
116
|
+
return class_type("ARCtrl.Conversion.BaseTypes", void 0, BaseTypes);
|
|
117
|
+
}
|
|
104
118
|
function BaseTypes_composeComment_Z13201A7E(comment) {
|
|
105
119
|
let name;
|
|
106
120
|
const matchValue = comment.Name;
|
|
@@ -149,7 +163,7 @@ function BaseTypes_valuesOfCell_Z436420FE(value) {
|
|
|
149
163
|
case /* Term */
|
|
150
164
|
0:
|
|
151
165
|
if (term = value.fields[0], term.isEmpty()) {
|
|
152
|
-
value.fields[0];
|
|
166
|
+
const term_2 = value.fields[0];
|
|
153
167
|
return [void 0, void 0, void 0, void 0];
|
|
154
168
|
} else if (term_1 = value.fields[0], term_1.TANInfo != null) {
|
|
155
169
|
const term_3 = value.fields[0];
|
|
@@ -167,7 +181,7 @@ function BaseTypes_valuesOfCell_Z436420FE(value) {
|
|
|
167
181
|
}
|
|
168
182
|
case /* Data */
|
|
169
183
|
3: {
|
|
170
|
-
value.fields[0];
|
|
184
|
+
const data = value.fields[0];
|
|
171
185
|
throw new Error("Data cell should not be parsed to isa value");
|
|
172
186
|
}
|
|
173
187
|
default:
|
|
@@ -256,7 +270,7 @@ function BaseTypes_composeFile_6CE21C7D(d, fs) {
|
|
|
256
270
|
const file = createFile();
|
|
257
271
|
file.SchemaType = [LDFile.schemaType, LDDataset.schemaType];
|
|
258
272
|
let subFiles;
|
|
259
|
-
const collection = map$
|
|
273
|
+
const collection = map$1((fp) => {
|
|
260
274
|
const fullPath = combine(d.NameText, fp);
|
|
261
275
|
return LDFile.create(fullPath, fullPath);
|
|
262
276
|
}, fs_2.ToFilePaths(true));
|
|
@@ -284,7 +298,7 @@ function BaseTypes_composeFragmentDescriptor_Z4C0BEF62(dc) {
|
|
|
284
298
|
const id = LDPropertyValue.genIdFragmentDescriptor(dc.NameText);
|
|
285
299
|
const patternInput = defaultArg(map((e) => [e.Name, Option_fromValueWithDefault("", e.TermAccessionAndOntobeeUrlIfShort)], DataContext__get_Explication(dc)), [void 0, void 0]);
|
|
286
300
|
const patternInput_1 = defaultArg(map((u) => [u.Name, Option_fromValueWithDefault("", u.TermAccessionAndOntobeeUrlIfShort)], DataContext__get_Unit(dc)), [void 0, void 0]);
|
|
287
|
-
const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString, dc.Comments));
|
|
301
|
+
const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString$1, dc.Comments));
|
|
288
302
|
const dataFragment = BaseTypes_composeFile_6CE21C7D(dc);
|
|
289
303
|
const pattern = map(BaseTypes_composeDefinedTerm_ZDED3A0F, DataContext__get_ObjectType(dc));
|
|
290
304
|
dataFragment.SetProperty(LDFile.about, new LDRef(id));
|
|
@@ -495,6 +509,34 @@ function BaseTypes_decomposeProcessOutput_Z2F770004(pn, context) {
|
|
|
495
509
|
return [CompositeHeader_Output(IOType_FreeText(n.SchemaType[0])), CompositeCell_FreeText(LDSample.getNameAsString(n, unwrap(context)))];
|
|
496
510
|
}
|
|
497
511
|
}
|
|
512
|
+
function BaseTypes_composeTechnologyPlatform_ZDED3A0F(tp) {
|
|
513
|
+
const matchValue = tp.TANInfo;
|
|
514
|
+
if (matchValue == null) {
|
|
515
|
+
return `${tp.NameText}`;
|
|
516
|
+
} else {
|
|
517
|
+
return `${tp.NameText} (${tp.TermAccessionShort})`;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
function BaseTypes_decomposeTechnologyPlatform_Z721C83C5(name) {
|
|
521
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("^(?<value>.+) \\((?<ontology>[^(]*:[^)]*)\\)$", name);
|
|
522
|
+
if (activePatternResult != null) {
|
|
523
|
+
const r = value(activePatternResult);
|
|
524
|
+
let oa;
|
|
525
|
+
const tan = r.groups && r.groups.ontology || "";
|
|
526
|
+
oa = OntologyAnnotation.fromTermAnnotation(tan);
|
|
527
|
+
const v = r.groups && r.groups.value || "";
|
|
528
|
+
return OntologyAnnotation.create(v, unwrap(oa.TermSourceREF), unwrap(oa.TermAccessionNumber));
|
|
529
|
+
} else {
|
|
530
|
+
return OntologyAnnotation.create(name);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
class ProcessConversion {
|
|
534
|
+
constructor() {
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
function ProcessConversion_$reflection() {
|
|
538
|
+
return class_type("ARCtrl.Conversion.ProcessConversion", void 0, ProcessConversion);
|
|
539
|
+
}
|
|
498
540
|
function ProcessConversion_tryGetProtocolType_Z6839B9E8(pv, graph, context) {
|
|
499
541
|
const matchValue = LDLabProtocol.tryGetIntendedUseAsDefinedTerm(pv, unwrap(graph), unwrap(context));
|
|
500
542
|
if (matchValue == null) {
|
|
@@ -524,7 +566,7 @@ function ProcessConversion_decomposeProcessName_Z721C83C5(name) {
|
|
|
524
566
|
function ProcessConversion_tryComponentGetter(generalI, valueI, valueHeader) {
|
|
525
567
|
if (valueHeader.tag === /* Component */
|
|
526
568
|
0) {
|
|
527
|
-
valueHeader.fields[0];
|
|
569
|
+
const oa = valueHeader.fields[0];
|
|
528
570
|
return (table) => (i) => {
|
|
529
571
|
let matchValue;
|
|
530
572
|
const c = BaseTypes_composeComponent(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
|
|
@@ -538,7 +580,7 @@ function ProcessConversion_tryComponentGetter(generalI, valueI, valueHeader) {
|
|
|
538
580
|
function ProcessConversion_tryParameterGetter(generalI, valueI, valueHeader) {
|
|
539
581
|
if (valueHeader.tag === /* Parameter */
|
|
540
582
|
3) {
|
|
541
|
-
valueHeader.fields[0];
|
|
583
|
+
const oa = valueHeader.fields[0];
|
|
542
584
|
return (table) => (i) => {
|
|
543
585
|
let matchValue;
|
|
544
586
|
const p = BaseTypes_composeParameterValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
|
|
@@ -552,7 +594,7 @@ function ProcessConversion_tryParameterGetter(generalI, valueI, valueHeader) {
|
|
|
552
594
|
function ProcessConversion_tryFactorGetter(generalI, valueI, valueHeader) {
|
|
553
595
|
if (valueHeader.tag === /* Factor */
|
|
554
596
|
2) {
|
|
555
|
-
valueHeader.fields[0];
|
|
597
|
+
const oa = valueHeader.fields[0];
|
|
556
598
|
return (table) => (i) => {
|
|
557
599
|
let matchValue;
|
|
558
600
|
const f = BaseTypes_composeFactorValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
|
|
@@ -566,7 +608,7 @@ function ProcessConversion_tryFactorGetter(generalI, valueI, valueHeader) {
|
|
|
566
608
|
function ProcessConversion_tryCharacteristicGetter(generalI, valueI, valueHeader) {
|
|
567
609
|
if (valueHeader.tag === /* Characteristic */
|
|
568
610
|
1) {
|
|
569
|
-
valueHeader.fields[0];
|
|
611
|
+
const oa = valueHeader.fields[0];
|
|
570
612
|
return (table) => (i) => {
|
|
571
613
|
let matchValue;
|
|
572
614
|
const c = BaseTypes_composeCharacteristicValue(valueHeader, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(valueHeader, void 0) : value(matchValue)));
|
|
@@ -655,7 +697,7 @@ function ProcessConversion_tryGetProtocolVersionGetter(generalI, header) {
|
|
|
655
697
|
function ProcessConversion_tryGetInputGetter(generalI, header, fs) {
|
|
656
698
|
if (header.tag === /* Input */
|
|
657
699
|
11) {
|
|
658
|
-
header.fields[0];
|
|
700
|
+
const io = header.fields[0];
|
|
659
701
|
return (table) => (i) => {
|
|
660
702
|
let matchValue;
|
|
661
703
|
return BaseTypes_composeProcessInput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : value(matchValue)), fs);
|
|
@@ -667,7 +709,7 @@ function ProcessConversion_tryGetInputGetter(generalI, header, fs) {
|
|
|
667
709
|
function ProcessConversion_tryGetOutputGetter(generalI, header, fs) {
|
|
668
710
|
if (header.tag === /* Output */
|
|
669
711
|
12) {
|
|
670
|
-
header.fields[0];
|
|
712
|
+
const io = header.fields[0];
|
|
671
713
|
return (table) => (i) => {
|
|
672
714
|
let matchValue;
|
|
673
715
|
return BaseTypes_composeProcessOutput(header, (matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? getEmptyCellForHeader(header, void 0) : value(matchValue)), fs);
|
|
@@ -682,7 +724,7 @@ function ProcessConversion_tryGetCommentGetter(generalI, header) {
|
|
|
682
724
|
const c = header.fields[0];
|
|
683
725
|
return (table) => (i) => {
|
|
684
726
|
let matchValue, cell;
|
|
685
|
-
return toString((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new Comment$(c) : (cell = value(matchValue), new Comment$(c, cell.AsFreeText))));
|
|
727
|
+
return toString$1((matchValue = Unchecked_tryGetCellAt(generalI, i, table.Values), matchValue == null ? new Comment$(c) : (cell = value(matchValue), new Comment$(c, cell.AsFreeText))));
|
|
686
728
|
};
|
|
687
729
|
} else {
|
|
688
730
|
return void 0;
|
|
@@ -778,9 +820,9 @@ function ProcessConversion_getProcessGetter(assayName, studyName, processNameRoo
|
|
|
778
820
|
}
|
|
779
821
|
return (table_6) => (i_6) => {
|
|
780
822
|
const pn = table_6.RowCount === 1 ? processNameRoot : ProcessConversion_composeProcessName(processNameRoot, i_6);
|
|
781
|
-
const paramvalues = map((collection_4) => Array.from(collection_4), Option_fromValueWithDefault(empty(), map$
|
|
782
|
-
const comments = map((collection_5) => Array.from(collection_5), Option_fromValueWithDefault(empty(), map$
|
|
783
|
-
const components = map((collection_6) => Array.from(collection_6), Option_fromValueWithDefault(empty(), map$
|
|
823
|
+
const paramvalues = map((collection_4) => Array.from(collection_4), Option_fromValueWithDefault(empty(), map$3((f_4) => f_4(table_6)(i_6), parameterValueGetters)));
|
|
824
|
+
const comments = map((collection_5) => Array.from(collection_5), Option_fromValueWithDefault(empty(), map$3((f_5) => f_5(table_6)(i_6), commentGetters)));
|
|
825
|
+
const components = map((collection_6) => Array.from(collection_6), Option_fromValueWithDefault(empty(), map$3((f_6) => f_6(table_6)(i_6), componentGetters)));
|
|
784
826
|
const id = LDLabProcess.genId(processNameRoot, unwrap(assayName), unwrap(studyName)) + `_${i_6}`;
|
|
785
827
|
let protocol;
|
|
786
828
|
const name = map((f_7) => f_7(table_6)(i_6), protocolREFGetter);
|
|
@@ -860,18 +902,18 @@ function ProcessConversion_processToRows_Z6839B9E8(p, graph, context) {
|
|
|
860
902
|
const prot_1 = value(matchValue_1);
|
|
861
903
|
protVals = toList(delay(() => {
|
|
862
904
|
let matchValue_2;
|
|
863
|
-
return append((matchValue_2 = LDLabProtocol.tryGetNameAsString(prot_1, unwrap(context)), matchValue_2 == null ? empty$1() : singleton
|
|
905
|
+
return append((matchValue_2 = LDLabProtocol.tryGetNameAsString(prot_1, unwrap(context)), matchValue_2 == null ? empty$1() : singleton([CompositeHeader_ProtocolREF(), CompositeCell_FreeText(value(matchValue_2))])), delay(() => {
|
|
864
906
|
let matchValue_3;
|
|
865
|
-
return append((matchValue_3 = LDLabProtocol.tryGetDescriptionAsString(prot_1, unwrap(context)), matchValue_3 == null ? empty$1() : singleton
|
|
907
|
+
return append((matchValue_3 = LDLabProtocol.tryGetDescriptionAsString(prot_1, unwrap(context)), matchValue_3 == null ? empty$1() : singleton([CompositeHeader_ProtocolDescription(), CompositeCell_FreeText(value(matchValue_3))])), delay(() => {
|
|
866
908
|
let matchValue_4;
|
|
867
|
-
return append((matchValue_4 = LDLabProtocol.tryGetUrl(prot_1, unwrap(context)), matchValue_4 == null ? empty$1() : singleton
|
|
909
|
+
return append((matchValue_4 = LDLabProtocol.tryGetUrl(prot_1, unwrap(context)), matchValue_4 == null ? empty$1() : singleton([CompositeHeader_ProtocolUri(), CompositeCell_FreeText(value(matchValue_4))])), delay(() => {
|
|
868
910
|
let matchValue_5;
|
|
869
|
-
return append((matchValue_5 = LDLabProtocol.tryGetVersionAsString(prot_1, unwrap(context)), matchValue_5 == null ? empty$1() : singleton
|
|
911
|
+
return append((matchValue_5 = LDLabProtocol.tryGetVersionAsString(prot_1, unwrap(context)), matchValue_5 == null ? empty$1() : singleton([CompositeHeader_ProtocolVersion(), CompositeCell_FreeText(value(matchValue_5))])), delay(() => {
|
|
870
912
|
const matchValue_6 = ProcessConversion_tryGetProtocolType_Z6839B9E8(prot_1, unwrap(graph), unwrap(context));
|
|
871
913
|
if (matchValue_6 == null) {
|
|
872
914
|
return empty$1();
|
|
873
915
|
} else {
|
|
874
|
-
return singleton
|
|
916
|
+
return singleton([CompositeHeader_ProtocolType(), CompositeCell_Term(value(matchValue_6))]);
|
|
875
917
|
}
|
|
876
918
|
}));
|
|
877
919
|
}));
|
|
@@ -889,7 +931,7 @@ function ProcessConversion_processToRows_Z6839B9E8(p, graph, context) {
|
|
|
889
931
|
const outputs_1 = patternInput[1];
|
|
890
932
|
const inputs_1 = patternInput[0];
|
|
891
933
|
if (inputs_1.length === 0 && outputs_1.length === 0) {
|
|
892
|
-
const vals = map$
|
|
934
|
+
const vals = map$3((tuple_1) => tuple_1[0], sortBy((arg) => defaultArg(arg[1], 1e4), toList(delay(() => append(components, delay(() => pvs)))), {
|
|
893
935
|
Compare: comparePrimitives
|
|
894
936
|
}));
|
|
895
937
|
return ResizeArray_singleton(toList(delay(() => append(protVals, delay(() => append(vals, delay(() => comments)))))));
|
|
@@ -911,37 +953,219 @@ function ProcessConversion_processToRows_Z6839B9E8(p, graph, context) {
|
|
|
911
953
|
const o_1 = value(o);
|
|
912
954
|
factors = ResizeArray_map((fv) => [BaseTypes_decomposeFactorValue_Z2F770004(fv, unwrap(context)), ColumnIndex_tryGetIndex(fv)], LDSample.getFactors(o_1, unwrap(graph), unwrap(context)));
|
|
913
955
|
}
|
|
914
|
-
const vals_1 = map$
|
|
956
|
+
const vals_1 = map$3((tuple_3) => tuple_3[0], sortBy((arg_1) => defaultArg(arg_1[1], 1e4), toList(delay(() => append(chars, delay(() => append(components, delay(() => append(pvs, delay(() => factors)))))))), {
|
|
915
957
|
Compare: comparePrimitives
|
|
916
958
|
}));
|
|
917
|
-
return toList(delay(() => append(i != null ? singleton
|
|
959
|
+
return toList(delay(() => append(i != null ? singleton(BaseTypes_decomposeProcessInput_Z2F770004(value(i), unwrap(context))) : empty$1(), delay(() => append(protVals, delay(() => append(vals_1, delay(() => append(comments, delay(() => o != null ? singleton(BaseTypes_decomposeProcessOutput_Z2F770004(value(o), unwrap(context))) : empty$1()))))))))));
|
|
918
960
|
}, ResizeArray_zip(inputs_1, outputs_1));
|
|
919
961
|
}
|
|
920
962
|
}
|
|
963
|
+
function CompositeRow_toProtocol(tableName, row) {
|
|
964
|
+
return fold((p, hc) => {
|
|
965
|
+
let matchResult, oa, v, v_1, v_2, v_3;
|
|
966
|
+
switch (hc[0].tag) {
|
|
967
|
+
case /* ProtocolType */
|
|
968
|
+
4: {
|
|
969
|
+
if (hc[1].tag === /* Term */
|
|
970
|
+
0) {
|
|
971
|
+
matchResult = 0;
|
|
972
|
+
oa = hc[1].fields[0];
|
|
973
|
+
} else {
|
|
974
|
+
matchResult = 6;
|
|
975
|
+
}
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
case /* ProtocolVersion */
|
|
979
|
+
7: {
|
|
980
|
+
if (hc[1].tag === /* FreeText */
|
|
981
|
+
1) {
|
|
982
|
+
matchResult = 1;
|
|
983
|
+
v = hc[1].fields[0];
|
|
984
|
+
} else {
|
|
985
|
+
matchResult = 6;
|
|
986
|
+
}
|
|
987
|
+
break;
|
|
988
|
+
}
|
|
989
|
+
case /* ProtocolUri */
|
|
990
|
+
6: {
|
|
991
|
+
if (hc[1].tag === /* FreeText */
|
|
992
|
+
1) {
|
|
993
|
+
matchResult = 2;
|
|
994
|
+
v_1 = hc[1].fields[0];
|
|
995
|
+
} else {
|
|
996
|
+
matchResult = 6;
|
|
997
|
+
}
|
|
998
|
+
break;
|
|
999
|
+
}
|
|
1000
|
+
case /* ProtocolDescription */
|
|
1001
|
+
5: {
|
|
1002
|
+
if (hc[1].tag === /* FreeText */
|
|
1003
|
+
1) {
|
|
1004
|
+
matchResult = 3;
|
|
1005
|
+
v_2 = hc[1].fields[0];
|
|
1006
|
+
} else {
|
|
1007
|
+
matchResult = 6;
|
|
1008
|
+
}
|
|
1009
|
+
break;
|
|
1010
|
+
}
|
|
1011
|
+
case /* ProtocolREF */
|
|
1012
|
+
8: {
|
|
1013
|
+
if (hc[1].tag === /* FreeText */
|
|
1014
|
+
1) {
|
|
1015
|
+
matchResult = 4;
|
|
1016
|
+
v_3 = hc[1].fields[0];
|
|
1017
|
+
} else {
|
|
1018
|
+
matchResult = 6;
|
|
1019
|
+
}
|
|
1020
|
+
break;
|
|
1021
|
+
}
|
|
1022
|
+
case /* Component */
|
|
1023
|
+
0: {
|
|
1024
|
+
switch (hc[1].tag) {
|
|
1025
|
+
case /* Term */
|
|
1026
|
+
0:
|
|
1027
|
+
case /* Unitized */
|
|
1028
|
+
2: {
|
|
1029
|
+
matchResult = 5;
|
|
1030
|
+
break;
|
|
1031
|
+
}
|
|
1032
|
+
default:
|
|
1033
|
+
matchResult = 6;
|
|
1034
|
+
}
|
|
1035
|
+
break;
|
|
1036
|
+
}
|
|
1037
|
+
default:
|
|
1038
|
+
matchResult = 6;
|
|
1039
|
+
}
|
|
1040
|
+
switch (matchResult) {
|
|
1041
|
+
case 0: {
|
|
1042
|
+
LDLabProtocol.setIntendedUseAsDefinedTerm(p, BaseTypes_composeDefinedTerm_ZDED3A0F(oa));
|
|
1043
|
+
break;
|
|
1044
|
+
}
|
|
1045
|
+
case 1: {
|
|
1046
|
+
LDLabProtocol.setVersionAsString(p, v);
|
|
1047
|
+
break;
|
|
1048
|
+
}
|
|
1049
|
+
case 2: {
|
|
1050
|
+
LDLabProtocol.setUrl(p, v_1);
|
|
1051
|
+
break;
|
|
1052
|
+
}
|
|
1053
|
+
case 3: {
|
|
1054
|
+
LDLabProtocol.setDescriptionAsString(p, v_2);
|
|
1055
|
+
break;
|
|
1056
|
+
}
|
|
1057
|
+
case 4: {
|
|
1058
|
+
LDLabProtocol.setNameAsString(p, v_3);
|
|
1059
|
+
break;
|
|
1060
|
+
}
|
|
1061
|
+
case 5: {
|
|
1062
|
+
const newC = ResizeArray_appendSingleton(BaseTypes_composeComponent(hc[0], hc[1]), LDLabProtocol.getLabEquipments(p));
|
|
1063
|
+
LDLabProtocol.setLabEquipments(p, newC);
|
|
1064
|
+
break;
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
return p;
|
|
1068
|
+
}, LDLabProtocol.create(tableName, tableName), row);
|
|
1069
|
+
}
|
|
1070
|
+
function ARCtrl_ArcTable__ArcTable_fromProtocol_Static_Z6839B9E8(p, graph, context) {
|
|
1071
|
+
const name = LDLabProtocol.getNameAsString(p, unwrap(context));
|
|
1072
|
+
const t = ArcTable.init(name);
|
|
1073
|
+
let enumerator = getEnumerator(LDLabProtocol.getComponents(p, unwrap(graph), unwrap(context)));
|
|
1074
|
+
try {
|
|
1075
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1076
|
+
const c = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1077
|
+
const patternInput = BaseTypes_decomposeComponent_Z2F770004(c, unwrap(context));
|
|
1078
|
+
t.AddColumn(patternInput[0], ResizeArray_singleton(patternInput[1]), unwrap(ARCtrl_ROCrate_LDNode__LDNode_TryGetColumnIndex(c)));
|
|
1079
|
+
}
|
|
1080
|
+
} finally {
|
|
1081
|
+
disposeSafe(enumerator);
|
|
1082
|
+
}
|
|
1083
|
+
map((d) => {
|
|
1084
|
+
t.AddProtocolDescriptionColumn(ResizeArray_singleton(d));
|
|
1085
|
+
}, LDLabProtocol.tryGetDescriptionAsString(p, unwrap(context)));
|
|
1086
|
+
map((d_1) => {
|
|
1087
|
+
t.AddProtocolVersionColumn(ResizeArray_singleton(d_1));
|
|
1088
|
+
}, LDLabProtocol.tryGetVersionAsString(p, unwrap(context)));
|
|
1089
|
+
map((d_2) => {
|
|
1090
|
+
t.AddProtocolTypeColumn(ResizeArray_singleton(d_2));
|
|
1091
|
+
}, ProcessConversion_tryGetProtocolType_Z6839B9E8(p, void 0, unwrap(context)));
|
|
1092
|
+
map((d_3) => {
|
|
1093
|
+
t.AddProtocolUriColumn(ResizeArray_singleton(d_3));
|
|
1094
|
+
}, LDLabProtocol.tryGetUrl(p, unwrap(context)));
|
|
1095
|
+
t.AddProtocolNameColumn(ResizeArray_singleton(name));
|
|
1096
|
+
return t;
|
|
1097
|
+
}
|
|
1098
|
+
function ARCtrl_ArcTable__ArcTable_GetProtocols(this$) {
|
|
1099
|
+
let source;
|
|
1100
|
+
if (this$.RowCount === 0) {
|
|
1101
|
+
return singleton$1((source = this$.Headers, fold((p, h) => {
|
|
1102
|
+
if (h.tag === /* Component */
|
|
1103
|
+
0) {
|
|
1104
|
+
const oa = h.fields[0];
|
|
1105
|
+
const matchValue = oa.NameText;
|
|
1106
|
+
const matchValue_1 = oa.TermAccessionOntobeeUrl;
|
|
1107
|
+
const newC = ResizeArray_appendSingleton(LDPropertyValue.createComponent(matchValue, "Empty Component Value", void 0, matchValue_1), LDLabProtocol.getLabEquipments(p));
|
|
1108
|
+
LDLabProtocol.setLabEquipments(p, newC);
|
|
1109
|
+
}
|
|
1110
|
+
return p;
|
|
1111
|
+
}, LDLabProtocol.create(createMissingIdentifier(), this$.Name), source)));
|
|
1112
|
+
} else {
|
|
1113
|
+
return List_distinct(initialize(this$.RowCount, (i) => {
|
|
1114
|
+
let row;
|
|
1115
|
+
const source_2 = this$.GetRow(i, true);
|
|
1116
|
+
row = zip(this$.Headers, source_2);
|
|
1117
|
+
return CompositeRow_toProtocol(this$.Name, row);
|
|
1118
|
+
}), {
|
|
1119
|
+
Equals: equals,
|
|
1120
|
+
GetHashCode: safeHash
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
921
1124
|
function ARCtrl_ArcTable__ArcTable_GetProcesses_5E660E5C(this$, assayName, studyName, fs) {
|
|
922
1125
|
if (this$.RowCount === 0) {
|
|
923
|
-
return singleton(LDLabProcess.create(this$.Name));
|
|
1126
|
+
return singleton$1(LDLabProcess.create(this$.Name));
|
|
924
1127
|
} else {
|
|
925
1128
|
const getter = ProcessConversion_getProcessGetter(assayName, studyName, this$.Name, this$.Headers, fs);
|
|
926
1129
|
return toList(delay(() => map$2((i) => getter(this$)(i), rangeDouble(0, 1, this$.RowCount - 1))));
|
|
927
1130
|
}
|
|
928
1131
|
}
|
|
1132
|
+
function ARCtrl_ArcTable__ArcTable_fromProcesses_Static_Z3575FB5F(name, ps, graph, context) {
|
|
1133
|
+
const tupledArg = Unchecked_alignByHeaders(true, collect((p) => ofSeq(ProcessConversion_processToRows_Z6839B9E8(p, unwrap(graph), unwrap(context))), ps));
|
|
1134
|
+
return ArcTable.fromArcTableValues(name, tupledArg[0], tupledArg[1]);
|
|
1135
|
+
}
|
|
929
1136
|
function ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C(this$, assayName, studyName, fs) {
|
|
930
1137
|
return collect((t) => ARCtrl_ArcTable__ArcTable_GetProcesses_5E660E5C(t, unwrap(assayName), unwrap(studyName), unwrap(fs)), toList(this$.Tables));
|
|
931
1138
|
}
|
|
932
1139
|
function ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586(ps, graph, context) {
|
|
933
1140
|
let collection;
|
|
934
|
-
return new ArcTables((collection = map$
|
|
1141
|
+
return new ArcTables((collection = map$3((tupledArg) => {
|
|
935
1142
|
const tupledArg_1 = Unchecked_alignByHeaders(true, collect((p) => ofSeq(ProcessConversion_processToRows_Z6839B9E8(p, unwrap(graph), unwrap(context))), tupledArg[1]));
|
|
936
1143
|
return ArcTable.fromArcTableValues(tupledArg[0], tupledArg_1[0], tupledArg_1[1]);
|
|
937
1144
|
}, ProcessConversion_groupProcesses_Z27F0B586(ps, unwrap(graph), unwrap(context))), Array.from(collection)));
|
|
938
1145
|
}
|
|
1146
|
+
class DatamapConversion {
|
|
1147
|
+
constructor() {
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
function DatamapConversion_$reflection() {
|
|
1151
|
+
return class_type("ARCtrl.Conversion.DatamapConversion", void 0, DatamapConversion);
|
|
1152
|
+
}
|
|
939
1153
|
function DatamapConversion_composeFragmentDescriptors_Z8923FA3(datamap) {
|
|
940
1154
|
return ResizeArray_map(BaseTypes_composeFragmentDescriptor_Z4C0BEF62, DataMap__get_DataContexts(datamap));
|
|
941
1155
|
}
|
|
942
1156
|
function DatamapConversion_decomposeFragmentDescriptors_Z6E59645F(fragmentDescriptors, graph, context) {
|
|
943
1157
|
return DataMap_$ctor_4E3220A7(ResizeArray_map((fd) => BaseTypes_decomposeFragmentDescriptor_Z6839B9E8(fd, unwrap(graph), unwrap(context)), fragmentDescriptors));
|
|
944
1158
|
}
|
|
1159
|
+
class PersonConversion {
|
|
1160
|
+
constructor() {
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
function PersonConversion_$reflection() {
|
|
1164
|
+
return class_type("ARCtrl.Conversion.PersonConversion", void 0, PersonConversion);
|
|
1165
|
+
}
|
|
1166
|
+
function PersonConversion_get_orcidKey() {
|
|
1167
|
+
return "ORCID";
|
|
1168
|
+
}
|
|
945
1169
|
function PersonConversion_composeAffiliation_Z721C83C5(affiliation) {
|
|
946
1170
|
let arg;
|
|
947
1171
|
try {
|
|
@@ -960,7 +1184,7 @@ function PersonConversion_decomposeAffiliation_Z2F770004(affiliation, context) {
|
|
|
960
1184
|
if (isEmpty(filter((n) => n !== LDOrganization.name, affiliation.GetPropertyNames(unwrap(context))))) {
|
|
961
1185
|
return LDOrganization.getNameAsString(affiliation, unwrap(context));
|
|
962
1186
|
} else {
|
|
963
|
-
return toString
|
|
1187
|
+
return toString(0, encoder(affiliation));
|
|
964
1188
|
}
|
|
965
1189
|
}
|
|
966
1190
|
function PersonConversion_composeAddress_Z721C83C5(address) {
|
|
@@ -979,7 +1203,7 @@ function PersonConversion_decomposeAddress_4E60E31B(address) {
|
|
|
979
1203
|
if (typeof address === "string") {
|
|
980
1204
|
return address;
|
|
981
1205
|
} else if (address instanceof LDNode) {
|
|
982
|
-
return toString
|
|
1206
|
+
return toString(0, encoder(address));
|
|
983
1207
|
} else {
|
|
984
1208
|
throw new Error("Address must be a string or a Json.LDNode");
|
|
985
1209
|
}
|
|
@@ -993,7 +1217,7 @@ function PersonConversion_composePerson_Z64D846DC(person) {
|
|
|
993
1217
|
givenName = value(matchValue);
|
|
994
1218
|
}
|
|
995
1219
|
const jobTitles = Option_fromSeq(ResizeArray_map(BaseTypes_composeDefinedTerm_ZDED3A0F, person.Roles));
|
|
996
|
-
const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString, person.Comments));
|
|
1220
|
+
const disambiguatingDescriptions = Option_fromSeq(ResizeArray_map(toString$1, person.Comments));
|
|
997
1221
|
const address_1 = map(PersonConversion_composeAddress_Z721C83C5, person.Address);
|
|
998
1222
|
const affiliation_1 = map(PersonConversion_composeAffiliation_Z721C83C5, person.Affiliation);
|
|
999
1223
|
return LDPerson.create(givenName, unwrap(person.ORCID), void 0, unwrap(affiliation_1), unwrap(person.EMail), unwrap(person.LastName), void 0, unwrap(jobTitles), unwrap(person.MidInitials), address_1, unwrap(disambiguatingDescriptions), unwrap(person.Fax), unwrap(person.Phone));
|
|
@@ -1013,6 +1237,13 @@ function PersonConversion_decomposePerson_Z6839B9E8(person, graph, context) {
|
|
|
1013
1237
|
const affiliation = map((a_3) => PersonConversion_decomposeAffiliation_Z2F770004(a_3, unwrap(context)), LDPerson.tryGetAffiliation(person, unwrap(graph), unwrap(context)));
|
|
1014
1238
|
return Person.create(unwrap(orcid), unwrap(LDPerson.tryGetFamilyNameAsString(person, unwrap(context))), LDPerson.getGivenNameAsString(person, unwrap(context)), unwrap(LDPerson.tryGetAdditionalNameAsString(person, unwrap(context))), unwrap(LDPerson.tryGetEmailAsString(person, unwrap(context))), unwrap(LDPerson.tryGetTelephoneAsString(person, unwrap(context))), unwrap(LDPerson.tryGetFaxNumberAsString(person, unwrap(context))), unwrap(address), unwrap(affiliation), roles, comments);
|
|
1015
1239
|
}
|
|
1240
|
+
class ScholarlyArticleConversion {
|
|
1241
|
+
constructor() {
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
function ScholarlyArticleConversion_$reflection() {
|
|
1245
|
+
return class_type("ARCtrl.Conversion.ScholarlyArticleConversion", void 0, ScholarlyArticleConversion);
|
|
1246
|
+
}
|
|
1016
1247
|
function ScholarlyArticleConversion_composeAuthor_Z721C83C5(author) {
|
|
1017
1248
|
let arg;
|
|
1018
1249
|
try {
|
|
@@ -1048,7 +1279,7 @@ function ScholarlyArticleConversion_splitAuthors_Z721C83C5(a) {
|
|
|
1048
1279
|
}
|
|
1049
1280
|
default:
|
|
1050
1281
|
if (c === "," && bracketCount === 0) {
|
|
1051
|
-
void authors.push(toString(sb));
|
|
1282
|
+
void authors.push(toString$1(sb));
|
|
1052
1283
|
StringBuilder__Clear(sb);
|
|
1053
1284
|
} else {
|
|
1054
1285
|
StringBuilder__Append_244C7CD6(sb, c);
|
|
@@ -1058,7 +1289,7 @@ function ScholarlyArticleConversion_splitAuthors_Z721C83C5(a) {
|
|
|
1058
1289
|
} finally {
|
|
1059
1290
|
disposeSafe(enumerator);
|
|
1060
1291
|
}
|
|
1061
|
-
void authors.push(toString(sb));
|
|
1292
|
+
void authors.push(toString$1(sb));
|
|
1062
1293
|
return authors;
|
|
1063
1294
|
}
|
|
1064
1295
|
function ScholarlyArticleConversion_composeAuthors_Z721C83C5(authors) {
|
|
@@ -1069,7 +1300,7 @@ function ScholarlyArticleConversion_decomposeAuthor_Z2F770004(author, context) {
|
|
|
1069
1300
|
if (isEmpty(filter((n) => n !== LDPerson.givenName, author.GetPropertyNames(unwrap(context))))) {
|
|
1070
1301
|
return LDPerson.getGivenNameAsString(author, unwrap(context));
|
|
1071
1302
|
} else {
|
|
1072
|
-
return toString
|
|
1303
|
+
return toString(0, encoder(author));
|
|
1073
1304
|
}
|
|
1074
1305
|
}
|
|
1075
1306
|
function ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5(authors, context) {
|
|
@@ -1085,7 +1316,7 @@ function ScholarlyArticleConversion_composeScholarlyArticle_D324A6D(publication)
|
|
|
1085
1316
|
}
|
|
1086
1317
|
const authors_1 = map(ScholarlyArticleConversion_composeAuthors_Z721C83C5, publication.Authors);
|
|
1087
1318
|
const comments = Option_fromSeq(ResizeArray_map(BaseTypes_composeComment_Z13201A7E, publication.Comments));
|
|
1088
|
-
const identifiers = Array.from(toList(delay(() => append(publication.DOI != null && value(publication.DOI) !== "" ? singleton
|
|
1319
|
+
const identifiers = Array.from(toList(delay(() => append(publication.DOI != null && value(publication.DOI) !== "" ? singleton(LDPropertyValue.createDOI(value(publication.DOI))) : empty$1(), delay(() => publication.PubMedID != null && value(publication.PubMedID) !== "" ? singleton(LDPropertyValue.createPubMedID(value(publication.PubMedID))) : empty$1())))));
|
|
1089
1320
|
const status = map(BaseTypes_composeDefinedTerm_ZDED3A0F, publication.Status);
|
|
1090
1321
|
return LDScholarlyArticle.create(title, identifiers, void 0, unwrap(authors_1), void 0, unwrap(status), unwrap(comments));
|
|
1091
1322
|
}
|
|
@@ -1103,6 +1334,13 @@ function ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8(sa, grap
|
|
|
1103
1334
|
pubMedID = _arg_1 == null ? LDScholarlyArticle.tryGetUrlAsString(sa, unwrap(context)) : value(_arg_1);
|
|
1104
1335
|
return Publication.create(unwrap(pubMedID), unwrap(doi), unwrap(authors), title, unwrap(status), comments);
|
|
1105
1336
|
}
|
|
1337
|
+
class AssayConversion {
|
|
1338
|
+
constructor() {
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
function AssayConversion_$reflection() {
|
|
1342
|
+
return class_type("ARCtrl.Conversion.AssayConversion", void 0, AssayConversion);
|
|
1343
|
+
}
|
|
1106
1344
|
function AssayConversion_getDataFilesFromProcesses_6BABD1B0(processes, fragmentDescriptors, graph, context) {
|
|
1107
1345
|
const data = ResizeArray_distinct(ResizeArray_append(ResizeArray_choose((df) => LDPropertyValue.tryGetSubjectOf(df, unwrap(graph), unwrap(context)), defaultArg(fragmentDescriptors, [])), ResizeArray_collect((p) => ResizeArray_append(LDLabProcess.getObjectsAsData(p, unwrap(graph), unwrap(context)), LDLabProcess.getResultsAsData(p, unwrap(graph), unwrap(context))), processes)));
|
|
1108
1346
|
const files = ResizeArray_filter((d) => DataAux_pathAndSelectorFromName(d.Id)[1] == null, data);
|
|
@@ -1146,6 +1384,13 @@ function AssayConversion_decomposeAssay_Z6839B9E8(assay, graph, context) {
|
|
|
1146
1384
|
const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(assay, unwrap(graph), unwrap(context)));
|
|
1147
1385
|
return ArcAssay.create(LDDataset.getIdentifierAsString(assay, unwrap(context)), unwrap(LDDataset.tryGetNameAsString(assay, unwrap(context))), unwrap(LDDataset.tryGetDescriptionAsString(assay, unwrap(context))), unwrap(variableMeasured), unwrap(measurementMethod), unwrap(measurementTechnique), tables.Tables, unwrap(dataMap), perfomers, comments);
|
|
1148
1386
|
}
|
|
1387
|
+
class StudyConversion {
|
|
1388
|
+
constructor() {
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
function StudyConversion_$reflection() {
|
|
1392
|
+
return class_type("ARCtrl.Conversion.StudyConversion", void 0, StudyConversion);
|
|
1393
|
+
}
|
|
1149
1394
|
function StudyConversion_composeStudy_ZFE0E38E(study, fs) {
|
|
1150
1395
|
let collection;
|
|
1151
1396
|
const dateCreated = bind(DateTime_tryFromString, study.SubmissionDate);
|
|
@@ -1171,6 +1416,13 @@ function StudyConversion_decomposeStudy_Z6839B9E8(study, graph, context) {
|
|
|
1171
1416
|
const comments = ResizeArray_map((c_1) => BaseTypes_decomposeComment_Z2F770004(c_1, unwrap(context)), LDDataset.getComments(study, unwrap(graph), unwrap(context)));
|
|
1172
1417
|
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);
|
|
1173
1418
|
}
|
|
1419
|
+
class InvestigationConversion {
|
|
1420
|
+
constructor() {
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
function InvestigationConversion_$reflection() {
|
|
1424
|
+
return class_type("ARCtrl.Conversion.InvestigationConversion", void 0, InvestigationConversion);
|
|
1425
|
+
}
|
|
1174
1426
|
function InvestigationConversion_composeInvestigation_5AEC717D(investigation, fs) {
|
|
1175
1427
|
let b;
|
|
1176
1428
|
let name;
|
|
@@ -1243,5 +1495,26 @@ class TypeExtensions_Conversion {
|
|
|
1243
1495
|
return ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(a, unwrap(graph), unwrap(context));
|
|
1244
1496
|
}
|
|
1245
1497
|
}
|
|
1498
|
+
function TypeExtensions_Conversion_$reflection() {
|
|
1499
|
+
return class_type("ARCtrl.Conversion.TypeExtensions.Conversion", void 0, TypeExtensions_Conversion);
|
|
1500
|
+
}
|
|
1501
|
+
function ARCtrl_ROCrate_Dataset__Dataset_toArcAssay_Static_Z6839B9E8(a, graph, context) {
|
|
1502
|
+
return AssayConversion_decomposeAssay_Z6839B9E8(a, unwrap(graph), unwrap(context));
|
|
1503
|
+
}
|
|
1504
|
+
function ARCtrl_ROCrate_Dataset__Dataset_fromArcAssay_Static_1501C0F8(a) {
|
|
1505
|
+
return AssayConversion_composeAssay_Z5C53FD5C(a);
|
|
1506
|
+
}
|
|
1507
|
+
function ARCtrl_ROCrate_Dataset__Dataset_toArcStudy_Static_Z6839B9E8(a, graph, context) {
|
|
1508
|
+
return StudyConversion_decomposeStudy_Z6839B9E8(a, unwrap(graph), unwrap(context));
|
|
1509
|
+
}
|
|
1510
|
+
function ARCtrl_ROCrate_Dataset__Dataset_fromArcStudy_Static_1680536E(a) {
|
|
1511
|
+
return StudyConversion_composeStudy_ZFE0E38E(a);
|
|
1512
|
+
}
|
|
1513
|
+
function ARCtrl_ROCrate_Dataset__Dataset_toArcInvestigation_Static_Z6839B9E8(a, graph, context) {
|
|
1514
|
+
return InvestigationConversion_decomposeInvestigation_Z6839B9E8(a, unwrap(graph), unwrap(context));
|
|
1515
|
+
}
|
|
1516
|
+
function ARCtrl_ROCrate_Dataset__Dataset_fromArcInvestigation_Static_Z720BD3FF(a) {
|
|
1517
|
+
return InvestigationConversion_composeInvestigation_5AEC717D(a);
|
|
1518
|
+
}
|
|
1246
1519
|
|
|
1247
|
-
export { ARCtrl_ArcAssay__ArcAssay_ToROCrateAssay_1695DD5C, ARCtrl_ArcAssay__ArcAssay_fromROCrateAssay_Static_Z6839B9E8, ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_1695DD5C, ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8, ARCtrl_ArcStudy__ArcStudy_ToROCrateStudy_1695DD5C, ARCtrl_ArcStudy__ArcStudy_fromROCrateStudy_Static_Z6839B9E8, ARCtrl_ArcTable__ArcTable_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586, ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4, AssayConversion_composeAssay_Z5C53FD5C, AssayConversion_decomposeAssay_Z6839B9E8, AssayConversion_getDataFilesFromProcesses_6BABD1B0, BaseTypes_cellOfPropertyValue_Z2F770004, BaseTypes_composeCharacteristicValue, BaseTypes_composeComment_Z13201A7E, BaseTypes_composeComponent, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composeFactorValue, BaseTypes_composeFile_6CE21C7D, BaseTypes_composeFragmentDescriptor_Z4C0BEF62, BaseTypes_composeFreetextMaterialName, BaseTypes_composeParameterValue, BaseTypes_composeProcessInput, BaseTypes_composeProcessOutput, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_decomposeCharacteristicValue_Z2F770004, BaseTypes_decomposeComment_Z2F770004, BaseTypes_decomposeComponent_Z2F770004, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposeFactorValue_Z2F770004, BaseTypes_decomposeFile_Z2F770004, BaseTypes_decomposeFragmentDescriptor_Z6839B9E8, BaseTypes_decomposeParameterValue_Z2F770004, BaseTypes_decomposeProcessInput_Z2F770004, BaseTypes_decomposeProcessOutput_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_headerOntologyOfPropertyValue_Z2F770004, BaseTypes_ontologyTermFromNameAndID_40457300, BaseTypes_termOfHeader_6CAF647B, BaseTypes_tryOntologyTermFromNameAndID_40457300, BaseTypes_valuesOfCell_Z436420FE, ColumnIndex_orderName, ColumnIndex_setIndex, ColumnIndex_tryGetIndex, DatamapConversion_composeFragmentDescriptors_Z8923FA3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F, DateTime_toString, DateTime_tryFromString, InvestigationConversion_composeInvestigation_5AEC717D, InvestigationConversion_decomposeInvestigation_Z6839B9E8, PersonConversion_composeAddress_Z721C83C5, PersonConversion_composeAffiliation_Z721C83C5, PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposeAddress_4E60E31B, PersonConversion_decomposeAffiliation_Z2F770004, PersonConversion_decomposePerson_Z6839B9E8, ProcessConversion_composeProcessName, ProcessConversion_decomposeProcessName_Z721C83C5, ProcessConversion_getProcessGetter, ProcessConversion_groupProcesses_Z27F0B586, ProcessConversion_processToRows_Z6839B9E8, ProcessConversion_tryCharacteristicGetter, ProcessConversion_tryComponentGetter, ProcessConversion_tryFactorGetter, ProcessConversion_tryGetCommentGetter, ProcessConversion_tryGetInputGetter, ProcessConversion_tryGetOutputGetter, ProcessConversion_tryGetPerformerGetter, ProcessConversion_tryGetProtocolDescriptionGetter, ProcessConversion_tryGetProtocolREFGetter, ProcessConversion_tryGetProtocolTypeGetter, ProcessConversion_tryGetProtocolType_Z6839B9E8, ProcessConversion_tryGetProtocolURIGetter, ProcessConversion_tryGetProtocolVersionGetter, ProcessConversion_tryParameterGetter, ScholarlyArticleConversion_composeAuthor_Z721C83C5, ScholarlyArticleConversion_composeAuthors_Z721C83C5, ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, ScholarlyArticleConversion_decomposeAuthor_Z2F770004, ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5, ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8, ScholarlyArticleConversion_splitAuthors_Z721C83C5, StudyConversion_composeStudy_ZFE0E38E, StudyConversion_decomposeStudy_Z6839B9E8, TypeExtensions_Conversion };
|
|
1520
|
+
export { ARCtrl_ArcAssay__ArcAssay_ToROCrateAssay_1695DD5C, ARCtrl_ArcAssay__ArcAssay_fromROCrateAssay_Static_Z6839B9E8, ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation_1695DD5C, ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8, ARCtrl_ArcStudy__ArcStudy_ToROCrateStudy_1695DD5C, ARCtrl_ArcStudy__ArcStudy_fromROCrateStudy_Static_Z6839B9E8, ARCtrl_ArcTable__ArcTable_GetProcesses_5E660E5C, ARCtrl_ArcTable__ArcTable_GetProtocols, ARCtrl_ArcTable__ArcTable_fromProcesses_Static_Z3575FB5F, ARCtrl_ArcTable__ArcTable_fromProtocol_Static_Z6839B9E8, ARCtrl_ArcTables__ArcTables_GetProcesses_5E660E5C, ARCtrl_ArcTables__ArcTables_fromProcesses_Static_Z27F0B586, ARCtrl_ROCrate_Dataset__Dataset_fromArcAssay_Static_1501C0F8, ARCtrl_ROCrate_Dataset__Dataset_fromArcInvestigation_Static_Z720BD3FF, ARCtrl_ROCrate_Dataset__Dataset_fromArcStudy_Static_1680536E, ARCtrl_ROCrate_Dataset__Dataset_toArcAssay_Static_Z6839B9E8, ARCtrl_ROCrate_Dataset__Dataset_toArcInvestigation_Static_Z6839B9E8, ARCtrl_ROCrate_Dataset__Dataset_toArcStudy_Static_Z6839B9E8, ARCtrl_ROCrate_LDNode__LDNode_GetColumnIndex, ARCtrl_ROCrate_LDNode__LDNode_SetColumnIndex_Z524259A4, ARCtrl_ROCrate_LDNode__LDNode_TryGetColumnIndex, AssayConversion, AssayConversion_$reflection, AssayConversion_composeAssay_Z5C53FD5C, AssayConversion_decomposeAssay_Z6839B9E8, AssayConversion_getDataFilesFromProcesses_6BABD1B0, BaseTypes, BaseTypes_$reflection, BaseTypes_cellOfPropertyValue_Z2F770004, BaseTypes_composeCharacteristicValue, BaseTypes_composeComment_Z13201A7E, BaseTypes_composeComponent, BaseTypes_composeDefinedTerm_ZDED3A0F, BaseTypes_composeFactorValue, BaseTypes_composeFile_6CE21C7D, BaseTypes_composeFragmentDescriptor_Z4C0BEF62, BaseTypes_composeFreetextMaterialName, BaseTypes_composeParameterValue, BaseTypes_composeProcessInput, BaseTypes_composeProcessOutput, BaseTypes_composePropertyValueFromOA_ZDED3A0F, BaseTypes_composeTechnologyPlatform_ZDED3A0F, BaseTypes_decomposeCharacteristicValue_Z2F770004, BaseTypes_decomposeComment_Z2F770004, BaseTypes_decomposeComponent_Z2F770004, BaseTypes_decomposeDefinedTerm_Z2F770004, BaseTypes_decomposeFactorValue_Z2F770004, BaseTypes_decomposeFile_Z2F770004, BaseTypes_decomposeFragmentDescriptor_Z6839B9E8, BaseTypes_decomposeParameterValue_Z2F770004, BaseTypes_decomposeProcessInput_Z2F770004, BaseTypes_decomposeProcessOutput_Z2F770004, BaseTypes_decomposePropertyValueToOA_Z2F770004, BaseTypes_decomposeTechnologyPlatform_Z721C83C5, BaseTypes_headerOntologyOfPropertyValue_Z2F770004, BaseTypes_ontologyTermFromNameAndID_40457300, BaseTypes_termOfHeader_6CAF647B, BaseTypes_tryOntologyTermFromNameAndID_40457300, BaseTypes_valuesOfCell_Z436420FE, ColumnIndex_orderName, ColumnIndex_setIndex, ColumnIndex_tryGetIndex, CompositeRow_toProtocol, DatamapConversion, DatamapConversion_$reflection, DatamapConversion_composeFragmentDescriptors_Z8923FA3, DatamapConversion_decomposeFragmentDescriptors_Z6E59645F, DateTime_toString, DateTime_tryFromString, InvestigationConversion, InvestigationConversion_$reflection, InvestigationConversion_composeInvestigation_5AEC717D, InvestigationConversion_decomposeInvestigation_Z6839B9E8, PersonConversion, PersonConversion_$reflection, PersonConversion_composeAddress_Z721C83C5, PersonConversion_composeAffiliation_Z721C83C5, PersonConversion_composePerson_Z64D846DC, PersonConversion_decomposeAddress_4E60E31B, PersonConversion_decomposeAffiliation_Z2F770004, PersonConversion_decomposePerson_Z6839B9E8, PersonConversion_get_orcidKey, ProcessConversion, ProcessConversion_$reflection, ProcessConversion_composeProcessName, ProcessConversion_decomposeProcessName_Z721C83C5, ProcessConversion_getProcessGetter, ProcessConversion_groupProcesses_Z27F0B586, ProcessConversion_processToRows_Z6839B9E8, ProcessConversion_tryCharacteristicGetter, ProcessConversion_tryComponentGetter, ProcessConversion_tryFactorGetter, ProcessConversion_tryGetCommentGetter, ProcessConversion_tryGetInputGetter, ProcessConversion_tryGetOutputGetter, ProcessConversion_tryGetPerformerGetter, ProcessConversion_tryGetProtocolDescriptionGetter, ProcessConversion_tryGetProtocolREFGetter, ProcessConversion_tryGetProtocolTypeGetter, ProcessConversion_tryGetProtocolType_Z6839B9E8, ProcessConversion_tryGetProtocolURIGetter, ProcessConversion_tryGetProtocolVersionGetter, ProcessConversion_tryParameterGetter, ScholarlyArticleConversion, ScholarlyArticleConversion_$reflection, ScholarlyArticleConversion_composeAuthor_Z721C83C5, ScholarlyArticleConversion_composeAuthors_Z721C83C5, ScholarlyArticleConversion_composeScholarlyArticle_D324A6D, ScholarlyArticleConversion_decomposeAuthor_Z2F770004, ScholarlyArticleConversion_decomposeAuthors_1AAAE9A5, ScholarlyArticleConversion_decomposeScholarlyArticle_Z6839B9E8, ScholarlyArticleConversion_splitAuthors_Z721C83C5, StudyConversion, StudyConversion_$reflection, StudyConversion_composeStudy_ZFE0E38E, StudyConversion_decomposeStudy_Z6839B9E8, TypeExtensions_Conversion, TypeExtensions_Conversion_$reflection };
|