@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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { map, item, unzip } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
3
|
-
import {
|
|
1
|
+
import { reverse, map, fold, cons, singleton, isEmpty, head, tail, empty, ofArray, toArray, exists, collect as collect$1, sortBy, ofSeq, length, iterateIndexed } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
2
|
+
import { map as map$1, item, unzip } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
3
|
+
import { tryFind, toArray as toArray$1, delay, map as map$2, collect, singleton as singleton$1, fold as fold$1 } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
4
4
|
import { FsWorksheet } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js';
|
|
5
5
|
import { value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
6
|
-
import {
|
|
6
|
+
import { fromStringCellColumns, ColumnValueRefs_fromStringCellColumns, fixDeprecatedIOHeader, toStringCellColumns } from './CompositeColumn.js';
|
|
7
7
|
import { comparePrimitives } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
8
8
|
import { ArcTableValues } from '../../Core/Table/ArcTableAux.js';
|
|
9
9
|
import { toFail, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
@@ -16,14 +16,14 @@ import { Dictionary_tryGet } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha
|
|
|
16
16
|
import { addToDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
17
17
|
|
|
18
18
|
function Aux_List_groupWhen(f, list) {
|
|
19
|
-
return reverse(map
|
|
19
|
+
return reverse(map(reverse, fold((acc, e) => {
|
|
20
20
|
const matchValue = f(e);
|
|
21
21
|
if (matchValue) {
|
|
22
|
-
return cons(singleton
|
|
22
|
+
return cons(singleton(e), acc);
|
|
23
23
|
} else if (!isEmpty(acc)) {
|
|
24
24
|
return cons(cons(e, head(acc)), tail(acc));
|
|
25
25
|
} else {
|
|
26
|
-
return singleton
|
|
26
|
+
return singleton(singleton(e));
|
|
27
27
|
}
|
|
28
28
|
}, empty(), list)));
|
|
29
29
|
}
|
|
@@ -69,7 +69,7 @@ function classifyColumnOrder(column) {
|
|
|
69
69
|
}
|
|
70
70
|
const helperColumnStrings = ofArray(["Term Source REF", "Term Accession Number", "Unit", "Data Format", "Data Selector Format"]);
|
|
71
71
|
function groupColumnsByHeader(stringCellColumns) {
|
|
72
|
-
return map(toArray
|
|
72
|
+
return map$1(toArray, toArray(Aux_List_groupWhen((c) => {
|
|
73
73
|
const v = item(0, c);
|
|
74
74
|
return !exists((s) => v.startsWith(s), helperColumnStrings);
|
|
75
75
|
}, ofArray(stringCellColumns))));
|
|
@@ -77,10 +77,13 @@ function groupColumnsByHeader(stringCellColumns) {
|
|
|
77
77
|
function tryAnnotationTable(sheet) {
|
|
78
78
|
return tryFind((t) => t.Name.startsWith("annotationTable"), sheet.Tables);
|
|
79
79
|
}
|
|
80
|
+
function composeColumns(stringCellColumns) {
|
|
81
|
+
return map$1(fromStringCellColumns, groupColumnsByHeader(stringCellColumns));
|
|
82
|
+
}
|
|
80
83
|
function composeArcTableValues(stringCellColumns) {
|
|
81
84
|
const valueMap = /* @__PURE__ */ new Map([]);
|
|
82
85
|
const rowCount = item(0, stringCellColumns).length - 1 | 0;
|
|
83
|
-
const patternInput = unzip(map((columns) => ColumnValueRefs_fromStringCellColumns(valueMap, columns), groupColumnsByHeader(stringCellColumns)));
|
|
86
|
+
const patternInput = unzip(map$1((columns) => ColumnValueRefs_fromStringCellColumns(valueMap, columns), groupColumnsByHeader(stringCellColumns)));
|
|
84
87
|
return [patternInput[0], ArcTableValues.fromRefColumns(patternInput[1], valueMap, rowCount)];
|
|
85
88
|
}
|
|
86
89
|
function tryFromFsWorksheet(sheet) {
|
|
@@ -90,13 +93,13 @@ function tryFromFsWorksheet(sheet) {
|
|
|
90
93
|
return void 0;
|
|
91
94
|
} else {
|
|
92
95
|
const t = value(matchValue);
|
|
93
|
-
const patternInput = composeArcTableValues(map(fixDeprecatedIOHeader, toArray(delay(() => map$
|
|
96
|
+
const patternInput = composeArcTableValues(map$1(fixDeprecatedIOHeader, toArray$1(delay(() => map$2((c) => toArray$1(delay(() => collect((r) => {
|
|
94
97
|
const matchValue_1 = sheet.CellCollection.TryGetCell(r, c);
|
|
95
98
|
if (matchValue_1 == null) {
|
|
96
|
-
return singleton("");
|
|
99
|
+
return singleton$1("");
|
|
97
100
|
} else {
|
|
98
101
|
const cell = value(matchValue_1);
|
|
99
|
-
return singleton(cell.ValueAsString());
|
|
102
|
+
return singleton$1(cell.ValueAsString());
|
|
100
103
|
}
|
|
101
104
|
}, rangeDouble(1, 1, t.RangeAddress.LastAddress.RowNumber)))), rangeDouble(1, 1, t.RangeAddress.LastAddress.ColumnNumber))))));
|
|
102
105
|
return ArcTable.fromArcTableValues(sheet.Name, Array.from(patternInput[0]), patternInput[1]);
|
|
@@ -113,11 +116,11 @@ function toFsWorksheet(index, table) {
|
|
|
113
116
|
if (table.ColumnCount === 0) {
|
|
114
117
|
return ws;
|
|
115
118
|
} else {
|
|
116
|
-
const columns = collect(toStringCellColumns, sortBy(classifyColumnOrder, ofSeq(table.Columns), {
|
|
119
|
+
const columns = collect$1(toStringCellColumns, sortBy(classifyColumnOrder, ofSeq(table.Columns), {
|
|
117
120
|
Compare: comparePrimitives
|
|
118
121
|
}));
|
|
119
122
|
let tableRowCount;
|
|
120
|
-
const maxRow = fold((acc, c) => max(acc, length(c)), 0, columns) | 0;
|
|
123
|
+
const maxRow = fold$1((acc, c) => max(acc, length(c)), 0, columns) | 0;
|
|
121
124
|
tableRowCount = maxRow === 1 ? 2 : maxRow;
|
|
122
125
|
const tableColumnCount = length(columns) | 0;
|
|
123
126
|
const name = index == null ? "annotationTable" : `${"annotationTable"}${value(index)}`;
|
|
@@ -146,4 +149,4 @@ function toFsWorksheet(index, table) {
|
|
|
146
149
|
}
|
|
147
150
|
}
|
|
148
151
|
|
|
149
|
-
export { Aux_List_groupWhen, classifyColumnOrder, classifyHeaderOrder, composeArcTableValues, groupColumnsByHeader, helperColumnStrings, toFsWorksheet, tryAnnotationTable, tryFromFsWorksheet };
|
|
152
|
+
export { Aux_List_groupWhen, classifyColumnOrder, classifyHeaderOrder, composeArcTableValues, composeColumns, groupColumnsByHeader, helperColumnStrings, toFsWorksheet, tryAnnotationTable, tryFromFsWorksheet };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { map, unwrap, bind, defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
2
2
|
import { item } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
3
3
|
import { CompositeCell } from '../../Core/Table/CompositeCell.js';
|
|
4
4
|
import { Option_fromValueWithDefault } from '../../Core/Helper/Collections.js';
|
|
@@ -23,10 +23,11 @@ function dataFromStringCells(format, selectorFormat, cellValues) {
|
|
|
23
23
|
return CompositeCell.createDataFromString(item(0, cellValues), unwrap(format_1), unwrap(selectorFormat_1));
|
|
24
24
|
}
|
|
25
25
|
function toStringCells(isTerm, hasUnit, cell) {
|
|
26
|
+
let v, v_1, v_2;
|
|
26
27
|
switch (cell.tag) {
|
|
27
28
|
case /* Term */
|
|
28
29
|
0:
|
|
29
|
-
if (cell.fields[0], hasUnit) {
|
|
30
|
+
if (v = cell.fields[0], hasUnit) {
|
|
30
31
|
const v_6 = cell.fields[0];
|
|
31
32
|
return [v_6.NameText, "", defaultArg(v_6.TermSourceREF, ""), v_6.TermAccessionOntobeeUrl];
|
|
32
33
|
} else {
|
|
@@ -47,10 +48,10 @@ function toStringCells(isTerm, hasUnit, cell) {
|
|
|
47
48
|
return [defaultArg(d.Name, ""), format, selectorFormat];
|
|
48
49
|
}
|
|
49
50
|
default:
|
|
50
|
-
if (cell.fields[0], hasUnit) {
|
|
51
|
+
if (v_1 = cell.fields[0], hasUnit) {
|
|
51
52
|
const v_3 = cell.fields[0];
|
|
52
53
|
return [v_3, "", "", ""];
|
|
53
|
-
} else if (cell.fields[0], isTerm) {
|
|
54
|
+
} else if (v_2 = cell.fields[0], isTerm) {
|
|
54
55
|
const v_4 = cell.fields[0];
|
|
55
56
|
return [v_4, "", ""];
|
|
56
57
|
} else {
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { skip, item, setItem, map, tryItem } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
2
2
|
import { IOType, CompositeHeader_Output, CompositeHeader_Input, IOType_Source } from '../../Core/Table/CompositeHeader.js';
|
|
3
3
|
import { toString, FSharpRef } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { fromStringCells, toStringCells } from './CompositeHeader.js';
|
|
5
|
+
import { toArray, delay, map as map$1, exists, toList, append, singleton, reduce } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
6
6
|
import { rangeDouble } from '../../../node_modules/@fable-org/fable-library-js/Range.js';
|
|
7
|
-
import {
|
|
8
|
-
import '../../
|
|
9
|
-
import { defaultOf, stringHash } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
10
|
-
import { ofArray, singleton } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
11
|
-
import { tryGetValue, getItemFromDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
12
|
-
import { mergeHashes } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js';
|
|
7
|
+
import { CompositeColumn } from '../../Core/Table/CompositeColumn.js';
|
|
8
|
+
import { FsCell } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/Cells/FsCell.fs.js';
|
|
13
9
|
import { toStringCells as toStringCells$1 } from './CompositeCell.js';
|
|
10
|
+
import { defaultArg, value } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
11
|
+
import { ofArray, singleton as singleton$1, map as map$2 } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
12
|
+
import { stringHash, defaultOf } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
14
13
|
import { ColumnValueRefs_Sparse, ensureCellHashInValueMap, ColumnValueRefs_Constant } from '../../Core/Table/ArcTableAux.js';
|
|
14
|
+
import { mergeHashes } from '../../fable_modules/FsSpreadsheet.7.0.0-alpha.1/HashCodes.fs.js';
|
|
15
|
+
import { tryGetValue, getItemFromDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
15
16
|
|
|
16
17
|
function fixDeprecatedIOHeader(stringCellCol) {
|
|
17
18
|
if (stringCellCol.length === 0) {
|
|
18
19
|
throw new Error("Can't fix IOHeader Invalid column, neither header nor values given");
|
|
19
20
|
}
|
|
20
|
-
skip(1, stringCellCol);
|
|
21
|
+
const values = skip(1, stringCellCol);
|
|
21
22
|
const matchValue = IOType.ofString(item(0, stringCellCol));
|
|
22
23
|
switch (matchValue.tag) {
|
|
23
24
|
case /* FreeText */
|
|
@@ -34,6 +35,24 @@ function fixDeprecatedIOHeader(stringCellCol) {
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
}
|
|
38
|
+
function fromStringCellColumns(columns) {
|
|
39
|
+
const patternInput = fromStringCells(map((c) => item(0, c), columns));
|
|
40
|
+
const l = item(0, columns).length | 0;
|
|
41
|
+
const cells = Array.from(toArray(delay(() => map$1((i) => patternInput[1](map((c_1) => item(i, c_1), columns)), rangeDouble(1, 1, l - 1)))));
|
|
42
|
+
return CompositeColumn.create(patternInput[0], cells);
|
|
43
|
+
}
|
|
44
|
+
function stringCellColumnsOfFsColumns(columns) {
|
|
45
|
+
return map((c) => {
|
|
46
|
+
c.ToDenseColumn();
|
|
47
|
+
return map((cell) => cell.ValueAsString(), toArray(c.Cells));
|
|
48
|
+
}, columns);
|
|
49
|
+
}
|
|
50
|
+
function fromFsColumns(columns) {
|
|
51
|
+
return fromStringCellColumns(map((c) => {
|
|
52
|
+
c.ToDenseColumn();
|
|
53
|
+
return map((c_1) => c_1.ValueAsString(), toArray(c.Cells));
|
|
54
|
+
}, columns));
|
|
55
|
+
}
|
|
37
56
|
function toStringCellColumns(column) {
|
|
38
57
|
const hasUnit = exists((c) => c.isUnitized, column.Cells);
|
|
39
58
|
const isTerm = column.Header.IsTermColumn;
|
|
@@ -43,16 +62,20 @@ function toStringCellColumns(column) {
|
|
|
43
62
|
const cells = map((cell) => toStringCells$1(isTerm, hasUnit, cell), toArray(column.Cells));
|
|
44
63
|
const getCellOrDefault = (ri, ci, cells_1) => defaultArg(tryItem(ci, item(ri, cells_1)), "");
|
|
45
64
|
if (hasUnit) {
|
|
46
|
-
return ofArray([toList(delay(() => append(singleton
|
|
65
|
+
return ofArray([toList(delay(() => append(singleton(item(0, header)), delay(() => map$1((i) => getCellOrDefault(i, 0, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(1, header)), delay(() => map$1((i_1) => getCellOrDefault(i_1, 1, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(2, header)), delay(() => map$1((i_2) => getCellOrDefault(i_2, 2, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(3, header)), delay(() => map$1((i_3) => getCellOrDefault(i_3, 3, cells), rangeDouble(0, 1, compositeCells.length - 1))))))]);
|
|
47
66
|
} else if (isTerm) {
|
|
48
|
-
return ofArray([toList(delay(() => append(singleton
|
|
67
|
+
return ofArray([toList(delay(() => append(singleton(item(0, header)), delay(() => map$1((i_4) => getCellOrDefault(i_4, 0, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(1, header)), delay(() => map$1((i_5) => getCellOrDefault(i_5, 1, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(2, header)), delay(() => map$1((i_6) => getCellOrDefault(i_6, 2, cells), rangeDouble(0, 1, compositeCells.length - 1))))))]);
|
|
49
68
|
} else if (isData) {
|
|
50
|
-
return ofArray([toList(delay(() => append(singleton
|
|
69
|
+
return ofArray([toList(delay(() => append(singleton(item(0, header)), delay(() => map$1((i_7) => getCellOrDefault(i_7, 0, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(1, header)), delay(() => map$1((i_8) => getCellOrDefault(i_8, 1, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(2, header)), delay(() => map$1((i_9) => getCellOrDefault(i_9, 2, cells), rangeDouble(0, 1, compositeCells.length - 1))))))]);
|
|
51
70
|
} else {
|
|
52
|
-
return singleton(toList(delay(() => append(singleton
|
|
71
|
+
return singleton$1(toList(delay(() => append(singleton(item(0, header)), delay(() => map$1((i_10) => item(0, item(i_10, cells)), rangeDouble(0, 1, compositeCells.length - 1)))))));
|
|
53
72
|
}
|
|
54
73
|
}
|
|
74
|
+
function toFsColumns(column) {
|
|
75
|
+
return map$2((c) => map$2((s) => new FsCell(s), c), toStringCellColumns(column));
|
|
76
|
+
}
|
|
55
77
|
function ColumnValueRefs_fromStringCellColumns(valueMap, columns) {
|
|
78
|
+
let cellHash;
|
|
56
79
|
const hashMap = /* @__PURE__ */ new Map([]);
|
|
57
80
|
const cells = /* @__PURE__ */ new Map([]);
|
|
58
81
|
let constant = true;
|
|
@@ -90,8 +113,8 @@ function ColumnValueRefs_fromStringCellColumns(valueMap, columns) {
|
|
|
90
113
|
hashMap.set(hash_2, cellHash_5);
|
|
91
114
|
cells.set(i - 1, cellHash_5);
|
|
92
115
|
}
|
|
93
|
-
} else if (value(matchValue) | 0, constant) {
|
|
94
|
-
value(matchValue) | 0;
|
|
116
|
+
} else if (cellHash = value(matchValue) | 0, constant) {
|
|
117
|
+
const cellHash_1 = value(matchValue) | 0;
|
|
95
118
|
} else {
|
|
96
119
|
const cellHash_2 = value(matchValue) | 0;
|
|
97
120
|
cells.set(i - 1, cellHash_2);
|
|
@@ -105,4 +128,4 @@ function ColumnValueRefs_fromStringCellColumns(valueMap, columns) {
|
|
|
105
128
|
}
|
|
106
129
|
}
|
|
107
130
|
|
|
108
|
-
export { ColumnValueRefs_fromStringCellColumns, fixDeprecatedIOHeader, toStringCellColumns };
|
|
131
|
+
export { ColumnValueRefs_fromStringCellColumns, fixDeprecatedIOHeader, fromFsColumns, fromStringCellColumns, stringCellColumnsOfFsColumns, toFsColumns, toStringCellColumns };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { toFail, printf } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
2
2
|
import { value, map } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { OntologyAnnotation } from '../../Core/OntologyAnnotation.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { item, skip, tryFindIndex
|
|
4
|
+
import { unitizedFromStringCells, termFromStringCells, dataFromStringCells, freeTextFromStringCells } from './CompositeCell.js';
|
|
5
|
+
import { CompositeHeader_Parameter, CompositeHeader_Factor, CompositeHeader_Characteristic, CompositeHeader_Component, IOType, CompositeHeader_Input, IOType_Data, CompositeHeader_Output, CompositeHeader_Comment, CompositeHeader_ProtocolType, CompositeHeader_Date, CompositeHeader_Performer, CompositeHeader_ProtocolVersion, CompositeHeader_ProtocolUri, CompositeHeader_ProtocolDescription, CompositeHeader_ProtocolREF, CompositeHeader_FreeText } from '../../Core/Table/CompositeHeader.js';
|
|
6
|
+
import { equalsWith, item, skip, tryFindIndex } from '../../../node_modules/@fable-org/fable-library-js/Array.js';
|
|
7
7
|
import { defaultOf } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
8
|
-
import { ActivePatterns_$
|
|
8
|
+
import { ActivePatterns_$007CTSRColumnHeader$007C_$007C, ActivePatterns_$007CTANColumnHeader$007C_$007C, ActivePatterns_$007CUnitColumnHeader$007C_$007C, tryParseParameterColumnHeader, tryParseFactorColumnHeader, tryParseCharacteristicColumnHeader, tryParseComponentColumnHeader, ActivePatterns_$007CInputColumnHeader$007C_$007C, ActivePatterns_$007COutputColumnHeader$007C_$007C, ActivePatterns_$007CComment$007C_$007C } from '../../Core/Helper/Regex.js';
|
|
9
9
|
import { toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
10
10
|
import { toArray, delay, append, singleton, empty } from '../../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
11
11
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defaultArg, toArray,
|
|
1
|
+
import { exists, head, tryHead, delay, append, singleton, iterateIndexed, map, tryFind, choose, tryPick, isEmpty as isEmpty$1, iterate } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
2
|
+
import { value, defaultArg, toArray, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
3
3
|
import { getEnumerator } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
4
4
|
import { fromRows as fromRows$1, toRows } from './Metadata/Assays.js';
|
|
5
|
-
import { empty,
|
|
5
|
+
import { isEmpty, empty, singleton as singleton$1, ofSeq } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
6
6
|
import { ArcAssay } from '../Core/ArcTypes.js';
|
|
7
7
|
import { fromRows, toRows as toRows$1 } from './Metadata/Contacts.js';
|
|
8
8
|
import { createMissingIdentifier } from '../Core/Helper/Identifier.js';
|
|
9
|
-
import {
|
|
9
|
+
import { SparseRowModule_tryGetValueAt, SparseRowModule_fromValues, SparseRowModule_writeToSheet, SparseRowModule_fromFsRow, SparseRowModule_getAllValues, SparseRowModule_fromAllValues } from './Metadata/SparseTable.js';
|
|
10
10
|
import { FsWorksheet } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js';
|
|
11
|
-
import {
|
|
11
|
+
import { toFail, printf, toConsole } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
12
12
|
import { FsWorkbook } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
|
|
13
|
-
import { toFsWorksheet as toFsWorksheet$1
|
|
14
|
-
import {
|
|
13
|
+
import { tryFromFsWorksheet, toFsWorksheet as toFsWorksheet$1 } from './AnnotationTable/ArcTable.js';
|
|
14
|
+
import { tryFromFsWorksheet as tryFromFsWorksheet$1, toFsWorksheet } from './DataMapTable/DataMapTable.js';
|
|
15
15
|
|
|
16
16
|
function ArcAssay_fromRows(rows) {
|
|
17
17
|
const patternInput = exists((row) => {
|
|
@@ -24,14 +24,14 @@ function ArcAssay_fromRows(rows) {
|
|
|
24
24
|
loop:
|
|
25
25
|
while (true) {
|
|
26
26
|
const lastRow = lastRow_mut, assays = assays_mut, contacts = contacts_mut, rowNumber = rowNumber_mut;
|
|
27
|
-
let matchResult;
|
|
27
|
+
let matchResult, prefix_2, prefix_3;
|
|
28
28
|
if (lastRow != null) {
|
|
29
29
|
if (prefix = value(lastRow), prefix === "ASSAY" ? true : prefix === "ASSAY METADATA") {
|
|
30
30
|
matchResult = 0;
|
|
31
|
-
value(lastRow);
|
|
31
|
+
prefix_2 = value(lastRow);
|
|
32
32
|
} else if (value(lastRow) === "ASSAY PERFORMERS") {
|
|
33
33
|
matchResult = 1;
|
|
34
|
-
value(lastRow);
|
|
34
|
+
prefix_3 = value(lastRow);
|
|
35
35
|
} else {
|
|
36
36
|
matchResult = 2;
|
|
37
37
|
}
|
|
@@ -57,8 +57,8 @@ function ArcAssay_fromRows(rows) {
|
|
|
57
57
|
}
|
|
58
58
|
default: {
|
|
59
59
|
let matchResult_1, assays_2, contacts_2;
|
|
60
|
-
if (isEmpty
|
|
61
|
-
if (isEmpty
|
|
60
|
+
if (isEmpty(assays)) {
|
|
61
|
+
if (isEmpty(contacts)) {
|
|
62
62
|
matchResult_1 = 0;
|
|
63
63
|
} else {
|
|
64
64
|
matchResult_1 = 1;
|
|
@@ -81,6 +81,7 @@ function ArcAssay_fromRows(rows) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
break;
|
|
84
85
|
}
|
|
85
86
|
};
|
|
86
87
|
if (en["System.Collections.IEnumerator.MoveNext"]()) {
|
|
@@ -90,7 +91,7 @@ function ArcAssay_fromRows(rows) {
|
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
function ArcAssay_toRows(assay) {
|
|
93
|
-
return delay(() => append(singleton
|
|
94
|
+
return delay(() => append(singleton(SparseRowModule_fromValues(["ASSAY"])), delay(() => append(toRows("Assay", singleton$1(assay)), delay(() => append(singleton(SparseRowModule_fromValues(["ASSAY PERFORMERS"])), delay(() => toRows$1("Assay Person", ofSeq(assay.Performers)))))))));
|
|
94
95
|
}
|
|
95
96
|
function ArcAssay_toMetadataSheet(assay) {
|
|
96
97
|
const sheet = new FsWorksheet("isa_assay");
|
|
@@ -112,6 +113,17 @@ function ArcAssay_fromMetadataSheet(sheet) {
|
|
|
112
113
|
return toFail(printf("Failed while parsing metadatasheet: %s"))(arg);
|
|
113
114
|
}
|
|
114
115
|
}
|
|
116
|
+
function ArcAssay_toMetadataCollection(assay) {
|
|
117
|
+
return map(SparseRowModule_getAllValues, ArcAssay_toRows(assay));
|
|
118
|
+
}
|
|
119
|
+
function ArcAssay_fromMetadataCollection(collection) {
|
|
120
|
+
try {
|
|
121
|
+
return ArcAssay_fromRows(map(SparseRowModule_fromAllValues, collection));
|
|
122
|
+
} catch (err) {
|
|
123
|
+
const arg = err.message;
|
|
124
|
+
return toFail(printf("Failed while parsing metadatasheet: %s"))(arg);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
115
127
|
function ArcAssay_isMetadataSheetName(name) {
|
|
116
128
|
if (name === "isa_assay") {
|
|
117
129
|
return true;
|
|
@@ -138,7 +150,7 @@ function ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D(doc) {
|
|
|
138
150
|
const sheets = doc.GetWorksheets();
|
|
139
151
|
const annotationTables = choose(tryFromFsWorksheet, sheets);
|
|
140
152
|
const datamapSheet = tryPick(tryFromFsWorksheet$1, sheets);
|
|
141
|
-
if (!isEmpty(annotationTables)) {
|
|
153
|
+
if (!isEmpty$1(annotationTables)) {
|
|
142
154
|
assayMetadata.Tables = Array.from(annotationTables);
|
|
143
155
|
}
|
|
144
156
|
assayMetadata.DataMap = datamapSheet;
|
|
@@ -165,5 +177,8 @@ function ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(assay, datamapS
|
|
|
165
177
|
}, assay.Tables);
|
|
166
178
|
return doc;
|
|
167
179
|
}
|
|
180
|
+
function ARCtrl_ArcAssay__ArcAssay_ToFsWorkbook_6FCE9E49(this$, datamapSheet) {
|
|
181
|
+
return ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F(this$, unwrap(datamapSheet));
|
|
182
|
+
}
|
|
168
183
|
|
|
169
|
-
export { ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F, ArcAssay_fromMetadataSheet, ArcAssay_fromRows, ArcAssay_isMetadataSheet, ArcAssay_isMetadataSheetName, ArcAssay_toMetadataSheet, ArcAssay_toRows, ArcAssay_tryGetMetadataSheet };
|
|
184
|
+
export { ARCtrl_ArcAssay__ArcAssay_ToFsWorkbook_6FCE9E49, ARCtrl_ArcAssay__ArcAssay_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcAssay__ArcAssay_toFsWorkbook_Static_Z2508BE4F, ArcAssay_fromMetadataCollection, ArcAssay_fromMetadataSheet, ArcAssay_fromRows, ArcAssay_isMetadataSheet, ArcAssay_isMetadataSheetName, ArcAssay_toMetadataCollection, ArcAssay_toMetadataSheet, ArcAssay_toRows, ArcAssay_tryGetMetadataSheet };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { Record } from '../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
2
|
-
import {
|
|
3
|
-
import { Remark } from '../Core/Comment.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { ofArray, map, empty, cons, reverse, unzip, concat, append, ofSeq, isEmpty as isEmpty$1, tail, head } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
3
|
+
import { Comment$_$reflection, Remark } from '../Core/Comment.js';
|
|
4
|
+
import { stringHash, getEnumerator, comparePrimitives } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
5
|
+
import { record_type, string_type, list_type } from '../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
6
|
+
import { Comment_fromString, Comment_toString, Remark_wrapRemark } from './Metadata/Comment.js';
|
|
7
|
+
import { SparseTable__TryGetValueDefault_5BAE6133, SparseTable_Create_Z2192E64B, SparseTable, SparseTable_FromRows_Z5579EC29, SparseTable_ToRows_759CAFC1, SparseRowModule_tryGetValueAt, SparseRowModule_fromValues, SparseRowModule_getAllValues, SparseRowModule_fromAllValues, SparseRowModule_fromFsRow, SparseRowModule_writeToSheet } from './Metadata/SparseTable.js';
|
|
7
8
|
import { addToDict } from '../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { defaultArg, value } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
10
|
+
import { ResizeArray_iter, Option_fromValueWithDefault } from '../Core/Helper/Collections.js';
|
|
11
|
+
import { List_distinct, List_distinctBy } from '../../node_modules/@fable-org/fable-library-js/Seq2.js';
|
|
11
12
|
import { ArcInvestigation, ArcStudy } from '../Core/ArcTypes.js';
|
|
12
|
-
import {
|
|
13
|
+
import { isEmpty, delay, append as append$1, singleton, collect, toList, map as map$1, tryFind as tryFind$1, iterateIndexed } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
13
14
|
import { fromRows as fromRows$3, toRows } from './Metadata/OntologySourceReference.js';
|
|
14
15
|
import { fromRows as fromRows$2, toRows as toRows$1 } from './Metadata/Publication.js';
|
|
15
16
|
import { fromRows as fromRows$1, toRows as toRows$2 } from './Metadata/Contacts.js';
|
|
@@ -30,6 +31,9 @@ class ArcInvestigation_InvestigationInfo extends Record {
|
|
|
30
31
|
this.Comments = Comments;
|
|
31
32
|
}
|
|
32
33
|
}
|
|
34
|
+
function ArcInvestigation_InvestigationInfo_$reflection() {
|
|
35
|
+
return record_type("ARCtrl.Spreadsheet.ArcInvestigation.InvestigationInfo", [], ArcInvestigation_InvestigationInfo, () => [["Identifier", string_type], ["Title", string_type], ["Description", string_type], ["SubmissionDate", string_type], ["PublicReleaseDate", string_type], ["Comments", list_type(Comment$_$reflection())]]);
|
|
36
|
+
}
|
|
33
37
|
function ArcInvestigation_InvestigationInfo_create(identifier, title, description, submissionDate, publicReleaseDate, comments) {
|
|
34
38
|
return new ArcInvestigation_InvestigationInfo(identifier, title, description, submissionDate, publicReleaseDate, comments);
|
|
35
39
|
}
|
|
@@ -83,7 +87,7 @@ function ArcInvestigation_fromParts(investigationInfo, ontologySourceReference,
|
|
|
83
87
|
return ArcInvestigation.make(investigationInfo.Identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications_1, contacts_1, assays_1, studies_1, [], [], registeredStudyIdentifiers, comments, remarks_1);
|
|
84
88
|
}
|
|
85
89
|
function ArcInvestigation_fromRows(rows) {
|
|
86
|
-
if (isEmpty
|
|
90
|
+
if (isEmpty(rows)) {
|
|
87
91
|
throw new Error("isa_investigation sheet in Investigation file is empty");
|
|
88
92
|
}
|
|
89
93
|
const en = getEnumerator(rows);
|
|
@@ -92,32 +96,32 @@ function ArcInvestigation_fromRows(rows) {
|
|
|
92
96
|
loop:
|
|
93
97
|
while (true) {
|
|
94
98
|
const lastLine = lastLine_mut, ontologySourceReferences = ontologySourceReferences_mut, investigationInfo = investigationInfo_mut, publications = publications_mut, contacts = contacts_mut, studies = studies_mut, remarks = remarks_mut, lineNumber = lineNumber_mut;
|
|
95
|
-
let matchResult;
|
|
99
|
+
let matchResult, k_5, k_6, k_7, k_8, k_9;
|
|
96
100
|
if (lastLine != null) {
|
|
97
101
|
switch (value(lastLine)) {
|
|
98
102
|
case "ONTOLOGY SOURCE REFERENCE": {
|
|
99
103
|
matchResult = 0;
|
|
100
|
-
value(lastLine);
|
|
104
|
+
k_5 = value(lastLine);
|
|
101
105
|
break;
|
|
102
106
|
}
|
|
103
107
|
case "INVESTIGATION": {
|
|
104
108
|
matchResult = 1;
|
|
105
|
-
value(lastLine);
|
|
109
|
+
k_6 = value(lastLine);
|
|
106
110
|
break;
|
|
107
111
|
}
|
|
108
112
|
case "INVESTIGATION PUBLICATIONS": {
|
|
109
113
|
matchResult = 2;
|
|
110
|
-
value(lastLine);
|
|
114
|
+
k_7 = value(lastLine);
|
|
111
115
|
break;
|
|
112
116
|
}
|
|
113
117
|
case "INVESTIGATION CONTACTS": {
|
|
114
118
|
matchResult = 3;
|
|
115
|
-
value(lastLine);
|
|
119
|
+
k_8 = value(lastLine);
|
|
116
120
|
break;
|
|
117
121
|
}
|
|
118
122
|
case "STUDY": {
|
|
119
123
|
matchResult = 4;
|
|
120
|
-
value(lastLine);
|
|
124
|
+
k_9 = value(lastLine);
|
|
121
125
|
break;
|
|
122
126
|
}
|
|
123
127
|
default:
|
|
@@ -224,6 +228,7 @@ function ArcInvestigation_fromRows(rows) {
|
|
|
224
228
|
return ArcInvestigation_fromParts(investigationInfo, ontologySourceReferences, publications, contacts, patternInput_5[0], patternInput_5[1], remarks);
|
|
225
229
|
}
|
|
226
230
|
}
|
|
231
|
+
break;
|
|
227
232
|
}
|
|
228
233
|
};
|
|
229
234
|
let arcInvestigation;
|
|
@@ -250,7 +255,7 @@ function ArcInvestigation_toRows(investigation) {
|
|
|
250
255
|
const i = i_mut, l = l_mut, nl = nl_mut;
|
|
251
256
|
const matchValue = tryFind(i, rm);
|
|
252
257
|
if (matchValue == null) {
|
|
253
|
-
if (!isEmpty(l)) {
|
|
258
|
+
if (!isEmpty$1(l)) {
|
|
254
259
|
i_mut = i + 1;
|
|
255
260
|
l_mut = tail(l);
|
|
256
261
|
nl_mut = cons(head(l), nl);
|
|
@@ -274,6 +279,12 @@ function ArcInvestigation_toRows(investigation) {
|
|
|
274
279
|
}
|
|
275
280
|
})();
|
|
276
281
|
}
|
|
282
|
+
function ArcInvestigation_toMetadataCollection(investigation) {
|
|
283
|
+
return map$1(SparseRowModule_getAllValues, ArcInvestigation_toRows(investigation));
|
|
284
|
+
}
|
|
285
|
+
function ArcInvestigation_fromMetadataCollection(collection) {
|
|
286
|
+
return ArcInvestigation_fromRows(map$1(SparseRowModule_fromAllValues, collection));
|
|
287
|
+
}
|
|
277
288
|
function ArcInvestigation_isMetadataSheetName(name) {
|
|
278
289
|
if (name === "isa_investigation") {
|
|
279
290
|
return true;
|
|
@@ -312,5 +323,8 @@ function ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF
|
|
|
312
323
|
return toFail(printf("Could not write investigation to spreadsheet: %s"))(arg);
|
|
313
324
|
}
|
|
314
325
|
}
|
|
326
|
+
function ARCtrl_ArcInvestigation__ArcInvestigation_ToFsWorkbook(this$) {
|
|
327
|
+
return ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF(this$);
|
|
328
|
+
}
|
|
315
329
|
|
|
316
|
-
export { ARCtrl_ArcInvestigation__ArcInvestigation_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF, ArcInvestigation_InvestigationInfo, ArcInvestigation_InvestigationInfo_FromSparseTable_3ECCA699, ArcInvestigation_InvestigationInfo_ToSparseTable_Z720BD3FF, ArcInvestigation_InvestigationInfo_create, ArcInvestigation_InvestigationInfo_fromRows, ArcInvestigation_InvestigationInfo_get_Labels, ArcInvestigation_InvestigationInfo_toRows_Z720BD3FF, ArcInvestigation_fromParts, ArcInvestigation_fromRows, ArcInvestigation_isMetadataSheet, ArcInvestigation_isMetadataSheetName, ArcInvestigation_toRows, ArcInvestigation_tryGetMetadataSheet };
|
|
330
|
+
export { ARCtrl_ArcInvestigation__ArcInvestigation_ToFsWorkbook, ARCtrl_ArcInvestigation__ArcInvestigation_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcInvestigation__ArcInvestigation_toFsWorkbook_Static_Z720BD3FF, ArcInvestigation_InvestigationInfo, ArcInvestigation_InvestigationInfo_$reflection, ArcInvestigation_InvestigationInfo_FromSparseTable_3ECCA699, ArcInvestigation_InvestigationInfo_ToSparseTable_Z720BD3FF, ArcInvestigation_InvestigationInfo_create, ArcInvestigation_InvestigationInfo_fromRows, ArcInvestigation_InvestigationInfo_get_Labels, ArcInvestigation_InvestigationInfo_toRows_Z720BD3FF, ArcInvestigation_fromMetadataCollection, ArcInvestigation_fromParts, ArcInvestigation_fromRows, ArcInvestigation_isMetadataSheet, ArcInvestigation_isMetadataSheetName, ArcInvestigation_toMetadataCollection, ArcInvestigation_toRows, ArcInvestigation_tryGetMetadataSheet };
|
|
@@ -5,12 +5,12 @@ import { empty, ofSeq } from '../../node_modules/@fable-org/fable-library-js/Lis
|
|
|
5
5
|
import { ArcRun } from '../Core/ArcTypes.js';
|
|
6
6
|
import { fromRows, toRows as toRows$1 } from './Metadata/Contacts.js';
|
|
7
7
|
import { createMissingIdentifier } from '../Core/Helper/Identifier.js';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { SparseRowModule_tryGetValueAt, SparseRowModule_fromValues, SparseRowModule_writeToSheet, SparseRowModule_fromFsRow, SparseRowModule_getAllValues, SparseRowModule_fromAllValues } from './Metadata/SparseTable.js';
|
|
9
|
+
import { delay, append, singleton, iterateIndexed, map, tryFind, choose, tryPick, isEmpty } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
10
10
|
import { FsWorksheet } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js';
|
|
11
|
-
import {
|
|
11
|
+
import { toFail, printf, toConsole } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
12
12
|
import { FsWorkbook } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
|
|
13
|
-
import {
|
|
13
|
+
import { tryFromFsWorksheet, toFsWorksheet } from './AnnotationTable/ArcTable.js';
|
|
14
14
|
import { tryFromFsWorksheet as tryFromFsWorksheet$1 } from './DataMapTable/DataMapTable.js';
|
|
15
15
|
|
|
16
16
|
function ArcRun_fromRows(rows) {
|
|
@@ -19,17 +19,17 @@ function ArcRun_fromRows(rows) {
|
|
|
19
19
|
loop:
|
|
20
20
|
while (true) {
|
|
21
21
|
const lastRow = lastRow_mut, run = run_mut, performers = performers_mut, rowNumber = rowNumber_mut;
|
|
22
|
-
let matchResult;
|
|
22
|
+
let matchResult, prefix_2, prefix_3;
|
|
23
23
|
if (lastRow != null) {
|
|
24
24
|
switch (value(lastRow)) {
|
|
25
25
|
case "RUN": {
|
|
26
26
|
matchResult = 0;
|
|
27
|
-
value(lastRow);
|
|
27
|
+
prefix_2 = value(lastRow);
|
|
28
28
|
break;
|
|
29
29
|
}
|
|
30
30
|
case "RUN PERFORMERS": {
|
|
31
31
|
matchResult = 1;
|
|
32
|
-
value(lastRow);
|
|
32
|
+
prefix_3 = value(lastRow);
|
|
33
33
|
break;
|
|
34
34
|
}
|
|
35
35
|
default:
|
|
@@ -64,6 +64,7 @@ function ArcRun_fromRows(rows) {
|
|
|
64
64
|
return ArcRun.create(createMissingIdentifier(), void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, Array.from(performers));
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
+
break;
|
|
67
68
|
}
|
|
68
69
|
};
|
|
69
70
|
if (en["System.Collections.IEnumerator.MoveNext"]()) {
|
|
@@ -90,6 +91,17 @@ function ArcRun_fromMetadataSheet(sheet) {
|
|
|
90
91
|
return toFail(printf("Failed while parsing metadatasheet: %s"))(arg);
|
|
91
92
|
}
|
|
92
93
|
}
|
|
94
|
+
function ArcRun_toMetadataCollection(run) {
|
|
95
|
+
return map(SparseRowModule_getAllValues, ArcRun_toRows(run));
|
|
96
|
+
}
|
|
97
|
+
function ArcRun_fromMetadataCollection(collection) {
|
|
98
|
+
try {
|
|
99
|
+
return ArcRun_fromRows(map(SparseRowModule_fromAllValues, collection));
|
|
100
|
+
} catch (err) {
|
|
101
|
+
const arg = err.message;
|
|
102
|
+
return toFail(printf("Failed while parsing metadatasheet: %s"))(arg);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
93
105
|
function ArcRun_isMetadataSheetName(name) {
|
|
94
106
|
return name === "isa_run";
|
|
95
107
|
}
|
|
@@ -132,5 +144,8 @@ function ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8(run) {
|
|
|
132
144
|
}, run.Tables);
|
|
133
145
|
return doc;
|
|
134
146
|
}
|
|
147
|
+
function ARCtrl_ArcRun__ArcRun_ToFsWorkbook(this$) {
|
|
148
|
+
return ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8(this$);
|
|
149
|
+
}
|
|
135
150
|
|
|
136
|
-
export { ARCtrl_ArcRun__ArcRun_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8, ArcRun_fromMetadataSheet, ArcRun_fromRows, ArcRun_isMetadataSheet, ArcRun_isMetadataSheetName, ArcRun_toMetadataSheet, ArcRun_toRows, ArcRun_tryGetMetadataSheet };
|
|
151
|
+
export { ARCtrl_ArcRun__ArcRun_ToFsWorkbook, ARCtrl_ArcRun__ArcRun_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcRun__ArcRun_toFsWorkbook_Static_Z3EFAF6F8, ArcRun_fromMetadataCollection, ArcRun_fromMetadataSheet, ArcRun_fromRows, ArcRun_isMetadataSheet, ArcRun_isMetadataSheetName, ArcRun_toMetadataCollection, ArcRun_toMetadataSheet, ArcRun_toRows, ArcRun_tryGetMetadataSheet };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { FsWorksheet } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorksheet.fs.js';
|
|
2
|
-
import {
|
|
3
|
-
import { SparseRowModule_writeToSheet, SparseRowModule_fromFsRow,
|
|
2
|
+
import { iterateIndexed, append, map, tryFind, tryPick, iterate } from '../../node_modules/@fable-org/fable-library-js/Seq.js';
|
|
3
|
+
import { SparseRowModule_writeToSheet, SparseRowModule_fromValues, SparseRowModule_fromFsRow, SparseRowModule_getAllValues, SparseRowModule_fromAllValues } from './Metadata/SparseTable.js';
|
|
4
4
|
import { toRows, fromRows } from './Metadata/Study.js';
|
|
5
5
|
import { ArcStudy } from '../Core/ArcTypes.js';
|
|
6
|
-
import { defaultArg, toArray,
|
|
6
|
+
import { defaultArg, value, toArray, unwrap } from '../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
7
7
|
import { empty } from '../../node_modules/@fable-org/fable-library-js/List.js';
|
|
8
8
|
import { getEnumerator } from '../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
9
|
-
import {
|
|
9
|
+
import { toFail, printf, toConsole } from '../../node_modules/@fable-org/fable-library-js/String.js';
|
|
10
10
|
import { createMissingIdentifier } from '../Core/Helper/Identifier.js';
|
|
11
11
|
import { FsWorkbook } from '../fable_modules/FsSpreadsheet.7.0.0-alpha.1/FsWorkbook.fs.js';
|
|
12
12
|
import { ResizeArray_choose, ResizeArray_isEmpty } from '../Core/Helper/Collections.js';
|
|
13
|
-
import { toFsWorksheet as toFsWorksheet$1
|
|
14
|
-
import {
|
|
13
|
+
import { tryFromFsWorksheet, toFsWorksheet as toFsWorksheet$1 } from './AnnotationTable/ArcTable.js';
|
|
14
|
+
import { tryFromFsWorksheet as tryFromFsWorksheet$1, toFsWorksheet } from './DataMapTable/DataMapTable.js';
|
|
15
15
|
|
|
16
16
|
function ArcStudy_toMetadataSheet(study, assays) {
|
|
17
17
|
let source_1;
|
|
@@ -34,6 +34,18 @@ function ArcStudy_fromMetadataSheet(sheet) {
|
|
|
34
34
|
return toFail(printf("Failed while parsing metadatasheet: %s"))(arg);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
+
function ArcStudy_toMetadataCollection(study, assays) {
|
|
38
|
+
let source_1;
|
|
39
|
+
return map(SparseRowModule_getAllValues, (source_1 = toRows(study, assays), append([SparseRowModule_fromValues(["STUDY"])], source_1)));
|
|
40
|
+
}
|
|
41
|
+
function ArcStudy_fromMetadataCollection(collection) {
|
|
42
|
+
try {
|
|
43
|
+
return defaultArg(ArcStudy_fromRows(map(SparseRowModule_fromAllValues, collection)), [ArcStudy.create(createMissingIdentifier()), empty()]);
|
|
44
|
+
} catch (err) {
|
|
45
|
+
const arg = err.message;
|
|
46
|
+
return toFail(printf("Failed while parsing metadatasheet: %s"))(arg);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
37
49
|
function ArcStudy_isMetadataSheetName(name) {
|
|
38
50
|
if (name === "isa_study") {
|
|
39
51
|
return true;
|
|
@@ -88,5 +100,8 @@ function ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(study, assays,
|
|
|
88
100
|
}, study.Tables);
|
|
89
101
|
return doc;
|
|
90
102
|
}
|
|
103
|
+
function ARCtrl_ArcStudy__ArcStudy_ToFsWorkbook_257FC1F0(this$, assays, datamapSheet) {
|
|
104
|
+
return ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522(this$, unwrap(assays), unwrap(datamapSheet));
|
|
105
|
+
}
|
|
91
106
|
|
|
92
|
-
export { ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522, ArcStudy_fromMetadataSheet, ArcStudy_fromRows, ArcStudy_isMetadataSheet, ArcStudy_isMetadataSheetName, ArcStudy_toMetadataSheet, ArcStudy_tryGetMetadataSheet };
|
|
107
|
+
export { ARCtrl_ArcStudy__ArcStudy_ToFsWorkbook_257FC1F0, ARCtrl_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D, ARCtrl_ArcStudy__ArcStudy_toFsWorkbook_Static_Z4CEFA522, ArcStudy_fromMetadataCollection, ArcStudy_fromMetadataSheet, ArcStudy_fromRows, ArcStudy_isMetadataSheet, ArcStudy_isMetadataSheetName, ArcStudy_toMetadataCollection, ArcStudy_toMetadataSheet, ArcStudy_tryGetMetadataSheet };
|