@nfdi4plants/arctrl 1.2.0 → 2.0.0-alpha.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 +53 -35
- package/{Contracts/Contracts.ARCtrl.js → Contract/ARC.js} +4 -2
- package/Contract/ArcAssay.js +102 -0
- package/Contract/ArcInvestigation.js +78 -0
- package/Contract/ArcStudy.js +102 -0
- package/Contract/Contract.js +3 -3
- package/{Contracts/Contracts.Git.js → Contract/Git.js} +5 -5
- package/{ISA/ISA/ArcTypes → Core}/ArcTypes.js +307 -295
- package/Core/Comment.js +97 -0
- package/{ISA/ISA/JsonTypes → Core}/CommentList.js +12 -18
- package/Core/Conversion.js +1056 -0
- package/Core/Helper/Collections.js +318 -0
- package/Core/Helper/HashCodes.js +39 -0
- package/{ISA/ISA → Core/Helper}/Identifier.js +67 -2
- package/{ISA/ISA → Core/Helper}/Regex.js +3 -3
- package/{SemVer.js → Core/Helper/SemVer.js} +8 -8
- package/{ISA/ISA/ArcTypes → Core}/IdentifierSetters.js +1 -1
- package/Core/OntologyAnnotation.js +186 -0
- package/Core/OntologySourceReference.js +92 -0
- package/Core/Person.js +194 -0
- package/Core/Process/ColumnIndex.js +248 -0
- package/Core/Process/Component.js +188 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/Data.js +8 -8
- package/{ISA/ISA/JsonTypes → Core/Process}/DataFile.js +3 -3
- package/Core/Process/Factor.js +109 -0
- package/{ISA/ISA/JsonTypes → Core/Process}/FactorValue.js +32 -13
- package/{ISA/ISA/JsonTypes → Core/Process}/Material.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttribute.js +17 -17
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialAttributeValue.js +35 -16
- package/{ISA/ISA/JsonTypes → Core/Process}/MaterialType.js +3 -3
- package/{ISA/ISA/JsonTypes → Core/Process}/Process.js +46 -79
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessInput.js +42 -42
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessOutput.js +36 -36
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessParameterValue.js +26 -7
- package/{ISA/ISA/JsonTypes → Core/Process}/ProcessSequence.js +21 -25
- package/{ISA/ISA/JsonTypes → Core/Process}/Protocol.js +26 -57
- package/{ISA/ISA/JsonTypes → Core/Process}/ProtocolParameter.js +10 -10
- package/{ISA/ISA/JsonTypes → Core/Process}/Sample.js +12 -12
- package/{ISA/ISA/JsonTypes → Core/Process}/Source.js +9 -9
- package/{ISA/ISA/JsonTypes → Core/Process}/Value.js +13 -13
- package/Core/Publication.js +116 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTable.js +43 -149
- package/Core/Table/ArcTableAux.js +532 -0
- package/{ISA/ISA/ArcTypes → Core/Table}/ArcTables.js +20 -32
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeCell.js +19 -76
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeColumn.js +6 -6
- package/{ISA/ISA/ArcTypes → Core/Table}/CompositeHeader.js +14 -34
- package/{Templates → Core}/Template.js +16 -17
- package/Core/Templates.js +84 -0
- package/FileSystem/Commit.js +2 -2
- package/FileSystem/FileSystem.js +4 -4
- package/FileSystem/FileSystemTree.js +46 -8
- package/FileSystem/Path.js +10 -2
- package/Json/ARC.js +25 -0
- package/Json/Assay.js +202 -0
- package/Json/Comment.js +130 -0
- package/Json/ConverterOptions.js +18 -0
- package/Json/Decode.js +128 -0
- package/Json/Encode.js +45 -0
- package/Json/Investigation.js +220 -0
- package/Json/OntologyAnnotation.js +169 -0
- package/Json/OntologySourceReference.js +122 -0
- package/Json/Person.js +250 -0
- package/Json/Process/AssayMaterials.js +22 -0
- package/Json/Process/Component.js +79 -0
- package/Json/Process/Data.js +102 -0
- package/Json/Process/DataFile.js +81 -0
- package/Json/Process/Factor.js +48 -0
- package/Json/Process/FactorValue.js +53 -0
- package/Json/Process/Material.js +107 -0
- package/Json/Process/MaterialAttribute.js +45 -0
- package/Json/Process/MaterialAttributeValue.js +70 -0
- package/Json/Process/MaterialType.js +60 -0
- package/Json/Process/Process.js +107 -0
- package/Json/Process/ProcessInput.js +59 -0
- package/Json/Process/ProcessOutput.js +71 -0
- package/Json/Process/ProcessParameterValue.js +69 -0
- package/Json/Process/ProcessSequence.js +53 -0
- package/Json/Process/PropertyValue.js +82 -0
- package/Json/Process/Protocol.js +147 -0
- package/Json/Process/ProtocolParameter.js +45 -0
- package/Json/Process/Sample.js +134 -0
- package/Json/Process/Source.js +101 -0
- package/Json/Process/StudyMaterials.js +24 -0
- package/Json/Process/Value.js +42 -0
- package/Json/Publication.js +142 -0
- package/Json/StringTable.js +44 -0
- package/Json/Study.js +306 -0
- package/{ISA/ISA.Json/ArcTypes → Json/Table}/ArcTable.js +53 -49
- package/Json/Table/CellTable.js +40 -0
- package/Json/Table/CompositeCell.js +65 -0
- package/{ISA/ISA.Json/ArcTypes → Json/Table}/CompositeHeader.js +22 -19
- package/Json/Table/Compression.js +38 -0
- package/Json/Table/IOType.js +37 -0
- package/Json/Table/OATable.js +40 -0
- package/Json/Table/Templates.js +107 -0
- package/Json/context/rocrate/isa_assay_context.js +32 -0
- package/Json/context/rocrate/isa_comment_context.js +23 -0
- package/Json/context/rocrate/isa_component_context.js +24 -0
- package/Json/context/rocrate/isa_data_context.js +25 -0
- package/Json/context/rocrate/isa_factor_context.js +25 -0
- package/Json/context/rocrate/isa_factor_value_context.js +23 -0
- package/{ISA/ISA.Json → Json}/context/rocrate/isa_investigation_context.js +5 -5
- package/{ISA/ISA.Json → Json}/context/rocrate/isa_material_attribute_context.js +4 -4
- package/Json/context/rocrate/isa_material_attribute_value_context.js +23 -0
- package/Json/context/rocrate/isa_material_context.js +26 -0
- package/Json/context/rocrate/isa_ontology_annotation_context.js +23 -0
- package/Json/context/rocrate/isa_ontology_source_reference_context.js +26 -0
- package/Json/context/rocrate/isa_organization_context.js +22 -0
- package/Json/context/rocrate/isa_person_context.js +33 -0
- package/Json/context/rocrate/isa_process_context.js +29 -0
- package/Json/context/rocrate/isa_process_parameter_value_context.js +23 -0
- package/Json/context/rocrate/isa_protocol_context.js +28 -0
- package/{ISA/ISA.Json → Json}/context/rocrate/isa_protocol_parameter_context.js +4 -4
- package/Json/context/rocrate/isa_publication_context.js +25 -0
- package/Json/context/rocrate/isa_sample_context.js +24 -0
- package/Json/context/rocrate/isa_source_context.js +25 -0
- package/Json/context/rocrate/isa_study_context.js +40 -0
- package/Json/context/rocrate/property_value_context.js +4 -0
- package/Json/context/rocrate/rocrate_context.js +23 -0
- package/Json.js +193 -0
- package/README.md +33 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/ArcTable.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeCell.js +8 -7
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeColumn.js +10 -10
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/AnnotationTable/CompositeHeader.js +10 -10
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcAssay.js +11 -11
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcInvestigation.js +34 -37
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/ArcStudy.js +12 -12
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/CollectionAux.js +7 -7
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Assays.js +32 -32
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Comment.js +5 -5
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Contacts.js +28 -30
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Conversions.js +22 -16
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/DesignDescriptors.js +1 -1
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Factors.js +23 -22
- package/Spreadsheet/Metadata/OntologyAnnotation.js +64 -0
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/OntologySourceReference.js +22 -24
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Protocols.js +17 -17
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Publication.js +29 -31
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/SparseTable.js +23 -22
- package/{ISA/ISA.Spreadsheet → Spreadsheet}/Metadata/Study.js +38 -40
- package/{Templates/Template.Spreadsheet.js → Spreadsheet/Template.js} +31 -31
- package/Template.Web.js +27 -0
- package/WebRequest/WebRequest.Node.js +2 -2
- package/WebRequest/WebRequest.js +2 -2
- package/Xlsx.js +85 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +7 -7
- package/fable_modules/Fable.Promise.2.2.2/Promise.fs.js +3 -3
- 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.5.1.3/Cells/FsCell.fs.js +14 -14
- package/fable_modules/FsSpreadsheet.5.1.3/Cells/FsCellsCollection.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/ColumnBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/DSL.fs.js +2 -2
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Expression.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/SheetBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/TableBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Transform.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/DSL/WorkbookBuilder.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/FsColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsRow.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorkbook.fs.js +6 -6
- package/fable_modules/FsSpreadsheet.5.1.3/FsWorksheet.fs.js +9 -9
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRange.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeBase.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeColumn.fs.js +3 -3
- package/fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeRow.fs.js +1 -1
- package/fable_modules/FsSpreadsheet.5.1.3/SheetBuilder.fs.js +8 -8
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTable.fs.js +7 -7
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableField.fs.js +4 -4
- package/fable_modules/FsSpreadsheet.5.1.3/Tables/FsTableRow.fs.js +1 -1
- package/fable_modules/Thoth.Json.Core.0.2.1/Decode.fs.js +19 -19
- package/fable_modules/Thoth.Json.Core.0.2.1/Encode.fs.js +5 -5
- package/fable_modules/Thoth.Json.Core.0.2.1/Types.fs.js +2 -2
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Decode.fs.js +1 -1
- package/fable_modules/Thoth.Json.JavaScript.0.1.0/Encode.fs.js +2 -2
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.js +2 -2
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/CHANGELOG.md +18 -0
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.d.ts +9 -0
- package/fable_modules/fable-library-js.4.16.0/ConditionalWeakTable.js +21 -0
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.js +337 -40
- package/fable_modules/fable-library-js.4.16.0/MapUtil.d.ts +12 -0
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MapUtil.js +15 -0
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.d.ts +6 -3
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Util.js +2 -13
- package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/package.json +1 -1
- package/fable_modules/project_cracked.json +1 -1
- package/index.js +14 -12
- package/package.json +1 -1
- package/Contracts/Contracts.ArcTypes.js +0 -268
- package/FileSystemTree.js +0 -51
- package/ISA/ISA/ArcTypes/ArcTableAux.js +0 -1155
- package/ISA/ISA/ArcTypes/CompositeRow.js +0 -111
- package/ISA/ISA/Builder/Types.js +0 -243
- package/ISA/ISA/Fable.js +0 -123
- package/ISA/ISA/Helper.js +0 -505
- package/ISA/ISA/JsonTypes/Assay.js +0 -620
- package/ISA/ISA/JsonTypes/AssayMaterials.js +0 -39
- package/ISA/ISA/JsonTypes/ColumnIndex.js +0 -246
- package/ISA/ISA/JsonTypes/Comment.js +0 -58
- package/ISA/ISA/JsonTypes/Component.js +0 -165
- package/ISA/ISA/JsonTypes/Factor.js +0 -128
- package/ISA/ISA/JsonTypes/Investigation.js +0 -204
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +0 -196
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +0 -85
- package/ISA/ISA/JsonTypes/Person.js +0 -152
- package/ISA/ISA/JsonTypes/Publication.js +0 -105
- package/ISA/ISA/JsonTypes/Study.js +0 -942
- package/ISA/ISA/JsonTypes/StudyMaterials.js +0 -45
- package/ISA/ISA/UIHelper.js +0 -19
- package/ISA/ISA.Json/ArcTypes/ArcAssay.js +0 -303
- package/ISA/ISA.Json/ArcTypes/ArcInvestigation.js +0 -122
- package/ISA/ISA.Json/ArcTypes/ArcStudy.js +0 -203
- package/ISA/ISA.Json/ArcTypes/CellTable.js +0 -40
- package/ISA/ISA.Json/ArcTypes/CompositeCell.js +0 -62
- package/ISA/ISA.Json/ArcTypes/IOType.js +0 -33
- package/ISA/ISA.Json/ArcTypes/OATable.js +0 -42
- package/ISA/ISA.Json/Assay.js +0 -129
- package/ISA/ISA.Json/Comment.js +0 -80
- package/ISA/ISA.Json/ConverterOptions.js +0 -51
- package/ISA/ISA.Json/Data.js +0 -253
- package/ISA/ISA.Json/Decode.js +0 -61
- package/ISA/ISA.Json/Factor.js +0 -194
- package/ISA/ISA.Json/GEncode.js +0 -40
- package/ISA/ISA.Json/Investigation.js +0 -89
- package/ISA/ISA.Json/Material.js +0 -232
- package/ISA/ISA.Json/Ontology.js +0 -200
- package/ISA/ISA.Json/Person.js +0 -186
- package/ISA/ISA.Json/Process.js +0 -305
- package/ISA/ISA.Json/Protocol.js +0 -281
- package/ISA/ISA.Json/Publication.js +0 -86
- package/ISA/ISA.Json/StringTable.js +0 -44
- package/ISA/ISA.Json/Study.js +0 -186
- package/ISA/ISA.Json/context/rocrate/isa_assay_context.js +0 -34
- package/ISA/ISA.Json/context/rocrate/isa_comment_context.js +0 -23
- package/ISA/ISA.Json/context/rocrate/isa_component_context.js +0 -24
- package/ISA/ISA.Json/context/rocrate/isa_data_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_factor_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_factor_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_material_attribute_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_material_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_ontology_annotation_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_ontology_source_reference_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_organization_context.js +0 -22
- package/ISA/ISA.Json/context/rocrate/isa_person_context.js +0 -31
- package/ISA/ISA.Json/context/rocrate/isa_process_context.js +0 -31
- package/ISA/ISA.Json/context/rocrate/isa_process_parameter_value_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_protocol_context.js +0 -30
- package/ISA/ISA.Json/context/rocrate/isa_publication_context.js +0 -27
- package/ISA/ISA.Json/context/rocrate/isa_sample_context.js +0 -26
- package/ISA/ISA.Json/context/rocrate/isa_source_context.js +0 -25
- package/ISA/ISA.Json/context/rocrate/isa_study_context.js +0 -42
- package/ISA/ISA.Json/context/rocrate/rocrate_context.js +0 -25
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +0 -65
- package/Path.js +0 -10
- package/Templates/Template.Json.js +0 -90
- package/Templates/Template.Web.js +0 -27
- package/Templates/Templates.js +0 -82
- package/fable_modules/fable-library-js.4.13.0/MapUtil.d.ts +0 -10
- /package/{ISA/ISA/JsonTypes → Core}/URI.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Array.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Async.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/AsyncBuilder.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BigInt.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/BitConverter.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Boolean.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Char.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Choice.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Date.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOffset.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/DateOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Decimal.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Double.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Encoding.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Event.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Collections.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.CompilerServices.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/FSharp.Core.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Global.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Guid.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Int32.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/List.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Long.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MailboxProcessor.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Map.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableMap.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/MutableSet.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Native.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Numeric.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Observable.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Option.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/README.md +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Random.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Range.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Reflection.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/RegExp.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Result.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Seq2.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Set.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/String.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Collections.Generic.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/System.Text.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/SystemException.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeOnly.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/TimeSpan.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Timer.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Types.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Unicode.13.0.0.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/Uri.js +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.d.ts +0 -0
- /package/fable_modules/{fable-library-js.4.13.0 → fable-library-js.4.16.0}/lib/big.js +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { reverse, cons, iterateIndexed, empty, map,
|
|
2
|
-
import { OntologyAnnotation } from "../../
|
|
3
|
-
import { Option_fromValueWithDefault } from "
|
|
4
|
-
import { Factor } from "../../
|
|
5
|
-
import {
|
|
1
|
+
import { reverse, cons, iterateIndexed, empty, map, initialize, singleton, length, ofArray } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
2
|
+
import { OntologyAnnotation } from "../../Core/OntologyAnnotation.js";
|
|
3
|
+
import { ResizeArray_iter, Option_fromValueWithDefault } from "../../Core/Helper/Collections.js";
|
|
4
|
+
import { Factor } from "../../Core/Process/Factor.js";
|
|
5
|
+
import { SparseTable_ToRows_759CAFC1, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_3ECCA699 } from "./SparseTable.js";
|
|
6
6
|
import { Comment_toString, Comment_fromString } from "./Comment.js";
|
|
7
|
-
import { defaultArg } from "
|
|
8
|
-
import { addToDict } from "
|
|
9
|
-
import { List_distinct } from "
|
|
10
|
-
import { stringHash } from "
|
|
7
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
8
|
+
import { addToDict } from "../../fable_modules/fable-library-js.4.16.0/MapUtil.js";
|
|
9
|
+
import { List_distinct } from "../../fable_modules/fable-library-js.4.16.0/Seq2.js";
|
|
10
|
+
import { stringHash } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
11
11
|
|
|
12
12
|
export const nameLabel = "Name";
|
|
13
13
|
|
|
@@ -20,20 +20,22 @@ export const typeTermSourceREFLabel = "Type Term Source REF";
|
|
|
20
20
|
export const labels = ofArray([nameLabel, factorTypeLabel, typeTermAccessionNumberLabel, typeTermSourceREFLabel]);
|
|
21
21
|
|
|
22
22
|
export function fromString(name, designType, typeTermSourceREF, typeTermAccessionNumber, comments) {
|
|
23
|
-
const factorType = OntologyAnnotation.
|
|
24
|
-
const factorType_1 = Option_fromValueWithDefault(OntologyAnnotation
|
|
23
|
+
const factorType = OntologyAnnotation.create(designType, typeTermSourceREF, typeTermAccessionNumber);
|
|
24
|
+
const factorType_1 = Option_fromValueWithDefault(new OntologyAnnotation(), factorType);
|
|
25
25
|
const comments_1 = Option_fromValueWithDefault([], comments);
|
|
26
|
-
return Factor.make(
|
|
26
|
+
return Factor.make(name, factorType_1, comments_1);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export function fromSparseTable(matrix) {
|
|
30
30
|
if ((matrix.ColumnCount === 0) && (length(matrix.CommentKeys) !== 0)) {
|
|
31
|
-
const comments =
|
|
32
|
-
return singleton(Factor.create(void 0, void 0,
|
|
31
|
+
const comments = SparseTable_GetEmptyComments_3ECCA699(matrix);
|
|
32
|
+
return singleton(Factor.create(void 0, void 0, comments));
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
35
|
return initialize(matrix.ColumnCount, (i) => {
|
|
36
|
-
|
|
36
|
+
let comments_1;
|
|
37
|
+
const collection = map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, i])), matrix.CommentKeys);
|
|
38
|
+
comments_1 = Array.from(collection);
|
|
37
39
|
return fromString(SparseTable__TryGetValue_11FD62A8(matrix, [nameLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [factorTypeLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [typeTermSourceREFLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [typeTermAccessionNumberLabel, i]), comments_1);
|
|
38
40
|
});
|
|
39
41
|
}
|
|
@@ -45,21 +47,20 @@ export function toSparseTable(factors) {
|
|
|
45
47
|
iterateIndexed((i, f) => {
|
|
46
48
|
const i_1 = (i + 1) | 0;
|
|
47
49
|
let ft;
|
|
48
|
-
const f_1 = defaultArg(f.FactorType, OntologyAnnotation
|
|
49
|
-
ft = OntologyAnnotation.
|
|
50
|
+
const f_1 = defaultArg(f.FactorType, new OntologyAnnotation());
|
|
51
|
+
ft = OntologyAnnotation.toStringObject(f_1, true);
|
|
50
52
|
addToDict(matrix.Matrix, [nameLabel, i_1], defaultArg(f.Name, ""));
|
|
51
53
|
addToDict(matrix.Matrix, [factorTypeLabel, i_1], ft.TermName);
|
|
52
54
|
addToDict(matrix.Matrix, [typeTermAccessionNumberLabel, i_1], ft.TermAccessionNumber);
|
|
53
55
|
addToDict(matrix.Matrix, [typeTermSourceREFLabel, i_1], ft.TermSourceREF);
|
|
54
56
|
const matchValue = f.Comments;
|
|
55
57
|
if (matchValue != null) {
|
|
56
|
-
|
|
57
|
-
array.forEach((comment) => {
|
|
58
|
+
ResizeArray_iter((comment) => {
|
|
58
59
|
const patternInput = Comment_toString(comment);
|
|
59
60
|
const n = patternInput[0];
|
|
60
61
|
commentKeys = cons(n, commentKeys);
|
|
61
62
|
addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
|
|
62
|
-
});
|
|
63
|
+
}, matchValue);
|
|
63
64
|
}
|
|
64
65
|
}, factors);
|
|
65
66
|
return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
|
|
@@ -76,10 +77,10 @@ export function fromRows(prefix, lineNumber, rows) {
|
|
|
76
77
|
export function toRows(prefix, factors) {
|
|
77
78
|
const m = toSparseTable(factors);
|
|
78
79
|
if (prefix == null) {
|
|
79
|
-
return
|
|
80
|
+
return SparseTable_ToRows_759CAFC1(m);
|
|
80
81
|
}
|
|
81
82
|
else {
|
|
82
|
-
return
|
|
83
|
+
return SparseTable_ToRows_759CAFC1(m, prefix);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { reverse, cons, iterateIndexed, empty, ofArray, map, initialize, singleton, length } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
2
|
+
import { SparseTable_ToRows_759CAFC1, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_3ECCA699 } from "./SparseTable.js";
|
|
3
|
+
import { OntologyAnnotation } from "../../Core/OntologyAnnotation.js";
|
|
4
|
+
import { Comment_toString, Comment_fromString } from "./Comment.js";
|
|
5
|
+
import { unwrap } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
6
|
+
import { addToDict } from "../../fable_modules/fable-library-js.4.16.0/MapUtil.js";
|
|
7
|
+
import { ResizeArray_iter } from "../../Core/Helper/Collections.js";
|
|
8
|
+
import { List_distinct } from "../../fable_modules/fable-library-js.4.16.0/Seq2.js";
|
|
9
|
+
import { stringHash } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
10
|
+
|
|
11
|
+
export function fromSparseTable(label, labelTSR, labelTAN, matrix) {
|
|
12
|
+
let returnVal;
|
|
13
|
+
if ((matrix.ColumnCount === 0) && (length(matrix.CommentKeys) !== 0)) {
|
|
14
|
+
const comments = SparseTable_GetEmptyComments_3ECCA699(matrix);
|
|
15
|
+
return singleton((returnVal = OntologyAnnotation.create(), (returnVal.Comments = comments, returnVal)));
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
return initialize(matrix.ColumnCount, (i) => {
|
|
19
|
+
let comments_1;
|
|
20
|
+
const collection = map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, i])), matrix.CommentKeys);
|
|
21
|
+
comments_1 = Array.from(collection);
|
|
22
|
+
return new OntologyAnnotation(unwrap(SparseTable__TryGetValue_11FD62A8(matrix, [label, i])), unwrap(SparseTable__TryGetValue_11FD62A8(matrix, [labelTSR, i])), unwrap(SparseTable__TryGetValue_11FD62A8(matrix, [labelTAN, i])), comments_1);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function toSparseTable(label, labelTSR, labelTAN, designs) {
|
|
28
|
+
const matrix = SparseTable_Create_Z2192E64B(void 0, ofArray([label, labelTAN, labelTSR]), void 0, length(designs) + 1);
|
|
29
|
+
let commentKeys = empty();
|
|
30
|
+
iterateIndexed((i, d) => {
|
|
31
|
+
const i_1 = (i + 1) | 0;
|
|
32
|
+
const oa = OntologyAnnotation.toStringObject(d, true);
|
|
33
|
+
addToDict(matrix.Matrix, [label, i_1], oa.TermName);
|
|
34
|
+
addToDict(matrix.Matrix, [labelTAN, i_1], oa.TermAccessionNumber);
|
|
35
|
+
addToDict(matrix.Matrix, [labelTSR, i_1], oa.TermSourceREF);
|
|
36
|
+
ResizeArray_iter((comment) => {
|
|
37
|
+
const patternInput = Comment_toString(comment);
|
|
38
|
+
const n = patternInput[0];
|
|
39
|
+
commentKeys = cons(n, commentKeys);
|
|
40
|
+
addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
|
|
41
|
+
}, d.Comments);
|
|
42
|
+
}, designs);
|
|
43
|
+
return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
|
|
44
|
+
Equals: (x, y) => (x === y),
|
|
45
|
+
GetHashCode: stringHash,
|
|
46
|
+
})), matrix.ColumnCount);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function fromRows(prefix, label, labelTSR, labelTAN, lineNumber, rows) {
|
|
50
|
+
const labels = ofArray([label, labelTAN, labelTSR]);
|
|
51
|
+
const tupledArg = (prefix == null) ? SparseTable_FromRows_Z5579EC29(rows, labels, lineNumber) : SparseTable_FromRows_Z5579EC29(rows, labels, lineNumber, prefix);
|
|
52
|
+
return [tupledArg[0], tupledArg[1], tupledArg[2], fromSparseTable(label, labelTSR, labelTAN, tupledArg[3])];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function toRows(prefix, label, labelTSR, labelTAN, designs) {
|
|
56
|
+
const m = toSparseTable(label, labelTSR, labelTAN, designs);
|
|
57
|
+
if (prefix == null) {
|
|
58
|
+
return SparseTable_ToRows_759CAFC1(m);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return SparseTable_ToRows_759CAFC1(m, prefix);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { reverse, cons, iterateIndexed, empty, map,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { SparseTable_ToRows_6A3D4534, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_651559CC } from "./SparseTable.js";
|
|
1
|
+
import { reverse, cons, iterateIndexed, empty, map, initialize, singleton, length, ofArray } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
2
|
+
import { OntologySourceReference } from "../../Core/OntologySourceReference.js";
|
|
3
|
+
import { SparseTable_ToRows_759CAFC1, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_3ECCA699 } from "./SparseTable.js";
|
|
5
4
|
import { Comment_toString, Comment_fromString } from "./Comment.js";
|
|
6
|
-
import { addToDict } from "
|
|
7
|
-
import { defaultArg } from "
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { addToDict } from "../../fable_modules/fable-library-js.4.16.0/MapUtil.js";
|
|
6
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
7
|
+
import { ResizeArray_iter } from "../../Core/Helper/Collections.js";
|
|
8
|
+
import { List_distinct } from "../../fable_modules/fable-library-js.4.16.0/Seq2.js";
|
|
9
|
+
import { stringHash } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
10
10
|
|
|
11
11
|
export const nameLabel = "Term Source Name";
|
|
12
12
|
|
|
@@ -19,18 +19,20 @@ export const descriptionLabel = "Term Source Description";
|
|
|
19
19
|
export const labels = ofArray([nameLabel, fileLabel, versionLabel, descriptionLabel]);
|
|
20
20
|
|
|
21
21
|
export function fromString(description, file, name, version, comments) {
|
|
22
|
-
|
|
23
|
-
return OntologySourceReference.make(description, file, name, version, comments_1);
|
|
22
|
+
return OntologySourceReference.make(description, file, name, version, comments);
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
export function fromSparseTable(matrix) {
|
|
26
|
+
let returnVal;
|
|
27
27
|
if ((matrix.ColumnCount === 0) && (length(matrix.CommentKeys) !== 0)) {
|
|
28
|
-
const comments =
|
|
29
|
-
return singleton(OntologySourceReference.create(
|
|
28
|
+
const comments = SparseTable_GetEmptyComments_3ECCA699(matrix);
|
|
29
|
+
return singleton((returnVal = OntologySourceReference.create(), (returnVal.Comments = comments, returnVal)));
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
32
|
return initialize(matrix.ColumnCount, (i) => {
|
|
33
|
-
|
|
33
|
+
let comments_1;
|
|
34
|
+
const collection = map((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, i])), matrix.CommentKeys);
|
|
35
|
+
comments_1 = Array.from(collection);
|
|
34
36
|
return fromString(SparseTable__TryGetValue_11FD62A8(matrix, [descriptionLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [fileLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [nameLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [versionLabel, i]), comments_1);
|
|
35
37
|
});
|
|
36
38
|
}
|
|
@@ -45,16 +47,12 @@ export function toSparseTable(ontologySources) {
|
|
|
45
47
|
addToDict(matrix.Matrix, [fileLabel, i_1], defaultArg(o.File, ""));
|
|
46
48
|
addToDict(matrix.Matrix, [versionLabel, i_1], defaultArg(o.Version, ""));
|
|
47
49
|
addToDict(matrix.Matrix, [descriptionLabel, i_1], defaultArg(o.Description, ""));
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
commentKeys = cons(n, commentKeys);
|
|
55
|
-
addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
|
|
56
|
-
});
|
|
57
|
-
}
|
|
50
|
+
ResizeArray_iter((comment) => {
|
|
51
|
+
const patternInput = Comment_toString(comment);
|
|
52
|
+
const n = patternInput[0];
|
|
53
|
+
commentKeys = cons(n, commentKeys);
|
|
54
|
+
addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
|
|
55
|
+
}, o.Comments);
|
|
58
56
|
}, ontologySources);
|
|
59
57
|
return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
|
|
60
58
|
Equals: (x, y) => (x === y),
|
|
@@ -68,6 +66,6 @@ export function fromRows(lineNumber, rows) {
|
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
export function toRows(termSources) {
|
|
71
|
-
return
|
|
69
|
+
return SparseTable_ToRows_759CAFC1(toSparseTable(termSources));
|
|
72
70
|
}
|
|
73
71
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { reverse, cons, iterate, iterateIndexed, map as map_1, initialize, singleton, length, empty, ofArray } from "
|
|
2
|
-
import { OntologyAnnotation } from "../../
|
|
1
|
+
import { reverse, cons, iterate, iterateIndexed, map as map_1, initialize, singleton, length, empty, ofSeq, ofArray } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
2
|
+
import { OntologyAnnotation } from "../../Core/OntologyAnnotation.js";
|
|
3
3
|
import { Component_toAggregatedStrings, ProtocolParameter_toAggregatedStrings, Option_fromValueWithDefault, Component_fromAggregatedStrings, ProtocolParameter_fromAggregatedStrings } from "./Conversions.js";
|
|
4
|
-
import {
|
|
5
|
-
import { defaultArg, map } from "
|
|
6
|
-
import { URIModule_fromString } from "../../
|
|
7
|
-
import {
|
|
4
|
+
import { Protocol_create_Z414665E7, Protocol_make } from "../../Core/Process/Protocol.js";
|
|
5
|
+
import { defaultArg, map } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
6
|
+
import { URIModule_fromString } from "../../Core/URI.js";
|
|
7
|
+
import { SparseTable_ToRows_759CAFC1, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_3ECCA699 } from "./SparseTable.js";
|
|
8
8
|
import { Comment_toString, Comment_fromString } from "./Comment.js";
|
|
9
|
-
import { addToDict } from "
|
|
10
|
-
import { List_distinct } from "
|
|
11
|
-
import { stringHash } from "
|
|
9
|
+
import { addToDict } from "../../fable_modules/fable-library-js.4.16.0/MapUtil.js";
|
|
10
|
+
import { List_distinct } from "../../fable_modules/fable-library-js.4.16.0/Seq2.js";
|
|
11
|
+
import { stringHash } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
12
12
|
|
|
13
13
|
export const nameLabel = "Name";
|
|
14
14
|
|
|
@@ -41,15 +41,15 @@ export const componentsTypeTermSourceREFLabel = "Components Type Term Source REF
|
|
|
41
41
|
export const labels = ofArray([nameLabel, protocolTypeLabel, typeTermAccessionNumberLabel, typeTermSourceREFLabel, descriptionLabel, uriLabel, versionLabel, parametersNameLabel, parametersTermAccessionNumberLabel, parametersTermSourceREFLabel, componentsNameLabel, componentsTypeLabel, componentsTypeTermAccessionNumberLabel, componentsTypeTermSourceREFLabel]);
|
|
42
42
|
|
|
43
43
|
export function fromString(name, protocolType, typeTermAccessionNumber, typeTermSourceREF, description, uri, version, parametersName, parametersTermAccessionNumber, parametersTermSourceREF, componentsName, componentsType, componentsTypeTermAccessionNumber, componentsTypeTermSourceREF, comments) {
|
|
44
|
-
const protocolType_1 = OntologyAnnotation.
|
|
45
|
-
const parameters =
|
|
44
|
+
const protocolType_1 = OntologyAnnotation.create(protocolType, typeTermSourceREF, typeTermAccessionNumber);
|
|
45
|
+
const parameters = ofSeq(ProtocolParameter_fromAggregatedStrings(";", parametersName, parametersTermSourceREF, parametersTermAccessionNumber));
|
|
46
46
|
const components = Component_fromAggregatedStrings(";", componentsName, componentsType, componentsTypeTermSourceREF, componentsTypeTermAccessionNumber);
|
|
47
|
-
return Protocol_make(void 0, map(URIModule_fromString, name), Option_fromValueWithDefault(OntologyAnnotation
|
|
47
|
+
return Protocol_make(void 0, map(URIModule_fromString, name), Option_fromValueWithDefault(new OntologyAnnotation(), protocolType_1), description, map(URIModule_fromString, uri), version, Option_fromValueWithDefault(empty(), parameters), Option_fromValueWithDefault(empty(), components), Option_fromValueWithDefault(empty(), comments));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export function fromSparseTable(matrix) {
|
|
51
51
|
if ((matrix.ColumnCount === 0) && (length(matrix.CommentKeys) !== 0)) {
|
|
52
|
-
return singleton(
|
|
52
|
+
return singleton(Protocol_create_Z414665E7(void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, ofSeq(SparseTable_GetEmptyComments_3ECCA699(matrix))));
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
55
|
return initialize(matrix.ColumnCount, (i) => {
|
|
@@ -65,8 +65,8 @@ export function toSparseTable(protocols) {
|
|
|
65
65
|
iterateIndexed((i, p) => {
|
|
66
66
|
const i_1 = (i + 1) | 0;
|
|
67
67
|
let pt_1;
|
|
68
|
-
const pt = defaultArg(p.ProtocolType, OntologyAnnotation
|
|
69
|
-
pt_1 = OntologyAnnotation.
|
|
68
|
+
const pt = defaultArg(p.ProtocolType, new OntologyAnnotation());
|
|
69
|
+
pt_1 = OntologyAnnotation.toStringObject(pt, true);
|
|
70
70
|
const pAgg = ProtocolParameter_toAggregatedStrings(";", defaultArg(p.Parameters, empty()));
|
|
71
71
|
const cAgg = Component_toAggregatedStrings(";", defaultArg(p.Components, empty()));
|
|
72
72
|
addToDict(matrix.Matrix, [nameLabel, i_1], defaultArg(p.Name, ""));
|
|
@@ -107,10 +107,10 @@ export function fromRows(prefix, lineNumber, rows) {
|
|
|
107
107
|
export function toRows(prefix, protocols) {
|
|
108
108
|
const m = toSparseTable(protocols);
|
|
109
109
|
if (prefix == null) {
|
|
110
|
-
return
|
|
110
|
+
return SparseTable_ToRows_759CAFC1(m);
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
|
-
return
|
|
113
|
+
return SparseTable_ToRows_759CAFC1(m, prefix);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { reverse, cons, iterateIndexed, empty, map as map_1,
|
|
2
|
-
import { OntologyAnnotation } from "../../
|
|
3
|
-
import { defaultArg, map } from "
|
|
4
|
-
import { URIModule_fromString } from "../../
|
|
5
|
-
import { Option_fromValueWithDefault } from "
|
|
6
|
-
import { Publication } from "../../
|
|
7
|
-
import {
|
|
1
|
+
import { reverse, cons, iterateIndexed, empty, map as map_1, initialize, singleton, length, ofArray } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
2
|
+
import { OntologyAnnotation } from "../../Core/OntologyAnnotation.js";
|
|
3
|
+
import { defaultArg, map } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
4
|
+
import { URIModule_fromString } from "../../Core/URI.js";
|
|
5
|
+
import { ResizeArray_iter, Option_fromValueWithDefault } from "../../Core/Helper/Collections.js";
|
|
6
|
+
import { Publication } from "../../Core/Publication.js";
|
|
7
|
+
import { SparseTable_ToRows_759CAFC1, SparseTable_FromRows_Z5579EC29, SparseTable, SparseTable_Create_Z2192E64B, SparseTable__TryGetValue_11FD62A8, SparseTable__TryGetValueDefault_5BAE6133, SparseTable_GetEmptyComments_3ECCA699 } from "./SparseTable.js";
|
|
8
8
|
import { Comment_toString, Comment_fromString } from "./Comment.js";
|
|
9
|
-
import { addToDict } from "
|
|
10
|
-
import { List_distinct } from "
|
|
11
|
-
import { stringHash } from "
|
|
9
|
+
import { addToDict } from "../../fable_modules/fable-library-js.4.16.0/MapUtil.js";
|
|
10
|
+
import { List_distinct } from "../../fable_modules/fable-library-js.4.16.0/Seq2.js";
|
|
11
|
+
import { stringHash } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
12
12
|
|
|
13
13
|
export const pubMedIDLabel = "PubMed ID";
|
|
14
14
|
|
|
@@ -27,21 +27,23 @@ export const statusTermSourceREFLabel = "Status Term Source REF";
|
|
|
27
27
|
export const labels = ofArray([pubMedIDLabel, doiLabel, authorListLabel, titleLabel, statusLabel, statusTermAccessionNumberLabel, statusTermSourceREFLabel]);
|
|
28
28
|
|
|
29
29
|
export function fromString(pubMedID, doi, author, title, status, statusTermSourceREF, statusTermAccessionNumber, comments) {
|
|
30
|
-
const status_1 = OntologyAnnotation
|
|
30
|
+
const status_1 = new OntologyAnnotation(status, statusTermSourceREF, statusTermAccessionNumber);
|
|
31
31
|
const pubMedID_1 = map(URIModule_fromString, pubMedID);
|
|
32
|
-
const status_2 = Option_fromValueWithDefault(OntologyAnnotation
|
|
33
|
-
|
|
34
|
-
return Publication.make(pubMedID_1, doi, author, title, status_2, comments_1);
|
|
32
|
+
const status_2 = Option_fromValueWithDefault(new OntologyAnnotation(), status_1);
|
|
33
|
+
return Publication.make(pubMedID_1, doi, author, title, status_2, comments);
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
export function fromSparseTable(matrix) {
|
|
37
|
+
let returnVal;
|
|
38
38
|
if ((matrix.ColumnCount === 0) && (length(matrix.CommentKeys) !== 0)) {
|
|
39
|
-
const comments =
|
|
40
|
-
return singleton(Publication.create(
|
|
39
|
+
const comments = SparseTable_GetEmptyComments_3ECCA699(matrix);
|
|
40
|
+
return singleton((returnVal = Publication.create(), (returnVal.Comments = comments, returnVal)));
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
43
|
return initialize(matrix.ColumnCount, (i) => {
|
|
44
|
-
|
|
44
|
+
let comments_1;
|
|
45
|
+
const collection = map_1((k) => Comment_fromString(k, SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [k, i])), matrix.CommentKeys);
|
|
46
|
+
comments_1 = Array.from(collection);
|
|
45
47
|
return fromString(SparseTable__TryGetValue_11FD62A8(matrix, [pubMedIDLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [doiLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [authorListLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [titleLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [statusLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [statusTermSourceREFLabel, i]), SparseTable__TryGetValue_11FD62A8(matrix, [statusTermAccessionNumberLabel, i]), comments_1);
|
|
46
48
|
});
|
|
47
49
|
}
|
|
@@ -53,8 +55,8 @@ export function toSparseTable(publications) {
|
|
|
53
55
|
iterateIndexed((i, p) => {
|
|
54
56
|
const i_1 = (i + 1) | 0;
|
|
55
57
|
let s_1;
|
|
56
|
-
const s = defaultArg(p.Status, OntologyAnnotation
|
|
57
|
-
s_1 = OntologyAnnotation.
|
|
58
|
+
const s = defaultArg(p.Status, new OntologyAnnotation());
|
|
59
|
+
s_1 = OntologyAnnotation.toStringObject(s, true);
|
|
58
60
|
addToDict(matrix.Matrix, [pubMedIDLabel, i_1], defaultArg(p.PubMedID, ""));
|
|
59
61
|
addToDict(matrix.Matrix, [doiLabel, i_1], defaultArg(p.DOI, ""));
|
|
60
62
|
addToDict(matrix.Matrix, [authorListLabel, i_1], defaultArg(p.Authors, ""));
|
|
@@ -62,16 +64,12 @@ export function toSparseTable(publications) {
|
|
|
62
64
|
addToDict(matrix.Matrix, [statusLabel, i_1], s_1.TermName);
|
|
63
65
|
addToDict(matrix.Matrix, [statusTermAccessionNumberLabel, i_1], s_1.TermAccessionNumber);
|
|
64
66
|
addToDict(matrix.Matrix, [statusTermSourceREFLabel, i_1], s_1.TermSourceREF);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
commentKeys = cons(n, commentKeys);
|
|
72
|
-
addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
|
|
73
|
-
});
|
|
74
|
-
}
|
|
67
|
+
ResizeArray_iter((comment) => {
|
|
68
|
+
const patternInput = Comment_toString(comment);
|
|
69
|
+
const n = patternInput[0];
|
|
70
|
+
commentKeys = cons(n, commentKeys);
|
|
71
|
+
addToDict(matrix.Matrix, [n, i_1], patternInput[1]);
|
|
72
|
+
}, p.Comments);
|
|
75
73
|
}, publications);
|
|
76
74
|
return new SparseTable(matrix.Matrix, matrix.Keys, reverse(List_distinct(commentKeys, {
|
|
77
75
|
Equals: (x, y) => (x === y),
|
|
@@ -87,10 +85,10 @@ export function fromRows(prefix, lineNumber, rows) {
|
|
|
87
85
|
export function toRows(prefix, publications) {
|
|
88
86
|
const m = toSparseTable(publications);
|
|
89
87
|
if (prefix == null) {
|
|
90
|
-
return
|
|
88
|
+
return SparseTable_ToRows_759CAFC1(m);
|
|
91
89
|
}
|
|
92
90
|
else {
|
|
93
|
-
return
|
|
91
|
+
return SparseTable_ToRows_759CAFC1(m, prefix);
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { append as append_1, delay, tryItem, length as length_1, isEmpty, iterate, fold, tryPick, maxBy, initialize, choose, map, indexed } from "
|
|
2
|
-
import { defaultArg, map as map_1 } from "
|
|
3
|
-
import { tryFind, ofSeq } from "
|
|
4
|
-
import { arrayHash, equalArrays, equals, comparePrimitives } from "
|
|
5
|
-
import { RowBuilder_get_Empty, RowBuilder__Combine_19F30600, RowBuilder_$ctor } from "
|
|
6
|
-
import { CellBuilder_$ctor, CellBuilder__AsCellElement_6F87C2ED } from "
|
|
7
|
-
import { Messages_format, SheetEntity$1_some_2B595 } from "
|
|
8
|
-
import { DataType } from "
|
|
9
|
-
import { map as map_2,
|
|
10
|
-
import { ColumnIndex, RowElement } from "
|
|
11
|
-
import { FsRangeAddress_$ctor_7E77A4A0 } from "
|
|
12
|
-
import { FsAddress_$ctor_Z37302880 } from "
|
|
13
|
-
import { Record } from "
|
|
14
|
-
import { record_type, list_type, class_type, tuple_type, int32_type, string_type } from "
|
|
1
|
+
import { append as append_1, delay, tryItem, length as length_1, isEmpty, iterate, fold, tryPick, maxBy, initialize, choose, map, indexed } from "../../fable_modules/fable-library-js.4.16.0/Seq.js";
|
|
2
|
+
import { defaultArg, map as map_1 } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
3
|
+
import { tryFind, ofSeq } from "../../fable_modules/fable-library-js.4.16.0/Map.js";
|
|
4
|
+
import { arrayHash, equalArrays, equals, comparePrimitives } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
5
|
+
import { RowBuilder_get_Empty, RowBuilder__Combine_19F30600, RowBuilder_$ctor } from "../../fable_modules/FsSpreadsheet.5.1.3/DSL/RowBuilder.fs.js";
|
|
6
|
+
import { CellBuilder_$ctor, CellBuilder__AsCellElement_6F87C2ED } from "../../fable_modules/FsSpreadsheet.5.1.3/DSL/CellBuilder.fs.js";
|
|
7
|
+
import { Messages_format, SheetEntity$1_some_2B595 } from "../../fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js";
|
|
8
|
+
import { DataType } from "../../fable_modules/FsSpreadsheet.5.1.3/Cells/FsCell.fs.js";
|
|
9
|
+
import { map as map_2, initialize as initialize_1, exists, find, cons, append, empty, singleton } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
10
|
+
import { ColumnIndex, RowElement } from "../../fable_modules/FsSpreadsheet.5.1.3/DSL/Types.fs.js";
|
|
11
|
+
import { FsRangeAddress_$ctor_7E77A4A0 } from "../../fable_modules/FsSpreadsheet.5.1.3/Ranges/FsRangeAddress.fs.js";
|
|
12
|
+
import { FsAddress_$ctor_Z37302880 } from "../../fable_modules/FsSpreadsheet.5.1.3/FsAddress.fs.js";
|
|
13
|
+
import { Record } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
14
|
+
import { record_type, list_type, class_type, tuple_type, int32_type, string_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
15
15
|
import { Seq_trySkip, Dictionary_tryGetValue } from "../CollectionAux.js";
|
|
16
|
-
import { addToDict, getItemFromDict } from "
|
|
17
|
-
import { Dictionary } from "
|
|
18
|
-
import { printf, toFail } from "
|
|
19
|
-
import { Comment$, Remark } from "../../
|
|
16
|
+
import { addToDict, getItemFromDict } from "../../fable_modules/fable-library-js.4.16.0/MapUtil.js";
|
|
17
|
+
import { Dictionary } from "../../fable_modules/fable-library-js.4.16.0/MutableMap.js";
|
|
18
|
+
import { printf, toFail } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
19
|
+
import { Comment$, Remark } from "../../Core/Comment.js";
|
|
20
20
|
import { Comment_wrapCommentKey, Comment_$007CComment$007C_$007C, Remark_$007CRemark$007C_$007C } from "./Comment.js";
|
|
21
21
|
|
|
22
22
|
export function SparseRowModule_fromValues(v) {
|
|
@@ -293,7 +293,7 @@ export class SparseTable extends Record {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
export function SparseTable_$reflection() {
|
|
296
|
-
return record_type("ARCtrl.
|
|
296
|
+
return record_type("ARCtrl.Spreadsheet.SparseTable", [], SparseTable, () => [["Matrix", class_type("System.Collections.Generic.Dictionary`2", [tuple_type(string_type, int32_type), string_type])], ["Keys", list_type(string_type)], ["CommentKeys", list_type(string_type)], ["ColumnCount", int32_type]]);
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
export function SparseTable__TryGetValue_11FD62A8(this$, key) {
|
|
@@ -447,12 +447,13 @@ export function SparseTable_FromRows_Z5579EC29(en, labels, lineNumber, prefix) {
|
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
export function
|
|
450
|
+
export function SparseTable_ToRows_759CAFC1(matrix, prefix) {
|
|
451
451
|
const prefix_1 = (prefix == null) ? "" : (prefix + " ");
|
|
452
452
|
return delay(() => append_1(map((key) => SparseRowModule_fromValues(cons(prefix_1 + key, initialize_1(matrix.ColumnCount - 1, (i) => SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [key, i + 1])))), matrix.Keys), delay(() => map((key_1) => SparseRowModule_fromValues(cons(Comment_wrapCommentKey(key_1), initialize_1(matrix.ColumnCount - 1, (i_1) => SparseTable__TryGetValueDefault_5BAE6133(matrix, "", [key_1, i_1 + 1])))), matrix.CommentKeys))));
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
export function
|
|
456
|
-
|
|
455
|
+
export function SparseTable_GetEmptyComments_3ECCA699(matrix) {
|
|
456
|
+
const collection = map_2((key) => Comment$.create(key), matrix.CommentKeys);
|
|
457
|
+
return Array.from(collection);
|
|
457
458
|
}
|
|
458
459
|
|