@nfdi4plants/arctrl 1.2.0 → 2.0.0-alpha.1
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 +32 -11
- 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
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { Record } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { Value, Value_$reflection } from "./Value.js";
|
|
3
|
+
import { record_type, option_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
4
|
+
import { OntologyAnnotation, OntologyAnnotation_$reflection } from "../OntologyAnnotation.js";
|
|
5
|
+
import { defaultArg, unwrap, map } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
6
|
+
import { ActivePatterns_$007CRegex$007C_$007C } from "../Helper/Regex.js";
|
|
7
|
+
import { Option_fromValueWithDefault } from "../Helper/Collections.js";
|
|
8
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
9
|
+
|
|
10
|
+
export class Component extends Record {
|
|
11
|
+
constructor(ComponentValue, ComponentUnit, ComponentType) {
|
|
12
|
+
super();
|
|
13
|
+
this.ComponentValue = ComponentValue;
|
|
14
|
+
this.ComponentUnit = ComponentUnit;
|
|
15
|
+
this.ComponentType = ComponentType;
|
|
16
|
+
}
|
|
17
|
+
GetCategory() {
|
|
18
|
+
const this$ = this;
|
|
19
|
+
return this$.ComponentType;
|
|
20
|
+
}
|
|
21
|
+
GetAdditionalType() {
|
|
22
|
+
return "Component";
|
|
23
|
+
}
|
|
24
|
+
GetValue() {
|
|
25
|
+
const this$ = this;
|
|
26
|
+
return this$.ComponentValue;
|
|
27
|
+
}
|
|
28
|
+
GetUnit() {
|
|
29
|
+
const this$ = this;
|
|
30
|
+
return this$.ComponentUnit;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function Component_$reflection() {
|
|
35
|
+
return record_type("ARCtrl.Process.Component", [], Component, () => [["ComponentValue", option_type(Value_$reflection())], ["ComponentUnit", option_type(OntologyAnnotation_$reflection())], ["ComponentType", option_type(OntologyAnnotation_$reflection())]]);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function Component__get_ComponentName(this$) {
|
|
39
|
+
return map((v) => Component_composeName(v, this$.ComponentUnit), this$.ComponentValue);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function Component_make(value, unit, componentType) {
|
|
43
|
+
return new Component(value, unit, componentType);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function Component_create_4208F9FC(value, unit, componentType) {
|
|
47
|
+
return Component_make(value, unit, componentType);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function Component_get_empty() {
|
|
51
|
+
return Component_create_4208F9FC();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* This function creates a string containing full isa term triplet information about the component
|
|
56
|
+
*
|
|
57
|
+
* Components do not have enough fields in ISA-JSON to include all existing ontology term information.
|
|
58
|
+
* This function allows us, to add the same information as `Parameter`, `Characteristics`.., to `Component`.
|
|
59
|
+
* Without this string composition we loose the ontology information for the header value.
|
|
60
|
+
*/
|
|
61
|
+
export function Component_composeName(value, unit) {
|
|
62
|
+
if (value.tag === 0) {
|
|
63
|
+
const oa = value.fields[0];
|
|
64
|
+
return `${oa.NameText} (${oa.TermAccessionShort})`;
|
|
65
|
+
}
|
|
66
|
+
else if (unit != null) {
|
|
67
|
+
const u = unit;
|
|
68
|
+
return `${value.Text} ${u.NameText} (${u.TermAccessionShort})`;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
return `${value.Text}`;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* This function parses the given Component header string format into the ISA-JSON Component type
|
|
77
|
+
*
|
|
78
|
+
* Components do not have enough fields in ISA-JSON to include all existing ontology term information.
|
|
79
|
+
* This function allows us, to add the same information as `Parameter`, `Characteristics`.., to `Component`.
|
|
80
|
+
* Without this string composition we loose the ontology information for the header value.
|
|
81
|
+
*/
|
|
82
|
+
export function Component_decomposeName_Z721C83C5(name) {
|
|
83
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C("^(?<value>[\\d\\.]+) (?<unit>.+) \\((?<ontology>[^(]*:[^)]*)\\)", name);
|
|
84
|
+
if (activePatternResult != null) {
|
|
85
|
+
const unitr = activePatternResult;
|
|
86
|
+
let oa;
|
|
87
|
+
const tan = (unitr.groups && unitr.groups.ontology) || "";
|
|
88
|
+
oa = OntologyAnnotation.fromTermAnnotation(tan);
|
|
89
|
+
let v;
|
|
90
|
+
const value = (unitr.groups && unitr.groups.value) || "";
|
|
91
|
+
v = Value.fromString(value);
|
|
92
|
+
const u = (unitr.groups && unitr.groups.unit) || "";
|
|
93
|
+
oa.Name = u;
|
|
94
|
+
return [v, oa];
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
const activePatternResult_1 = ActivePatterns_$007CRegex$007C_$007C("^(?<value>[^\\(]+) \\((?<ontology>[^(]*:[^)]*)\\)", name);
|
|
98
|
+
if (activePatternResult_1 != null) {
|
|
99
|
+
const r = activePatternResult_1;
|
|
100
|
+
let oa_1;
|
|
101
|
+
const tan_1 = (r.groups && r.groups.ontology) || "";
|
|
102
|
+
oa_1 = OntologyAnnotation.fromTermAnnotation(tan_1);
|
|
103
|
+
const v_1 = (r.groups && r.groups.value) || "";
|
|
104
|
+
oa_1.Name = v_1;
|
|
105
|
+
return [new Value(0, [oa_1]), void 0];
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
const activePatternResult_2 = ActivePatterns_$007CRegex$007C_$007C("^(?<value>[^\\(\\)]+) \\(\\)", name);
|
|
109
|
+
if (activePatternResult_2 != null) {
|
|
110
|
+
const r_1 = activePatternResult_2;
|
|
111
|
+
return [new Value(0, [new OntologyAnnotation((r_1.groups && r_1.groups.value) || "")]), void 0];
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
return [new Value(3, [name]), void 0];
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Create a ISAJson Component from ISATab string entries
|
|
122
|
+
*/
|
|
123
|
+
export function Component_fromISAString_7C9A7CF8(name, term, source, accession, comments) {
|
|
124
|
+
let cType;
|
|
125
|
+
const v = OntologyAnnotation.create(unwrap(term), unwrap(source), unwrap(accession), unwrap(comments));
|
|
126
|
+
cType = Option_fromValueWithDefault(new OntologyAnnotation(), v);
|
|
127
|
+
if (name == null) {
|
|
128
|
+
return Component_make(void 0, void 0, cType);
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
const patternInput = Component_decomposeName_Z721C83C5(name);
|
|
132
|
+
return Component_make(Option_fromValueWithDefault(new Value(3, [""]), patternInput[0]), patternInput[1], cType);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Get ISATab string entries from an ISAJson Component object
|
|
138
|
+
*/
|
|
139
|
+
export function Component_toStringObject_Z685B8F25(c) {
|
|
140
|
+
let oa_1;
|
|
141
|
+
const value = {
|
|
142
|
+
TermAccessionNumber: "",
|
|
143
|
+
TermName: "",
|
|
144
|
+
TermSourceREF: "",
|
|
145
|
+
};
|
|
146
|
+
oa_1 = defaultArg(map((oa) => OntologyAnnotation.toStringObject(oa), c.ComponentType), value);
|
|
147
|
+
return [defaultArg(Component__get_ComponentName(c), ""), oa_1];
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function Component__get_NameText(this$) {
|
|
151
|
+
return defaultArg(map((c) => c.NameText, this$.ComponentType), "");
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Returns the ontology of the category of the Value as string
|
|
156
|
+
*/
|
|
157
|
+
export function Component__get_UnitText(this$) {
|
|
158
|
+
return defaultArg(map((c) => c.NameText, this$.ComponentUnit), "");
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function Component__get_ValueText(this$) {
|
|
162
|
+
return defaultArg(map((c) => c.Text, this$.ComponentValue), "");
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function Component__get_ValueWithUnitText(this$) {
|
|
166
|
+
const unit = map((oa) => oa.NameText, this$.ComponentUnit);
|
|
167
|
+
const v = Component__get_ValueText(this$);
|
|
168
|
+
if (unit == null) {
|
|
169
|
+
return v;
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
const u = unit;
|
|
173
|
+
return toText(printf("%s %s"))(v)(u);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function Component__MapCategory_658CFBF6(this$, f) {
|
|
178
|
+
return new Component(this$.ComponentValue, this$.ComponentUnit, map(f, this$.ComponentType));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function Component__SetCategory_ZDED3A0F(this$, c) {
|
|
182
|
+
return new Component(this$.ComponentValue, this$.ComponentUnit, c);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function Component_createAsPV(category, value, unit) {
|
|
186
|
+
return Component_create_4208F9FC(unwrap(value), unwrap(unit), unwrap(category));
|
|
187
|
+
}
|
|
188
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Record, toString } from "
|
|
2
|
-
import { printf, toText } from "
|
|
1
|
+
import { Record, toString } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
3
3
|
import { DataFile_$reflection, DataFile__get_AsString } from "./DataFile.js";
|
|
4
|
-
import { record_type, list_type, option_type, string_type } from "
|
|
5
|
-
import { Comment$_$reflection } from "
|
|
6
|
-
import { defaultArg } from "
|
|
4
|
+
import { record_type, list_type, option_type, string_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
5
|
+
import { Comment$_$reflection } from "../Comment.js";
|
|
6
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
7
7
|
|
|
8
8
|
export class Data extends Record {
|
|
9
9
|
constructor(ID, Name, DataType, Comments) {
|
|
@@ -34,19 +34,19 @@ export class Data extends Record {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export function Data_$reflection() {
|
|
37
|
-
return record_type("ARCtrl.
|
|
37
|
+
return record_type("ARCtrl.Process.Data", [], Data, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["DataType", option_type(DataFile_$reflection())], ["Comments", option_type(list_type(Comment$_$reflection()))]]);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export function Data_make(id, name, dataType, comments) {
|
|
41
41
|
return new Data(id, name, dataType, comments);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export function
|
|
44
|
+
export function Data_create_Z2AF98BBE(Id, Name, DataType, Comments) {
|
|
45
45
|
return Data_make(Id, Name, DataType, Comments);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export function Data_get_empty() {
|
|
49
|
-
return
|
|
49
|
+
return Data_create_Z2AF98BBE();
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
export function Data__get_NameAsString(this$) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Union } from "
|
|
2
|
-
import { union_type } from "
|
|
1
|
+
import { Union } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { union_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
3
3
|
|
|
4
4
|
export class DataFile extends Union {
|
|
5
5
|
constructor(tag, fields) {
|
|
@@ -13,7 +13,7 @@ export class DataFile extends Union {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export function DataFile_$reflection() {
|
|
16
|
-
return union_type("ARCtrl.
|
|
16
|
+
return union_type("ARCtrl.Process.DataFile", [], DataFile, () => [[], [], []]);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export function DataFile_get_RawDataFileJson() {
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { OntologyAnnotation_$reflection, OntologyAnnotation } from "../OntologyAnnotation.js";
|
|
2
|
+
import { map, defaultArg, unwrap } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
3
|
+
import { ResizeArray_map, Option_fromValueWithDefault } from "../Helper/Collections.js";
|
|
4
|
+
import { filter, singleton, append, exists, tryFind } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
5
|
+
import { equals } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
6
|
+
import { Record, toString } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
7
|
+
import { record_type, array_type, option_type, string_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
8
|
+
import { Comment$_$reflection } from "../Comment.js";
|
|
9
|
+
|
|
10
|
+
export class Factor extends Record {
|
|
11
|
+
constructor(Name, FactorType, Comments) {
|
|
12
|
+
super();
|
|
13
|
+
this.Name = Name;
|
|
14
|
+
this.FactorType = FactorType;
|
|
15
|
+
this.Comments = Comments;
|
|
16
|
+
}
|
|
17
|
+
static make(name, factorType, comments) {
|
|
18
|
+
return new Factor(name, factorType, comments);
|
|
19
|
+
}
|
|
20
|
+
static create(Name, FactorType, Comments) {
|
|
21
|
+
return Factor.make(Name, FactorType, Comments);
|
|
22
|
+
}
|
|
23
|
+
static get empty() {
|
|
24
|
+
return Factor.create();
|
|
25
|
+
}
|
|
26
|
+
static fromString(name, term, source, accession, comments) {
|
|
27
|
+
const oa = OntologyAnnotation.create(term, source, accession, unwrap(comments));
|
|
28
|
+
const name_1 = Option_fromValueWithDefault("", name);
|
|
29
|
+
const factorType = Option_fromValueWithDefault(new OntologyAnnotation(), oa);
|
|
30
|
+
return Factor.make(name_1, factorType, void 0);
|
|
31
|
+
}
|
|
32
|
+
static toStringObject(factor) {
|
|
33
|
+
const value = {
|
|
34
|
+
TermAccessionNumber: "",
|
|
35
|
+
TermName: "",
|
|
36
|
+
TermSourceREF: "",
|
|
37
|
+
};
|
|
38
|
+
return defaultArg(map((oa) => OntologyAnnotation.toStringObject(oa), factor.FactorType), value);
|
|
39
|
+
}
|
|
40
|
+
get NameText() {
|
|
41
|
+
const this$ = this;
|
|
42
|
+
return defaultArg(this$.Name, "");
|
|
43
|
+
}
|
|
44
|
+
MapCategory(f) {
|
|
45
|
+
const this$ = this;
|
|
46
|
+
return new Factor(this$.Name, map(f, this$.FactorType), this$.Comments);
|
|
47
|
+
}
|
|
48
|
+
SetCategory(c) {
|
|
49
|
+
const this$ = this;
|
|
50
|
+
return new Factor(this$.Name, c, this$.Comments);
|
|
51
|
+
}
|
|
52
|
+
static tryGetByName(name, factors) {
|
|
53
|
+
return tryFind((f) => equals(f.Name, name), factors);
|
|
54
|
+
}
|
|
55
|
+
static existsByName(name, factors) {
|
|
56
|
+
return exists((f) => equals(f.Name, name), factors);
|
|
57
|
+
}
|
|
58
|
+
static add(factors, factor) {
|
|
59
|
+
return append(factors, singleton(factor));
|
|
60
|
+
}
|
|
61
|
+
static removeByName(name, factors) {
|
|
62
|
+
return filter((f) => !equals(f.Name, name), factors);
|
|
63
|
+
}
|
|
64
|
+
static getComments(factor) {
|
|
65
|
+
return factor.Comments;
|
|
66
|
+
}
|
|
67
|
+
static mapComments(f, factor) {
|
|
68
|
+
return new Factor(factor.Name, factor.FactorType, map(f, factor.Comments));
|
|
69
|
+
}
|
|
70
|
+
static setComments(factor, comments) {
|
|
71
|
+
return new Factor(factor.Name, factor.FactorType, comments);
|
|
72
|
+
}
|
|
73
|
+
static getFactorType(factor) {
|
|
74
|
+
return factor.FactorType;
|
|
75
|
+
}
|
|
76
|
+
static mapFactorType(f, factor) {
|
|
77
|
+
return new Factor(factor.Name, map(f, factor.FactorType), factor.Comments);
|
|
78
|
+
}
|
|
79
|
+
static setFactorType(factor, factorType) {
|
|
80
|
+
return new Factor(factor.Name, factorType, factor.Comments);
|
|
81
|
+
}
|
|
82
|
+
static tryGetName(f) {
|
|
83
|
+
return f.Name;
|
|
84
|
+
}
|
|
85
|
+
static getNameAsString(f) {
|
|
86
|
+
return f.NameText;
|
|
87
|
+
}
|
|
88
|
+
static nameEqualsString(name, f) {
|
|
89
|
+
return f.NameText === name;
|
|
90
|
+
}
|
|
91
|
+
Copy() {
|
|
92
|
+
const this$ = this;
|
|
93
|
+
const comments = map((a) => ResizeArray_map((c) => c.Copy(), a), this$.Comments);
|
|
94
|
+
return Factor.make(this$.Name, this$.FactorType, comments);
|
|
95
|
+
}
|
|
96
|
+
Print() {
|
|
97
|
+
const this$ = this;
|
|
98
|
+
return toString(this$);
|
|
99
|
+
}
|
|
100
|
+
PrintCompact() {
|
|
101
|
+
const this$ = this;
|
|
102
|
+
return "OA " + this$.NameText;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function Factor_$reflection() {
|
|
107
|
+
return record_type("ARCtrl.Process.Factor", [], Factor, () => [["Name", option_type(string_type)], ["FactorType", option_type(OntologyAnnotation_$reflection())], ["Comments", option_type(array_type(Comment$_$reflection()))]]);
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Record, toString } from "
|
|
2
|
-
import { defaultArg, map } from "
|
|
3
|
-
import { record_type, option_type, string_type } from "
|
|
1
|
+
import { Record, toString } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { unwrap, defaultArg, bind, map } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
3
|
+
import { record_type, option_type, string_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
4
4
|
import { Factor, Factor_$reflection } from "./Factor.js";
|
|
5
5
|
import { Value_$reflection } from "./Value.js";
|
|
6
|
-
import { OntologyAnnotation_$reflection } from "
|
|
7
|
-
import { int32ToString } from "
|
|
8
|
-
import { printf, toText } from "
|
|
6
|
+
import { OntologyAnnotation_$reflection } from "../OntologyAnnotation.js";
|
|
7
|
+
import { int32ToString } from "../../fable_modules/fable-library-js.4.16.0/Util.js";
|
|
8
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
9
9
|
|
|
10
10
|
export class FactorValue extends Record {
|
|
11
11
|
constructor(ID, Category, Value, Unit) {
|
|
@@ -35,22 +35,37 @@ export class FactorValue extends Record {
|
|
|
35
35
|
}, this$.Value);
|
|
36
36
|
return (category == null) ? ((value == null) ? "" : ((value_2 = value, value_2))) : ((value == null) ? ((category_2 = category, (category_2 + ":") + "No Value")) : ((category_1 = category, (value_1 = value, (category_1 + ":") + value_1))));
|
|
37
37
|
}
|
|
38
|
+
GetCategory() {
|
|
39
|
+
const this$ = this;
|
|
40
|
+
return bind((f) => f.FactorType, this$.Category);
|
|
41
|
+
}
|
|
42
|
+
GetValue() {
|
|
43
|
+
const this$ = this;
|
|
44
|
+
return this$.Value;
|
|
45
|
+
}
|
|
46
|
+
GetUnit() {
|
|
47
|
+
const this$ = this;
|
|
48
|
+
return this$.Unit;
|
|
49
|
+
}
|
|
50
|
+
GetAdditionalType() {
|
|
51
|
+
return "FactorValue";
|
|
52
|
+
}
|
|
38
53
|
}
|
|
39
54
|
|
|
40
55
|
export function FactorValue_$reflection() {
|
|
41
|
-
return record_type("ARCtrl.
|
|
56
|
+
return record_type("ARCtrl.Process.FactorValue", [], FactorValue, () => [["ID", option_type(string_type)], ["Category", option_type(Factor_$reflection())], ["Value", option_type(Value_$reflection())], ["Unit", option_type(OntologyAnnotation_$reflection())]]);
|
|
42
57
|
}
|
|
43
58
|
|
|
44
59
|
export function FactorValue_make(id, category, value, unit) {
|
|
45
60
|
return new FactorValue(id, category, value, unit);
|
|
46
61
|
}
|
|
47
62
|
|
|
48
|
-
export function
|
|
63
|
+
export function FactorValue_create_29259B2C(Id, Category, Value, Unit) {
|
|
49
64
|
return FactorValue_make(Id, Category, Value, Unit);
|
|
50
65
|
}
|
|
51
66
|
|
|
52
67
|
export function FactorValue_get_empty() {
|
|
53
|
-
return
|
|
68
|
+
return FactorValue_create_29259B2C();
|
|
54
69
|
}
|
|
55
70
|
|
|
56
71
|
export function FactorValue__get_ValueText(this$) {
|
|
@@ -84,19 +99,19 @@ export function FactorValue__get_NameText(this$) {
|
|
|
84
99
|
return defaultArg(map((factor) => factor.NameText, this$.Category), "");
|
|
85
100
|
}
|
|
86
101
|
|
|
87
|
-
export function
|
|
102
|
+
export function FactorValue__MapCategory_658CFBF6(this$, f) {
|
|
88
103
|
return new FactorValue(this$.ID, map((p) => p.MapCategory(f), this$.Category), this$.Value, this$.Unit);
|
|
89
104
|
}
|
|
90
105
|
|
|
91
|
-
export function
|
|
106
|
+
export function FactorValue__SetCategory_ZDED3A0F(this$, c) {
|
|
92
107
|
let matchValue, p;
|
|
93
|
-
return new FactorValue(this$.ID, (matchValue = this$.Category, (matchValue == null) ? Factor.create(void 0,
|
|
108
|
+
return new FactorValue(this$.ID, (matchValue = this$.Category, (matchValue == null) ? Factor.create(void 0, c) : ((p = matchValue, p.SetCategory(c)))), this$.Value, this$.Unit);
|
|
94
109
|
}
|
|
95
110
|
|
|
96
111
|
/**
|
|
97
112
|
* Returns the name of the factor value as string
|
|
98
113
|
*/
|
|
99
|
-
export function
|
|
114
|
+
export function FactorValue_getNameAsString_7105C732(fv) {
|
|
100
115
|
return FactorValue__get_NameText(fv);
|
|
101
116
|
}
|
|
102
117
|
|
|
@@ -107,3 +122,7 @@ export function FactorValue_nameEqualsString(name, fv) {
|
|
|
107
122
|
return FactorValue__get_NameText(fv) === name;
|
|
108
123
|
}
|
|
109
124
|
|
|
125
|
+
export function FactorValue_createAsPV(category, value, unit) {
|
|
126
|
+
return FactorValue_create_29259B2C(void 0, unwrap(map((c) => Factor.create(void 0, c), category)), unwrap(value), unwrap(unit));
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Record, toString } from "
|
|
2
|
-
import { choose, empty, length } from "
|
|
3
|
-
import { defaultArg } from "
|
|
4
|
-
import { printf, toText } from "
|
|
1
|
+
import { Record, toString } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { choose, empty, length } from "../../fable_modules/fable-library-js.4.16.0/List.js";
|
|
3
|
+
import { defaultArg } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
4
|
+
import { printf, toText } from "../../fable_modules/fable-library-js.4.16.0/String.js";
|
|
5
5
|
import { MaterialType_$reflection, MaterialType__get_AsString } from "./MaterialType.js";
|
|
6
|
-
import { record_type, list_type, option_type, string_type } from "
|
|
6
|
+
import { record_type, list_type, option_type, string_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
7
7
|
import { MaterialAttributeValue_$reflection } from "./MaterialAttributeValue.js";
|
|
8
8
|
|
|
9
9
|
export class Material extends Record {
|
|
@@ -37,26 +37,26 @@ export class Material extends Record {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export function Material_$reflection() {
|
|
40
|
-
return record_type("ARCtrl.
|
|
40
|
+
return record_type("ARCtrl.Process.Material", [], Material, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["MaterialType", option_type(MaterialType_$reflection())], ["Characteristics", option_type(list_type(MaterialAttributeValue_$reflection()))], ["DerivesFrom", option_type(list_type(Material_$reflection()))]]);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export function Material_make(id, name, materialType, characteristics, derivesFrom) {
|
|
44
44
|
return new Material(id, name, materialType, characteristics, derivesFrom);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export function
|
|
47
|
+
export function Material_create_Z66909A6D(Id, Name, MaterialType, Characteristics, DerivesFrom) {
|
|
48
48
|
return Material_make(Id, Name, MaterialType, Characteristics, DerivesFrom);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export function Material_get_empty() {
|
|
52
|
-
return
|
|
52
|
+
return Material_create_Z66909A6D();
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export function Material__get_NameText(this$) {
|
|
56
56
|
return defaultArg(this$.Name, "");
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export function
|
|
59
|
+
export function Material_getUnits_ZBCDEB61(m) {
|
|
60
60
|
return choose((c) => c.Unit, defaultArg(m.Characteristics, empty()));
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Record, toString } from "
|
|
2
|
-
import { record_type, option_type, string_type } from "
|
|
3
|
-
import { OntologyAnnotation, OntologyAnnotation_$reflection } from "
|
|
4
|
-
import { bind, map, defaultArg, unwrap } from "
|
|
5
|
-
import { Option_fromValueWithDefault } from "../Helper.js";
|
|
1
|
+
import { Record, toString } from "../../fable_modules/fable-library-js.4.16.0/Types.js";
|
|
2
|
+
import { record_type, option_type, string_type } from "../../fable_modules/fable-library-js.4.16.0/Reflection.js";
|
|
3
|
+
import { OntologyAnnotation, OntologyAnnotation_$reflection } from "../OntologyAnnotation.js";
|
|
4
|
+
import { bind, map, defaultArg, unwrap } from "../../fable_modules/fable-library-js.4.16.0/Option.js";
|
|
5
|
+
import { Option_fromValueWithDefault } from "../Helper/Collections.js";
|
|
6
6
|
|
|
7
7
|
export class MaterialAttribute extends Record {
|
|
8
8
|
constructor(ID, CharacteristicType) {
|
|
@@ -21,39 +21,39 @@ export class MaterialAttribute extends Record {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export function MaterialAttribute_$reflection() {
|
|
24
|
-
return record_type("ARCtrl.
|
|
24
|
+
return record_type("ARCtrl.Process.MaterialAttribute", [], MaterialAttribute, () => [["ID", option_type(string_type)], ["CharacteristicType", option_type(OntologyAnnotation_$reflection())]]);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export function MaterialAttribute_make(id, characteristicType) {
|
|
28
28
|
return new MaterialAttribute(id, characteristicType);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export function
|
|
31
|
+
export function MaterialAttribute_create_A220A8A(Id, CharacteristicType) {
|
|
32
32
|
return MaterialAttribute_make(Id, CharacteristicType);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export function MaterialAttribute_get_empty() {
|
|
36
|
-
return
|
|
36
|
+
return MaterialAttribute_create_A220A8A();
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Create a ISAJson MaterialAttribute from ISATab string entries
|
|
41
41
|
*/
|
|
42
|
-
export function
|
|
43
|
-
const oa = OntologyAnnotation.
|
|
44
|
-
return MaterialAttribute_make(void 0, Option_fromValueWithDefault(OntologyAnnotation
|
|
42
|
+
export function MaterialAttribute_fromString_5980DC03(term, source, accession, comments) {
|
|
43
|
+
const oa = OntologyAnnotation.create(term, source, accession, unwrap(comments));
|
|
44
|
+
return MaterialAttribute_make(void 0, Option_fromValueWithDefault(new OntologyAnnotation(), oa));
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Get ISATab string entries from an ISAJson MaterialAttribute object
|
|
49
49
|
*/
|
|
50
|
-
export function
|
|
50
|
+
export function MaterialAttribute_toStringObject_Z1E3B85DD(ma) {
|
|
51
51
|
const value = {
|
|
52
52
|
TermAccessionNumber: "",
|
|
53
53
|
TermName: "",
|
|
54
54
|
TermSourceREF: "",
|
|
55
55
|
};
|
|
56
|
-
return defaultArg(map((oa) => OntologyAnnotation.
|
|
56
|
+
return defaultArg(map((oa) => OntologyAnnotation.toStringObject(oa), ma.CharacteristicType), value);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -70,25 +70,25 @@ export function MaterialAttribute__get_TryNameText(this$) {
|
|
|
70
70
|
return bind((oa) => oa.Name, this$.CharacteristicType);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export function
|
|
73
|
+
export function MaterialAttribute__MapCategory_658CFBF6(this$, f) {
|
|
74
74
|
return new MaterialAttribute(this$.ID, map(f, this$.CharacteristicType));
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
export function
|
|
77
|
+
export function MaterialAttribute__SetCategory_ZDED3A0F(this$, c) {
|
|
78
78
|
return new MaterialAttribute(this$.ID, c);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* Returns the name of the characteristic as string if it exists
|
|
83
83
|
*/
|
|
84
|
-
export function
|
|
84
|
+
export function MaterialAttribute_tryGetNameText_Z1E3B85DD(ma) {
|
|
85
85
|
return MaterialAttribute__get_NameText(ma);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* Returns the name of the characteristic as string
|
|
90
90
|
*/
|
|
91
|
-
export function
|
|
91
|
+
export function MaterialAttribute_getNameText_Z1E3B85DD(ma) {
|
|
92
92
|
return MaterialAttribute__get_TryNameText(ma);
|
|
93
93
|
}
|
|
94
94
|
|