@nfdi4plants/arctrl 1.0.0-alpha9 → 1.0.0-beta.2
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/ARC.js +28 -29
- package/Contract/Contract.js +3 -3
- package/Contracts/Contracts.ArcAssay.js +3 -3
- package/Contracts/Contracts.ArcInvestigation.js +3 -3
- package/Contracts/Contracts.ArcStudy.js +3 -3
- package/Contracts/Contracts.Git.js +4 -4
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +15 -15
- package/FileSystem/Path.js +2 -2
- package/FileSystemTree.js +1 -1
- package/ISA/ISA/ArcTypes/ArcTable.js +20 -20
- package/ISA/ISA/ArcTypes/ArcTableAux.js +17 -17
- package/ISA/ISA/ArcTypes/ArcTables.js +283 -279
- package/ISA/ISA/ArcTypes/ArcTypes.js +89 -373
- package/ISA/ISA/ArcTypes/CompositeCell.js +4 -4
- package/ISA/ISA/ArcTypes/CompositeColumn.js +4 -4
- package/ISA/ISA/ArcTypes/CompositeHeader.js +5 -5
- package/ISA/ISA/ArcTypes/CompositeRow.js +1 -1
- package/ISA/ISA/Builder/Types.js +5 -5
- package/ISA/ISA/Fable.js +5 -5
- package/ISA/ISA/Helper.js +9 -9
- package/ISA/ISA/Identifier.js +2 -2
- package/ISA/ISA/JsonTypes/AnnotationValue.js +5 -5
- package/ISA/ISA/JsonTypes/Assay.js +26 -26
- package/ISA/ISA/JsonTypes/AssayMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/ColumnIndex.js +23 -23
- package/ISA/ISA/JsonTypes/Comment.js +3 -3
- package/ISA/ISA/JsonTypes/CommentList.js +4 -4
- package/ISA/ISA/JsonTypes/Component.js +12 -12
- package/ISA/ISA/JsonTypes/Data.js +4 -4
- package/ISA/ISA/JsonTypes/DataFile.js +2 -2
- package/ISA/ISA/JsonTypes/Factor.js +12 -12
- package/ISA/ISA/JsonTypes/FactorValue.js +5 -5
- package/ISA/ISA/JsonTypes/Investigation.js +6 -6
- package/ISA/ISA/JsonTypes/Material.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +4 -4
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +5 -5
- package/ISA/ISA/JsonTypes/MaterialType.js +2 -2
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +10 -10
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +8 -8
- package/ISA/ISA/JsonTypes/Person.js +9 -9
- package/ISA/ISA/JsonTypes/Process.js +11 -11
- package/ISA/ISA/JsonTypes/ProcessInput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessOutput.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +5 -5
- package/ISA/ISA/JsonTypes/ProcessSequence.js +14 -14
- package/ISA/ISA/JsonTypes/Protocol.js +6 -6
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +4 -4
- package/ISA/ISA/JsonTypes/Publication.js +8 -8
- package/ISA/ISA/JsonTypes/Sample.js +5 -5
- package/ISA/ISA/JsonTypes/Source.js +5 -5
- package/ISA/ISA/JsonTypes/Study.js +58 -58
- package/ISA/ISA/JsonTypes/StudyMaterials.js +4 -4
- package/ISA/ISA/JsonTypes/Value.js +7 -7
- package/ISA/ISA/Regex.js +3 -3
- package/ISA/ISA.Json/Assay.js +5 -5
- package/ISA/ISA.Json/Comment.js +5 -5
- package/ISA/ISA.Json/ConverterOptions.js +1 -1
- package/ISA/ISA.Json/Data.js +5 -5
- package/ISA/ISA.Json/Decode.js +4 -4
- package/ISA/ISA.Json/Factor.js +5 -5
- package/ISA/ISA.Json/GEncode.js +3 -3
- package/ISA/ISA.Json/Investigation.js +6 -6
- package/ISA/ISA.Json/Material.js +5 -5
- package/ISA/ISA.Json/Ontology.js +6 -6
- package/ISA/ISA.Json/Person.js +10 -10
- package/ISA/ISA.Json/Process.js +5 -5
- package/ISA/ISA.Json/Protocol.js +6 -6
- package/ISA/ISA.Json/Publication.js +4 -4
- package/ISA/ISA.Json/Study.js +6 -6
- package/ISA/ISA.Json/Validation/Fable.js +6 -6
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +1 -1
- package/ISA/ISA.Json/Validation/ValidationResult.js +2 -2
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +19 -17
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +4 -4
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +9 -9
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +14 -14
- package/ISA/ISA.Spreadsheet/ArcAssay.js +17 -20
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +37 -37
- package/ISA/ISA.Spreadsheet/ArcStudy.js +13 -13
- package/ISA/ISA.Spreadsheet/CollectionAux.js +7 -7
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +10 -10
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +6 -6
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +11 -11
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +7 -7
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +1 -1
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +8 -8
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +7 -7
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +5 -5
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +9 -9
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +23 -23
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +22 -22
- package/README.md +29 -253
- package/SemVer.js +7 -7
- package/Templates/Template.Json.js +12 -9
- package/Templates/Template.Spreadsheet.js +39 -23
- package/Templates/Template.Web.js +4 -4
- package/Templates/Template.js +7 -7
- package/Templates/Templates.js +5 -5
- package/WebRequest/WebRequest.js +4 -4
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +8 -8
- package/fable_modules/{Fable.Promise.3.2.0 → Fable.Promise.2.2.2}/Fable.Promise.fableproj +3 -4
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs +176 -0
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +143 -0
- package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs +4 -0
- package/fable_modules/Fable.Promise.2.2.2/PromiseImpl.fs.js +4 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +8 -8
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Cells/FsCell.fs +85 -36
- package/fable_modules/FsSpreadsheet.5.0.1/Cells/FsCell.fs.js +272 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Cells/FsCellsCollection.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/CellBuilder.fs +1 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/CellBuilder.fs.js +21 -21
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/DSL.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Expression.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Transform.fs +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Transform.fs.js +9 -8
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Types.fs +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Types.fs.js +7 -7
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsAddress.fs.js +9 -9
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsColumn.fs +3 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsRow.fs +2 -0
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsRow.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorkbook.fs.js +8 -8
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorksheet.fs +10 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorksheet.fs.js +24 -19
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeAddress.fs.js +2 -2
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/SheetBuilder.fs +4 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/SheetBuilder.fs.js +10 -10
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTable.fs +20 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTable.fs.js +33 -13
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +3 -3
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +26 -26
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +13 -13
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +2 -2
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +6 -6
- package/fable_modules/fable-library.4.4.1/CHANGELOG.md +11 -0
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Decimal.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Double.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Int32.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Long.js +1 -1
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/README.md +2 -2
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Set.js +64 -64
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Util.d.ts +20 -0
- package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Util.js +120 -0
- package/fable_modules/fable-library.4.4.1/lib/big.d.ts +5 -0
- package/fable_modules/project_cracked.json +1 -1
- package/package.json +1 -1
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +0 -57
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +0 -104
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs +0 -766
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +0 -217
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +0 -31
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +0 -19
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +0 -240
- package/fable_modules/fable-library.4.1.4/lib/big.d.ts +0 -338
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Cells/FsCellsCollection.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/ColumnBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/DSL.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Expression.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Operators.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/Operators.fs.js +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/RowBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/SheetBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/TableBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/DSL/WorkbookBuilder.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsSpreadsheet.fableproj +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/FsWorkbook.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRange.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeAddress.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeBase.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeColumn.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Ranges/FsRangeRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableField.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/Tables/FsTableRow.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +0 -0
- /package/fable_modules/{FsSpreadsheet.4.1.0 → FsSpreadsheet.5.0.1}/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Array.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Async.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BigInt.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Boolean.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Char.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Choice.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Date.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Encoding.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Event.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Global.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Guid.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/List.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/List.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Map.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MapUtil.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MapUtil.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableMap.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/MutableSet.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Native.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Numeric.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Observable.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Option.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Random.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Range.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Reflection.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/RegExp.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Seq2.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/String.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/String.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/System.Text.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/SystemException.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Timer.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Types.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/Uri.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/lib/big.js +0 -0
- /package/fable_modules/{fable-library.4.1.4 → fable-library.4.4.1}/package.json +0 -0
package/ISA/ISA.Json/Protocol.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { value as value_19 } from "../../fable_modules/fable-library.4.1
|
|
1
|
+
import { value as value_19 } from "../../fable_modules/fable-library.4.4.1/Option.js";
|
|
2
2
|
import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
|
|
3
3
|
import { toString, nil, object as object_18 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
|
|
4
|
-
import { choose } from "../../fable_modules/fable-library.4.1
|
|
5
|
-
import { uncurry2, equals } from "../../fable_modules/fable-library.4.1
|
|
6
|
-
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.1
|
|
4
|
+
import { choose } from "../../fable_modules/fable-library.4.4.1/List.js";
|
|
5
|
+
import { uncurry2, equals } from "../../fable_modules/fable-library.4.4.1/Util.js";
|
|
6
|
+
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.4.1/Seq.js";
|
|
7
7
|
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
8
8
|
import { tryInclude } from "./GEncode.js";
|
|
9
9
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
|
|
10
10
|
import { list as list_1, string, object as object_19 } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
|
|
11
11
|
import { fromJsonString, uri } from "./Decode.js";
|
|
12
12
|
import { ProtocolParameter } from "../ISA/JsonTypes/ProtocolParameter.js";
|
|
13
|
-
import { replace } from "../../fable_modules/fable-library.4.1
|
|
14
|
-
import { Result_Map } from "../../fable_modules/fable-library.4.1
|
|
13
|
+
import { replace } from "../../fable_modules/fable-library.4.4.1/String.js";
|
|
14
|
+
import { Result_Map } from "../../fable_modules/fable-library.4.4.1/Choice.js";
|
|
15
15
|
import { Component, Component_decomposeName_Z721C83C5 } from "../ISA/JsonTypes/Component.js";
|
|
16
16
|
import { decoder as decoder_3, encoder } from "./Comment.js";
|
|
17
17
|
import { Protocol } from "../ISA/JsonTypes/Protocol.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { replace } from "../../fable_modules/fable-library.4.1
|
|
1
|
+
import { replace } from "../../fable_modules/fable-library.4.4.1/String.js";
|
|
2
2
|
import { toString, nil, object as object_12 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
|
|
3
|
-
import { choose } from "../../fable_modules/fable-library.4.1
|
|
4
|
-
import { uncurry2, equals } from "../../fable_modules/fable-library.4.1
|
|
5
|
-
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.1
|
|
3
|
+
import { choose } from "../../fable_modules/fable-library.4.4.1/List.js";
|
|
4
|
+
import { uncurry2, equals } from "../../fable_modules/fable-library.4.4.1/Util.js";
|
|
5
|
+
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.4.1/Seq.js";
|
|
6
6
|
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
7
7
|
import { tryInclude } from "./GEncode.js";
|
|
8
8
|
import { OntologyAnnotation_decoder, OntologyAnnotation_encoder } from "./Ontology.js";
|
package/ISA/ISA.Json/Study.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { toString, nil, object as object_36 } from "../../fable_modules/Thoth.Json.10.1.0/Encode.fs.js";
|
|
2
|
-
import { ofArray, choose } from "../../fable_modules/fable-library.4.1
|
|
3
|
-
import { uncurry2, equals } from "../../fable_modules/fable-library.4.1
|
|
2
|
+
import { ofArray, choose } from "../../fable_modules/fable-library.4.4.1/List.js";
|
|
3
|
+
import { uncurry2, equals } from "../../fable_modules/fable-library.4.4.1/Util.js";
|
|
4
4
|
import { tryInclude } from "./GEncode.js";
|
|
5
5
|
import { Sample_decoder, Source_decoder, Sample_encoder, Source_encoder } from "./Data.js";
|
|
6
6
|
import { MaterialAttribute_decoder, MaterialAttribute_encoder, Material_decoder, Material_encoder } from "./Material.js";
|
|
7
7
|
import { string, list as list_1, object as object_37 } from "../../fable_modules/Thoth.Json.10.1.0/Decode.fs.js";
|
|
8
8
|
import { StudyMaterials } from "../ISA/JsonTypes/StudyMaterials.js";
|
|
9
|
-
import { replace } from "../../fable_modules/fable-library.4.1
|
|
9
|
+
import { replace } from "../../fable_modules/fable-library.4.4.1/String.js";
|
|
10
10
|
import { URIModule_toString } from "../ISA/JsonTypes/URI.js";
|
|
11
|
-
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.1
|
|
11
|
+
import { empty, singleton, append, delay, toList } from "../../fable_modules/fable-library.4.4.1/Seq.js";
|
|
12
12
|
import { ConverterOptions__set_IncludeType_Z1FBCCD16, ConverterOptions__set_SetID_Z1FBCCD16, ConverterOptions_$ctor, ConverterOptions__get_IncludeType, ConverterOptions__get_SetID } from "./ConverterOptions.js";
|
|
13
13
|
import { decoder as decoder_10, encoder } from "./Publication.js";
|
|
14
14
|
import { decoder as decoder_11, encoder as encoder_1 } from "./Person.js";
|
|
@@ -212,8 +212,8 @@ export function Study_toStringLD(s) {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
export function ArcStudy_fromJsonString(s) {
|
|
215
|
-
const
|
|
216
|
-
return ArcStudy.fromStudy(
|
|
215
|
+
const s_1 = fromJsonString(uncurry2(Study_decoder(ConverterOptions_$ctor())), s);
|
|
216
|
+
return ArcStudy.fromStudy(s_1);
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
export function ArcStudy_toJsonString(a, assays) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Record } from "../../../fable_modules/fable-library.4.1
|
|
2
|
-
import { bool_type, option_type, array_type, record_type, string_type, obj_type } from "../../../fable_modules/fable-library.4.1
|
|
3
|
-
import { map } from "../../../fable_modules/fable-library.4.1
|
|
4
|
-
import { singleton } from "../../../fable_modules/fable-library.4.1
|
|
5
|
-
import { awaitPromise } from "../../../fable_modules/fable-library.4.1
|
|
1
|
+
import { Record } from "../../../fable_modules/fable-library.4.4.1/Types.js";
|
|
2
|
+
import { bool_type, option_type, array_type, record_type, string_type, obj_type } from "../../../fable_modules/fable-library.4.4.1/Reflection.js";
|
|
3
|
+
import { map } from "../../../fable_modules/fable-library.4.4.1/Array.js";
|
|
4
|
+
import { singleton } from "../../../fable_modules/fable-library.4.4.1/AsyncBuilder.js";
|
|
5
|
+
import { awaitPromise } from "../../../fable_modules/fable-library.4.4.1/Async.js";
|
|
6
6
|
import * as JsonValidation from "../../../../../src/ISA/ISA.Json/Validation/JsonValidation.js";
|
|
7
|
-
import { value } from "../../../fable_modules/fable-library.4.1
|
|
7
|
+
import { value } from "../../../fable_modules/fable-library.4.4.1/Option.js";
|
|
8
8
|
|
|
9
9
|
export class ValidationError extends Record {
|
|
10
10
|
constructor(path, property, message, schema, instance, name, argument, stack) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { singleton } from "../../../fable_modules/fable-library.4.1
|
|
1
|
+
import { singleton } from "../../../fable_modules/fable-library.4.4.1/AsyncBuilder.js";
|
|
2
2
|
import { validate } from "./Fable.js";
|
|
3
3
|
import { ValidationResult, ValidationResult_OfJSchemaOutput_Z6EC48F6B } from "./ValidationResult.js";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Union } from "../../../fable_modules/fable-library.4.1
|
|
2
|
-
import { union_type, array_type, string_type } from "../../../fable_modules/fable-library.4.1
|
|
1
|
+
import { Union } from "../../../fable_modules/fable-library.4.4.1/Types.js";
|
|
2
|
+
import { union_type, array_type, string_type } from "../../../fable_modules/fable-library.4.4.1/Reflection.js";
|
|
3
3
|
|
|
4
4
|
export class ValidationResult extends Union {
|
|
5
5
|
constructor(tag, fields) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { iterateIndexed, length, ofArray, sortBy, collect, toArray, empty, tail, head, isEmpty, cons, singleton, fold, map, reverse } from "../../../fable_modules/fable-library.4.1
|
|
1
|
+
import { iterateIndexed, length, ofArray, sortBy, collect, toArray, empty, tail, head, isEmpty, cons, singleton, fold, map, reverse } from "../../../fable_modules/fable-library.4.4.1/List.js";
|
|
2
2
|
import { tryParseReferenceColumnHeader } from "../../ISA/Regex.js";
|
|
3
|
-
import { map as map_1, toList, tryFind } from "../../../fable_modules/fable-library.4.1
|
|
3
|
+
import { map as map_1, toList, tryFind } from "../../../fable_modules/fable-library.4.4.1/Seq.js";
|
|
4
4
|
import { toFsColumns, fixDeprecatedIOHeader, fromFsColumns } from "./CompositeColumn.js";
|
|
5
5
|
import { ArcTable } from "../../ISA/ArcTypes/ArcTable.js";
|
|
6
|
-
import { FsWorksheet } from "../../../fable_modules/FsSpreadsheet.
|
|
7
|
-
import { comparePrimitives } from "../../../fable_modules/fable-library.4.1
|
|
8
|
-
import { FsRangeAddress_$ctor_7E77A4A0 } from "../../../fable_modules/FsSpreadsheet.
|
|
9
|
-
import { FsAddress_$ctor_Z37302880 } from "../../../fable_modules/FsSpreadsheet.
|
|
10
|
-
import { Dictionary_tryGet } from "../../../fable_modules/FsSpreadsheet.
|
|
11
|
-
import { addToDict } from "../../../fable_modules/fable-library.4.1
|
|
12
|
-
import { FsRangeBase__Cell_Z3407A44B } from "../../../fable_modules/FsSpreadsheet.
|
|
6
|
+
import { FsWorksheet } from "../../../fable_modules/FsSpreadsheet.5.0.1/FsWorksheet.fs.js";
|
|
7
|
+
import { comparePrimitives } from "../../../fable_modules/fable-library.4.4.1/Util.js";
|
|
8
|
+
import { FsRangeAddress_$ctor_7E77A4A0 } from "../../../fable_modules/FsSpreadsheet.5.0.1/Ranges/FsRangeAddress.fs.js";
|
|
9
|
+
import { FsAddress_$ctor_Z37302880 } from "../../../fable_modules/FsSpreadsheet.5.0.1/FsAddress.fs.js";
|
|
10
|
+
import { Dictionary_tryGet } from "../../../fable_modules/FsSpreadsheet.5.0.1/Cells/FsCellsCollection.fs.js";
|
|
11
|
+
import { addToDict } from "../../../fable_modules/fable-library.4.4.1/MapUtil.js";
|
|
12
|
+
import { FsRangeBase__Cell_Z3407A44B } from "../../../fable_modules/FsSpreadsheet.5.0.1/Ranges/FsRangeBase.fs.js";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Iterates over elements of the input list and groups adjacent elements.
|
|
@@ -63,8 +63,9 @@ export function classifyColumnOrder(column) {
|
|
|
63
63
|
|
|
64
64
|
export function groupColumnsByHeader(columns) {
|
|
65
65
|
return Aux_List_groupWhen((c) => {
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
const v = c.Item(1).ValueAsString();
|
|
67
|
+
if (tryParseReferenceColumnHeader(v) == null) {
|
|
68
|
+
return !(v.indexOf("Unit") === 0);
|
|
68
69
|
}
|
|
69
70
|
else {
|
|
70
71
|
return false;
|
|
@@ -113,20 +114,21 @@ export function toFsWorksheet(table) {
|
|
|
113
114
|
iterateIndexed((colI, col) => {
|
|
114
115
|
iterateIndexed((rowI, cell) => {
|
|
115
116
|
let value;
|
|
117
|
+
const v = cell.ValueAsString();
|
|
116
118
|
if (rowI === 0) {
|
|
117
|
-
const matchValue = Dictionary_tryGet(
|
|
119
|
+
const matchValue = Dictionary_tryGet(v, stringCount);
|
|
118
120
|
if (matchValue == null) {
|
|
119
|
-
addToDict(stringCount, cell.
|
|
120
|
-
value =
|
|
121
|
+
addToDict(stringCount, cell.ValueAsString(), "");
|
|
122
|
+
value = v;
|
|
121
123
|
}
|
|
122
124
|
else {
|
|
123
125
|
const spaces = matchValue;
|
|
124
|
-
stringCount.set(
|
|
125
|
-
value = ((
|
|
126
|
+
stringCount.set(v, spaces + " ");
|
|
127
|
+
value = ((v + " ") + spaces);
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
else {
|
|
129
|
-
value =
|
|
131
|
+
value = v;
|
|
130
132
|
}
|
|
131
133
|
const address = FsAddress_$ctor_Z37302880(rowI + 1, colI + 1);
|
|
132
134
|
FsRangeBase__Cell_Z3407A44B(fsTable, address, ws.CellCollection).SetValueAs(value);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { singleton, ofArray, head, tail, isEmpty, map } from "../../../fable_modules/fable-library.4.1
|
|
1
|
+
import { singleton, ofArray, head, tail, isEmpty, map } from "../../../fable_modules/fable-library.4.4.1/List.js";
|
|
2
2
|
import { CompositeCell } from "../../ISA/ArcTypes/CompositeCell.js";
|
|
3
|
-
import { printf, toFail } from "../../../fable_modules/fable-library.4.1
|
|
4
|
-
import { FsCell } from "../../../fable_modules/FsSpreadsheet.
|
|
3
|
+
import { printf, toFail } from "../../../fable_modules/fable-library.4.4.1/String.js";
|
|
4
|
+
import { FsCell } from "../../../fable_modules/FsSpreadsheet.5.0.1/Cells/FsCell.fs.js";
|
|
5
5
|
|
|
6
6
|
export function fromFsCells(cells) {
|
|
7
|
-
const cellValues = map((c) => c.
|
|
7
|
+
const cellValues = map((c) => c.ValueAsString(), cells);
|
|
8
8
|
let matchResult, v, v1, v2, v3, v1_1, v2_1, v3_1, v4;
|
|
9
9
|
if (!isEmpty(cellValues)) {
|
|
10
10
|
if (!isEmpty(tail(cellValues))) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { CompositeHeader, IOType } from "../../ISA/ArcTypes/CompositeHeader.js";
|
|
2
|
-
import { toString } from "../../../fable_modules/fable-library.4.1
|
|
2
|
+
import { toString } from "../../../fable_modules/fable-library.4.4.1/Types.js";
|
|
3
3
|
import { toFsCells, fromFsCells } from "./CompositeHeader.js";
|
|
4
|
-
import { singleton as singleton_1, ofArray, item, map } from "../../../fable_modules/fable-library.4.1
|
|
5
|
-
import { FsAddress__get_RowNumber } from "../../../fable_modules/FsSpreadsheet.
|
|
6
|
-
import { FsRangeAddress__get_LastAddress } from "../../../fable_modules/FsSpreadsheet.
|
|
7
|
-
import { FsRangeBase__get_RangeAddress } from "../../../fable_modules/FsSpreadsheet.
|
|
8
|
-
import { singleton, append, toList, exists, map as map_1, delay, toArray } from "../../../fable_modules/fable-library.4.1
|
|
4
|
+
import { singleton as singleton_1, ofArray, item, map } from "../../../fable_modules/fable-library.4.4.1/List.js";
|
|
5
|
+
import { FsAddress__get_RowNumber } from "../../../fable_modules/FsSpreadsheet.5.0.1/FsAddress.fs.js";
|
|
6
|
+
import { FsRangeAddress__get_LastAddress } from "../../../fable_modules/FsSpreadsheet.5.0.1/Ranges/FsRangeAddress.fs.js";
|
|
7
|
+
import { FsRangeBase__get_RangeAddress } from "../../../fable_modules/FsSpreadsheet.5.0.1/Ranges/FsRangeBase.fs.js";
|
|
8
|
+
import { singleton, append, toList, exists, map as map_1, delay, toArray } from "../../../fable_modules/fable-library.4.4.1/Seq.js";
|
|
9
9
|
import { toFsCells as toFsCells_1, fromFsCells as fromFsCells_1 } from "./CompositeCell.js";
|
|
10
|
-
import { rangeDouble } from "../../../fable_modules/fable-library.4.1
|
|
10
|
+
import { rangeDouble } from "../../../fable_modules/fable-library.4.4.1/Range.js";
|
|
11
11
|
import { CompositeColumn } from "../../ISA/ArcTypes/CompositeColumn.js";
|
|
12
|
-
import { map as map_2 } from "../../../fable_modules/fable-library.4.1
|
|
12
|
+
import { map as map_2 } from "../../../fable_modules/fable-library.4.4.1/Array.js";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Checks if the column header is a deprecated IO Header. If so, fixes it.
|
|
@@ -19,7 +19,7 @@ import { map as map_2 } from "../../../fable_modules/fable-library.4.1.4/Array.j
|
|
|
19
19
|
* A "Source Name" column will now be mapped to the propper "Input [Source Name]", and all other IO types will be mapped to "Output [<IO Type>]".
|
|
20
20
|
*/
|
|
21
21
|
export function fixDeprecatedIOHeader(col) {
|
|
22
|
-
const matchValue = IOType.ofString(col.Item(1).
|
|
22
|
+
const matchValue = IOType.ofString(col.Item(1).ValueAsString());
|
|
23
23
|
switch (matchValue.tag) {
|
|
24
24
|
case 6:
|
|
25
25
|
return col;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { printf, toFail } from "../../../fable_modules/fable-library.4.1
|
|
2
|
-
import { singleton, tail, head, isEmpty, map } from "../../../fable_modules/fable-library.4.1
|
|
1
|
+
import { printf, toFail } from "../../../fable_modules/fable-library.4.4.1/String.js";
|
|
2
|
+
import { singleton, tail, head, isEmpty, map } from "../../../fable_modules/fable-library.4.4.1/List.js";
|
|
3
3
|
import { OntologyAnnotation } from "../../ISA/JsonTypes/OntologyAnnotation.js";
|
|
4
4
|
import { ActivePatterns_$007COutputColumnHeader$007C_$007C, ActivePatterns_$007CInputColumnHeader$007C_$007C, tryParseComponentColumnHeader, tryParseCharacteristicColumnHeader, tryParseFactorColumnHeader, tryParseParameterColumnHeader, ActivePatterns_$007CUnitColumnHeader$007C_$007C, ActivePatterns_$007CTANColumnHeader$007C_$007C, ActivePatterns_$007CTSRColumnHeader$007C_$007C } from "../../ISA/Regex.js";
|
|
5
5
|
import { IOType, CompositeHeader } from "../../ISA/ArcTypes/CompositeHeader.js";
|
|
6
|
-
import { FsCell } from "../../../fable_modules/FsSpreadsheet.
|
|
7
|
-
import { toString } from "../../../fable_modules/fable-library.4.1
|
|
8
|
-
import { empty, singleton as singleton_1, append, delay, toList } from "../../../fable_modules/fable-library.4.1
|
|
6
|
+
import { FsCell } from "../../../fable_modules/FsSpreadsheet.5.0.1/Cells/FsCell.fs.js";
|
|
7
|
+
import { toString } from "../../../fable_modules/fable-library.4.4.1/Types.js";
|
|
8
|
+
import { empty, singleton as singleton_1, append, delay, toList } from "../../../fable_modules/fable-library.4.4.1/Seq.js";
|
|
9
9
|
|
|
10
10
|
export function ActivePattern_mergeIDInfo(idSpace1, localID1, idSpace2, localID2) {
|
|
11
11
|
if (idSpace1 !== idSpace2) {
|
|
@@ -22,7 +22,7 @@ export function ActivePattern_mergeIDInfo(idSpace1, localID1, idSpace2, localID2
|
|
|
22
22
|
|
|
23
23
|
export function ActivePattern_$007CTerm$007C_$007C(categoryParser, f, cells) {
|
|
24
24
|
const $007CAC$007C_$007C = categoryParser;
|
|
25
|
-
const cellValues = map((c) => c.
|
|
25
|
+
const cellValues = map((c) => c.ValueAsString(), cells);
|
|
26
26
|
let matchResult, name;
|
|
27
27
|
if (!isEmpty(cellValues)) {
|
|
28
28
|
const activePatternResult = $007CAC$007C_$007C(head(cellValues));
|
|
@@ -190,7 +190,7 @@ export function ActivePattern_$007CTerm$007C_$007C(categoryParser, f, cells) {
|
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
export function ActivePattern_$007CParameter$007C_$007C(cells) {
|
|
193
|
-
const activePatternResult = ActivePattern_$007CTerm$007C_$007C(tryParseParameterColumnHeader, (
|
|
193
|
+
const activePatternResult = ActivePattern_$007CTerm$007C_$007C(tryParseParameterColumnHeader, (Item) => (new CompositeHeader(3, [Item])), cells);
|
|
194
194
|
if (activePatternResult != null) {
|
|
195
195
|
const r = activePatternResult;
|
|
196
196
|
return r;
|
|
@@ -201,7 +201,7 @@ export function ActivePattern_$007CParameter$007C_$007C(cells) {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
export function ActivePattern_$007CFactor$007C_$007C(cells) {
|
|
204
|
-
const activePatternResult = ActivePattern_$007CTerm$007C_$007C(tryParseFactorColumnHeader, (
|
|
204
|
+
const activePatternResult = ActivePattern_$007CTerm$007C_$007C(tryParseFactorColumnHeader, (Item) => (new CompositeHeader(2, [Item])), cells);
|
|
205
205
|
if (activePatternResult != null) {
|
|
206
206
|
const r = activePatternResult;
|
|
207
207
|
return r;
|
|
@@ -212,7 +212,7 @@ export function ActivePattern_$007CFactor$007C_$007C(cells) {
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
export function ActivePattern_$007CCharacteristic$007C_$007C(cells) {
|
|
215
|
-
const activePatternResult = ActivePattern_$007CTerm$007C_$007C(tryParseCharacteristicColumnHeader, (
|
|
215
|
+
const activePatternResult = ActivePattern_$007CTerm$007C_$007C(tryParseCharacteristicColumnHeader, (Item) => (new CompositeHeader(1, [Item])), cells);
|
|
216
216
|
if (activePatternResult != null) {
|
|
217
217
|
const r = activePatternResult;
|
|
218
218
|
return r;
|
|
@@ -223,7 +223,7 @@ export function ActivePattern_$007CCharacteristic$007C_$007C(cells) {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
export function ActivePattern_$007CComponent$007C_$007C(cells) {
|
|
226
|
-
const activePatternResult = ActivePattern_$007CTerm$007C_$007C(tryParseComponentColumnHeader, (
|
|
226
|
+
const activePatternResult = ActivePattern_$007CTerm$007C_$007C(tryParseComponentColumnHeader, (Item) => (new CompositeHeader(0, [Item])), cells);
|
|
227
227
|
if (activePatternResult != null) {
|
|
228
228
|
const r = activePatternResult;
|
|
229
229
|
return r;
|
|
@@ -234,7 +234,7 @@ export function ActivePattern_$007CComponent$007C_$007C(cells) {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
export function ActivePattern_$007CInput$007C_$007C(cells) {
|
|
237
|
-
const cellValues = map((c) => c.
|
|
237
|
+
const cellValues = map((c) => c.ValueAsString(), cells);
|
|
238
238
|
let matchResult, ioType;
|
|
239
239
|
if (!isEmpty(cellValues)) {
|
|
240
240
|
const activePatternResult = ActivePatterns_$007CInputColumnHeader$007C_$007C(head(cellValues));
|
|
@@ -263,7 +263,7 @@ export function ActivePattern_$007CInput$007C_$007C(cells) {
|
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
export function ActivePattern_$007COutput$007C_$007C(cells) {
|
|
266
|
-
const cellValues = map((c) => c.
|
|
266
|
+
const cellValues = map((c) => c.ValueAsString(), cells);
|
|
267
267
|
let matchResult, ioType;
|
|
268
268
|
if (!isEmpty(cellValues)) {
|
|
269
269
|
const activePatternResult = ActivePatterns_$007COutputColumnHeader$007C_$007C(head(cellValues));
|
|
@@ -292,7 +292,7 @@ export function ActivePattern_$007COutput$007C_$007C(cells) {
|
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
export function ActivePattern_$007CProtocolHeader$007C_$007C(cells) {
|
|
295
|
-
const cellValues = map((c) => c.
|
|
295
|
+
const cellValues = map((c) => c.ValueAsString(), cells);
|
|
296
296
|
let matchResult;
|
|
297
297
|
if (!isEmpty(cellValues)) {
|
|
298
298
|
switch (head(cellValues)) {
|
|
@@ -382,7 +382,7 @@ export function ActivePattern_$007CProtocolHeader$007C_$007C(cells) {
|
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
export function ActivePattern_$007CFreeText$007C_$007C(cells) {
|
|
385
|
-
const cellValues = map((c) => c.
|
|
385
|
+
const cellValues = map((c) => c.ValueAsString(), cells);
|
|
386
386
|
let matchResult, text;
|
|
387
387
|
if (!isEmpty(cellValues)) {
|
|
388
388
|
if (isEmpty(tail(cellValues))) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.
|
|
2
|
-
import { iterate, isEmpty as isEmpty_1, choose, tryHead, head, exists, map, singleton, append, delay, iterateIndexed } from "../../fable_modules/fable-library.4.1
|
|
1
|
+
import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.5.0.1/FsWorksheet.fs.js";
|
|
2
|
+
import { iterate, isEmpty as isEmpty_1, choose, tryHead, head, exists, map, singleton, append, delay, iterateIndexed } from "../../fable_modules/fable-library.4.4.1/Seq.js";
|
|
3
3
|
import { SparseRowModule_tryGetValueAt, SparseRowModule_fromFsRow, SparseRowModule_fromValues, SparseRowModule_writeToSheet } from "./Metadata/SparseTable.js";
|
|
4
4
|
import { fromRows as fromRows_1, toRows as toRows_1 } from "./Metadata/Assays.js";
|
|
5
|
-
import { empty, isEmpty, toArray, ofArray, singleton as singleton_1 } from "../../fable_modules/fable-library.4.1
|
|
5
|
+
import { empty, isEmpty, toArray, ofArray, singleton as singleton_1 } from "../../fable_modules/fable-library.4.4.1/List.js";
|
|
6
6
|
import { fromRows as fromRows_2, toRows as toRows_2 } from "./Metadata/Contacts.js";
|
|
7
|
-
import { getEnumerator } from "../../fable_modules/fable-library.4.1
|
|
7
|
+
import { getEnumerator } from "../../fable_modules/fable-library.4.4.1/Util.js";
|
|
8
8
|
import { ArcAssay } from "../ISA/ArcTypes/ArcTypes.js";
|
|
9
9
|
import { createMissingIdentifier } from "../ISA/Identifier.js";
|
|
10
|
-
import { defaultArg } from "../../fable_modules/fable-library.4.1
|
|
11
|
-
import { printf, toConsole } from "../../fable_modules/fable-library.4.1
|
|
10
|
+
import { defaultArg } from "../../fable_modules/fable-library.4.4.1/Option.js";
|
|
11
|
+
import { printf, toConsole } from "../../fable_modules/fable-library.4.4.1/String.js";
|
|
12
12
|
import { toFsWorksheet, tryFromFsWorksheet } from "./AnnotationTable/ArcTable.js";
|
|
13
|
-
import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.
|
|
13
|
+
import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.5.0.1/FsWorkbook.fs.js";
|
|
14
14
|
|
|
15
15
|
export function toMetadataSheet(assay) {
|
|
16
16
|
let assay_1;
|
|
@@ -90,9 +90,9 @@ export function fromMetadataSheet(sheet) {
|
|
|
90
90
|
case 0:
|
|
91
91
|
return ArcAssay.create(createMissingIdentifier());
|
|
92
92
|
default: {
|
|
93
|
-
const
|
|
94
|
-
const
|
|
95
|
-
return ArcAssay.setPerformers(
|
|
93
|
+
const performers = toArray(contacts_2);
|
|
94
|
+
const assay = defaultArg(tryHead(assays_2), ArcAssay.create(createMissingIdentifier()));
|
|
95
|
+
return ArcAssay.setPerformers(performers, assay);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -127,23 +127,20 @@ export function fromFsWorkbook(doc) {
|
|
|
127
127
|
else {
|
|
128
128
|
assayMetaData = fromMetadataSheet(matchValue);
|
|
129
129
|
}
|
|
130
|
-
const
|
|
131
|
-
if (isEmpty_1(
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
assayMetaData.Tables = Array.from(sheets);
|
|
136
|
-
return assayMetaData;
|
|
130
|
+
const tables = choose(tryFromFsWorksheet, doc.GetWorksheets());
|
|
131
|
+
if (!isEmpty_1(tables)) {
|
|
132
|
+
assayMetaData.Tables = Array.from(tables);
|
|
137
133
|
}
|
|
134
|
+
return assayMetaData;
|
|
138
135
|
}
|
|
139
136
|
|
|
140
137
|
export function toFsWorkbook(assay) {
|
|
141
138
|
const doc = new FsWorkbook();
|
|
142
139
|
const metaDataSheet = toMetadataSheet(assay);
|
|
143
140
|
doc.AddWorksheet(metaDataSheet);
|
|
144
|
-
iterate((
|
|
145
|
-
const
|
|
146
|
-
doc.AddWorksheet(
|
|
141
|
+
iterate((arg) => {
|
|
142
|
+
const sheet = toFsWorksheet(arg);
|
|
143
|
+
doc.AddWorksheet(sheet);
|
|
147
144
|
}, assay.Tables);
|
|
148
145
|
return doc;
|
|
149
146
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { Record } from "../../fable_modules/fable-library.4.1
|
|
2
|
-
import { record_type, list_type, string_type } from "../../fable_modules/fable-library.4.1
|
|
1
|
+
import { Record } from "../../fable_modules/fable-library.4.4.1/Types.js";
|
|
2
|
+
import { record_type, list_type, string_type } from "../../fable_modules/fable-library.4.4.1/Reflection.js";
|
|
3
3
|
import { Remark, Comment$_$reflection } from "../ISA/JsonTypes/Comment.js";
|
|
4
|
-
import { head, tail, isEmpty,
|
|
4
|
+
import { ofSeq, head, tail, isEmpty, concat, unzip, append, toArray, reverse, cons, empty, map, ofArray } from "../../fable_modules/fable-library.4.4.1/List.js";
|
|
5
5
|
import { Remark_wrapRemark, Comment_toString, Comment_fromString } from "./Metadata/Comment.js";
|
|
6
6
|
import { SparseRowModule_writeToSheet, SparseRowModule_fromFsRow, SparseRowModule_fromValues, SparseRowModule_tryGetValueAt, SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValueDefault_5BAE6133 } from "./Metadata/SparseTable.js";
|
|
7
|
-
import { addToDict } from "../../fable_modules/fable-library.4.1
|
|
8
|
-
import { value as value_1, defaultArg } from "../../fable_modules/fable-library.4.1
|
|
9
|
-
import { List_distinctBy, List_distinct } from "../../fable_modules/fable-library.4.1
|
|
10
|
-
import { comparePrimitives, getEnumerator, stringHash } from "../../fable_modules/fable-library.4.1
|
|
7
|
+
import { addToDict } from "../../fable_modules/fable-library.4.4.1/MapUtil.js";
|
|
8
|
+
import { value as value_1, defaultArg } from "../../fable_modules/fable-library.4.4.1/Option.js";
|
|
9
|
+
import { List_distinctBy, List_distinct } from "../../fable_modules/fable-library.4.4.1/Seq2.js";
|
|
10
|
+
import { comparePrimitives, getEnumerator, stringHash } from "../../fable_modules/fable-library.4.4.1/Util.js";
|
|
11
11
|
import { Option_fromValueWithDefault } from "./Metadata/Conversions.js";
|
|
12
12
|
import { ArcInvestigation } from "../ISA/ArcTypes/ArcTypes.js";
|
|
13
13
|
import { toRows as toRows_1, fromRows as fromRows_1 } from "./Metadata/OntologySourceReference.js";
|
|
14
14
|
import { toRows as toRows_2, fromRows as fromRows_2 } from "./Metadata/Publication.js";
|
|
15
15
|
import { toRows as toRows_3, fromRows as fromRows_3 } from "./Metadata/Contacts.js";
|
|
16
16
|
import { toRows as toRows_4, fromRows as fromRows_4 } from "./Metadata/Study.js";
|
|
17
|
-
import { iterateIndexed, map as map_1, toList, collect, singleton, append as append_1, delay } from "../../fable_modules/fable-library.4.1
|
|
18
|
-
import { tryFind, ofList } from "../../fable_modules/fable-library.4.1
|
|
19
|
-
import { printf, toFail } from "../../fable_modules/fable-library.4.1
|
|
20
|
-
import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.
|
|
21
|
-
import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.
|
|
17
|
+
import { iterateIndexed, map as map_1, toList, collect, singleton, append as append_1, delay } from "../../fable_modules/fable-library.4.4.1/Seq.js";
|
|
18
|
+
import { tryFind, ofList } from "../../fable_modules/fable-library.4.4.1/Map.js";
|
|
19
|
+
import { printf, toFail } from "../../fable_modules/fable-library.4.4.1/String.js";
|
|
20
|
+
import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.5.0.1/FsWorksheet.fs.js";
|
|
21
|
+
import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.5.0.1/FsWorkbook.fs.js";
|
|
22
22
|
|
|
23
23
|
export class InvestigationInfo extends Record {
|
|
24
24
|
constructor(Identifier, Title, Description, SubmissionDate, PublicReleaseDate, Comments) {
|
|
@@ -83,19 +83,19 @@ export function InvestigationInfo_toRows_Z4D87C88C(investigation) {
|
|
|
83
83
|
|
|
84
84
|
export function fromParts(investigationInfo, ontologySourceReference, publications, contacts, studies, assays, remarks) {
|
|
85
85
|
const studyIdentifiers = map((s) => s.Identifier, studies);
|
|
86
|
-
const
|
|
87
|
-
const
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
return ArcInvestigation.make(investigationInfo.Identifier,
|
|
86
|
+
const title = Option_fromValueWithDefault("", investigationInfo.Title);
|
|
87
|
+
const description = Option_fromValueWithDefault("", investigationInfo.Description);
|
|
88
|
+
const submissionDate = Option_fromValueWithDefault("", investigationInfo.SubmissionDate);
|
|
89
|
+
const publicReleaseDate = Option_fromValueWithDefault("", investigationInfo.PublicReleaseDate);
|
|
90
|
+
const ontologySourceReferences = toArray(ontologySourceReference);
|
|
91
|
+
const publications_1 = toArray(publications);
|
|
92
|
+
const contacts_1 = toArray(contacts);
|
|
93
|
+
const assays_1 = Array.from(assays);
|
|
94
|
+
const studies_1 = Array.from(studies);
|
|
95
|
+
const registeredStudyIdentifiers = Array.from(studyIdentifiers);
|
|
96
|
+
const comments = toArray(investigationInfo.Comments);
|
|
97
|
+
const remarks_1 = toArray(remarks);
|
|
98
|
+
return ArcInvestigation.make(investigationInfo.Identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications_1, contacts_1, assays_1, studies_1, registeredStudyIdentifiers, comments, remarks_1);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export function fromRows(rows) {
|
|
@@ -196,7 +196,7 @@ export function fromRows(rows) {
|
|
|
196
196
|
const patternInput_4 = fromRows_4(lineNumber + 1, en);
|
|
197
197
|
const study = patternInput_4[3];
|
|
198
198
|
const newRemarks_4 = patternInput_4[2];
|
|
199
|
-
const
|
|
199
|
+
const lineNumber_6 = patternInput_4[1] | 0;
|
|
200
200
|
const currentLine_4 = patternInput_4[0];
|
|
201
201
|
if (study != null) {
|
|
202
202
|
lastLine_mut = currentLine_4;
|
|
@@ -206,7 +206,7 @@ export function fromRows(rows) {
|
|
|
206
206
|
contacts_mut = contacts;
|
|
207
207
|
studies_mut = cons(value_1(study), studies);
|
|
208
208
|
remarks_mut = append(remarks, newRemarks_4);
|
|
209
|
-
lineNumber_mut =
|
|
209
|
+
lineNumber_mut = lineNumber_6;
|
|
210
210
|
continue loop;
|
|
211
211
|
}
|
|
212
212
|
else {
|
|
@@ -217,7 +217,7 @@ export function fromRows(rows) {
|
|
|
217
217
|
contacts_mut = contacts;
|
|
218
218
|
studies_mut = studies;
|
|
219
219
|
remarks_mut = append(remarks, newRemarks_4);
|
|
220
|
-
lineNumber_mut =
|
|
220
|
+
lineNumber_mut = lineNumber_6;
|
|
221
221
|
continue loop;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
@@ -244,9 +244,9 @@ export function fromRows(rows) {
|
|
|
244
244
|
|
|
245
245
|
export function toRows(investigation) {
|
|
246
246
|
let remarks, rows;
|
|
247
|
-
return (remarks = ofArray(investigation.Remarks), (rows = delay(() => append_1(singleton(SparseRowModule_fromValues(["ONTOLOGY SOURCE REFERENCE"])), delay(() => append_1(toRows_1(ofArray(investigation.OntologySourceReferences)), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION"])), delay(() => append_1(InvestigationInfo_toRows_Z4D87C88C(investigation), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION PUBLICATIONS"])), delay(() => append_1(toRows_2("Investigation Publication", ofArray(investigation.Publications)), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION CONTACTS"])), delay(() => append_1(toRows_3("Investigation Person", ofArray(investigation.Contacts)), delay(() => collect((study) => append_1(singleton(SparseRowModule_fromValues(["STUDY"])), delay(() => toRows_4(study, void 0))),
|
|
247
|
+
return (remarks = ofArray(investigation.Remarks), (rows = delay(() => append_1(singleton(SparseRowModule_fromValues(["ONTOLOGY SOURCE REFERENCE"])), delay(() => append_1(toRows_1(ofArray(investigation.OntologySourceReferences)), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION"])), delay(() => append_1(InvestigationInfo_toRows_Z4D87C88C(investigation), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION PUBLICATIONS"])), delay(() => append_1(toRows_2("Investigation Publication", ofArray(investigation.Publications)), delay(() => append_1(singleton(SparseRowModule_fromValues(["INVESTIGATION CONTACTS"])), delay(() => append_1(toRows_3("Investigation Person", ofArray(investigation.Contacts)), delay(() => collect((study) => append_1(singleton(SparseRowModule_fromValues(["STUDY"])), delay(() => toRows_4(study, void 0))), investigation.RegisteredStudies)))))))))))))))))), (() => {
|
|
248
248
|
try {
|
|
249
|
-
const rm = ofList(map((
|
|
249
|
+
const rm = ofList(map((remark) => Remark.toTuple(remark), remarks), {
|
|
250
250
|
Compare: comparePrimitives,
|
|
251
251
|
});
|
|
252
252
|
const loop = (i_mut, l_mut, nl_mut) => {
|
|
@@ -266,10 +266,10 @@ export function toRows(investigation) {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
else {
|
|
269
|
-
const
|
|
269
|
+
const remark_1 = matchValue;
|
|
270
270
|
i_mut = (i + 1);
|
|
271
271
|
l_mut = l;
|
|
272
|
-
nl_mut = cons(SparseRowModule_fromValues([Remark_wrapRemark(
|
|
272
|
+
nl_mut = cons(SparseRowModule_fromValues([Remark_wrapRemark(remark_1)]), nl);
|
|
273
273
|
continue loop;
|
|
274
274
|
}
|
|
275
275
|
break;
|
|
@@ -284,15 +284,15 @@ export function toRows(investigation) {
|
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
export function fromFsWorkbook(doc) {
|
|
287
|
-
let
|
|
287
|
+
let sheet_2, matchValue, matchValue_1;
|
|
288
288
|
try {
|
|
289
|
-
return fromRows(map_1(SparseRowModule_fromFsRow, (
|
|
289
|
+
return fromRows(map_1(SparseRowModule_fromFsRow, (sheet_2 = ((matchValue = doc.TryGetWorksheetByName("isa_investigation"), (matchValue == null) ? ((matchValue_1 = doc.TryGetWorksheetByName("Investigation"), (matchValue_1 == null) ? (() => {
|
|
290
290
|
throw new Error("Could not find metadata sheet with sheetname \"isa_investigation\" or deprecated sheetname \"Investigation\"");
|
|
291
|
-
})() : matchValue_1)) : matchValue)), FsWorksheet.getRows(
|
|
291
|
+
})() : matchValue_1)) : matchValue)), FsWorksheet.getRows(sheet_2))));
|
|
292
292
|
}
|
|
293
293
|
catch (err) {
|
|
294
|
-
const
|
|
295
|
-
return toFail(printf("Could not read investigation from spreadsheet: %s"))(
|
|
294
|
+
const arg = err.message;
|
|
295
|
+
return toFail(printf("Could not read investigation from spreadsheet: %s"))(arg);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.
|
|
2
|
-
import { iterate, isEmpty, choose, map, append, iterateIndexed } from "../../fable_modules/fable-library.4.1
|
|
1
|
+
import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.5.0.1/FsWorksheet.fs.js";
|
|
2
|
+
import { iterate, isEmpty, choose, map, append, iterateIndexed } from "../../fable_modules/fable-library.4.4.1/Seq.js";
|
|
3
3
|
import { SparseRowModule_fromFsRow, SparseRowModule_fromValues, SparseRowModule_writeToSheet } from "./Metadata/SparseTable.js";
|
|
4
4
|
import { fromRows as fromRows_1, toRows } from "./Metadata/Study.js";
|
|
5
|
-
import { defaultArg } from "../../fable_modules/fable-library.4.1
|
|
6
|
-
import { getEnumerator } from "../../fable_modules/fable-library.4.1
|
|
5
|
+
import { defaultArg } from "../../fable_modules/fable-library.4.4.1/Option.js";
|
|
6
|
+
import { getEnumerator } from "../../fable_modules/fable-library.4.4.1/Util.js";
|
|
7
7
|
import { ArcStudy } from "../ISA/ArcTypes/ArcTypes.js";
|
|
8
8
|
import { createMissingIdentifier } from "../ISA/Identifier.js";
|
|
9
|
-
import { empty } from "../../fable_modules/fable-library.4.1
|
|
10
|
-
import { printf, toConsole } from "../../fable_modules/fable-library.4.1
|
|
9
|
+
import { empty } from "../../fable_modules/fable-library.4.4.1/List.js";
|
|
10
|
+
import { printf, toConsole } from "../../fable_modules/fable-library.4.4.1/String.js";
|
|
11
11
|
import { toFsWorksheet, tryFromFsWorksheet } from "./AnnotationTable/ArcTable.js";
|
|
12
|
-
import {
|
|
13
|
-
import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.
|
|
12
|
+
import { ArcTables } from "../ISA/ArcTypes/ArcTables.js";
|
|
13
|
+
import { FsWorkbook } from "../../fable_modules/FsSpreadsheet.5.0.1/FsWorkbook.fs.js";
|
|
14
14
|
|
|
15
15
|
export function ArcStudy_toMetadataSheet(study, assays) {
|
|
16
16
|
let source_1;
|
|
@@ -48,8 +48,8 @@ export function ARCtrl_ISA_ArcStudy__ArcStudy_fromFsWorkbook_Static_32154C9D(doc
|
|
|
48
48
|
const studyMetadata = patternInput[0];
|
|
49
49
|
const sheets = choose(tryFromFsWorksheet, doc.GetWorksheets());
|
|
50
50
|
if (!isEmpty(sheets)) {
|
|
51
|
-
const updatedTables =
|
|
52
|
-
studyMetadata.Tables =
|
|
51
|
+
const updatedTables = ArcTables.updateReferenceTablesBySheets(new ArcTables(studyMetadata.Tables), new ArcTables(Array.from(sheets)), true);
|
|
52
|
+
studyMetadata.Tables = updatedTables.Tables;
|
|
53
53
|
}
|
|
54
54
|
return [studyMetadata, patternInput[1]];
|
|
55
55
|
}
|
|
@@ -58,9 +58,9 @@ export function ARCtrl_ISA_ArcStudy__ArcStudy_toFsWorkbook_Static_Z2A9662E9(stud
|
|
|
58
58
|
const doc = new FsWorkbook();
|
|
59
59
|
const metaDataSheet = ArcStudy_toMetadataSheet(study, assays);
|
|
60
60
|
doc.AddWorksheet(metaDataSheet);
|
|
61
|
-
iterate((
|
|
62
|
-
const
|
|
63
|
-
doc.AddWorksheet(
|
|
61
|
+
iterate((arg) => {
|
|
62
|
+
const sheet = toFsWorksheet(arg);
|
|
63
|
+
doc.AddWorksheet(sheet);
|
|
64
64
|
}, study.Tables);
|
|
65
65
|
return doc;
|
|
66
66
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { tryFind, maxBy, skip } from "../../fable_modules/fable-library.4.1
|
|
2
|
-
import { tryItem, skip as skip_1, initialize } from "../../fable_modules/fable-library.4.1
|
|
3
|
-
import { defaultOf, comparePrimitives } from "../../fable_modules/fable-library.4.1
|
|
4
|
-
import { some, value } from "../../fable_modules/fable-library.4.1
|
|
5
|
-
import { empty, tail, cons, head, reverse, isEmpty, tryPick } from "../../fable_modules/fable-library.4.1
|
|
6
|
-
import { tryGetValue } from "../../fable_modules/fable-library.4.1
|
|
7
|
-
import { FSharpRef } from "../../fable_modules/fable-library.4.1
|
|
1
|
+
import { tryFind, maxBy, skip } from "../../fable_modules/fable-library.4.4.1/Seq.js";
|
|
2
|
+
import { tryItem, skip as skip_1, initialize } from "../../fable_modules/fable-library.4.4.1/Array.js";
|
|
3
|
+
import { defaultOf, comparePrimitives } from "../../fable_modules/fable-library.4.4.1/Util.js";
|
|
4
|
+
import { some, value } from "../../fable_modules/fable-library.4.4.1/Option.js";
|
|
5
|
+
import { empty, tail, cons, head, reverse, isEmpty, tryPick } from "../../fable_modules/fable-library.4.4.1/List.js";
|
|
6
|
+
import { tryGetValue } from "../../fable_modules/fable-library.4.4.1/MapUtil.js";
|
|
7
|
+
import { FSharpRef } from "../../fable_modules/fable-library.4.4.1/Types.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* If at least i values exist in seq a, builds a new array that contains the elements of the given seq, exluding the first i elements
|