@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,111 +0,0 @@
|
|
|
1
|
-
import { fold } from "../../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
2
|
-
import { Protocol_create_Z7DFD6E67, Protocol_addComponent, Protocol_addParameter, Protocol_setName, Protocol_setDescription, Protocol_setUri, Protocol_setVersion, Protocol_setProtocolType } from "../JsonTypes/Protocol.js";
|
|
3
|
-
import { ProtocolParameter } from "../JsonTypes/ProtocolParameter.js";
|
|
4
|
-
import { Component_create_61502994 } from "../JsonTypes/Component.js";
|
|
5
|
-
import { Value } from "../JsonTypes/Value.js";
|
|
6
|
-
|
|
7
|
-
export function toProtocol(tableName, row) {
|
|
8
|
-
return fold((p, hc) => {
|
|
9
|
-
let matchResult, oa, v, v_1, v_2, v_3, oa_1, oa_2, unit, v_4, oa_3, t;
|
|
10
|
-
switch (hc[0].tag) {
|
|
11
|
-
case 4: {
|
|
12
|
-
if (hc[1].tag === 0) {
|
|
13
|
-
matchResult = 0;
|
|
14
|
-
oa = hc[1].fields[0];
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
matchResult = 8;
|
|
18
|
-
}
|
|
19
|
-
break;
|
|
20
|
-
}
|
|
21
|
-
case 7: {
|
|
22
|
-
if (hc[1].tag === 1) {
|
|
23
|
-
matchResult = 1;
|
|
24
|
-
v = hc[1].fields[0];
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
matchResult = 8;
|
|
28
|
-
}
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
case 6: {
|
|
32
|
-
if (hc[1].tag === 1) {
|
|
33
|
-
matchResult = 2;
|
|
34
|
-
v_1 = hc[1].fields[0];
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
matchResult = 8;
|
|
38
|
-
}
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
case 5: {
|
|
42
|
-
if (hc[1].tag === 1) {
|
|
43
|
-
matchResult = 3;
|
|
44
|
-
v_2 = hc[1].fields[0];
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
matchResult = 8;
|
|
48
|
-
}
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
case 8: {
|
|
52
|
-
if (hc[1].tag === 1) {
|
|
53
|
-
matchResult = 4;
|
|
54
|
-
v_3 = hc[1].fields[0];
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
matchResult = 8;
|
|
58
|
-
}
|
|
59
|
-
break;
|
|
60
|
-
}
|
|
61
|
-
case 3: {
|
|
62
|
-
matchResult = 5;
|
|
63
|
-
oa_1 = hc[0].fields[0];
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
case 0: {
|
|
67
|
-
switch (hc[1].tag) {
|
|
68
|
-
case 2: {
|
|
69
|
-
matchResult = 6;
|
|
70
|
-
oa_2 = hc[0].fields[0];
|
|
71
|
-
unit = hc[1].fields[1];
|
|
72
|
-
v_4 = hc[1].fields[0];
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
case 0: {
|
|
76
|
-
matchResult = 7;
|
|
77
|
-
oa_3 = hc[0].fields[0];
|
|
78
|
-
t = hc[1].fields[0];
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
default:
|
|
82
|
-
matchResult = 8;
|
|
83
|
-
}
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
default:
|
|
87
|
-
matchResult = 8;
|
|
88
|
-
}
|
|
89
|
-
switch (matchResult) {
|
|
90
|
-
case 0:
|
|
91
|
-
return Protocol_setProtocolType(p, oa);
|
|
92
|
-
case 1:
|
|
93
|
-
return Protocol_setVersion(p, v);
|
|
94
|
-
case 2:
|
|
95
|
-
return Protocol_setUri(p, v_1);
|
|
96
|
-
case 3:
|
|
97
|
-
return Protocol_setDescription(p, v_2);
|
|
98
|
-
case 4:
|
|
99
|
-
return Protocol_setName(p, v_3);
|
|
100
|
-
case 5:
|
|
101
|
-
return Protocol_addParameter(ProtocolParameter.create(void 0, oa_1), p);
|
|
102
|
-
case 6:
|
|
103
|
-
return Protocol_addComponent(Component_create_61502994(void 0, Value.fromString(v_4), unit, oa_2), p);
|
|
104
|
-
case 7:
|
|
105
|
-
return Protocol_addComponent(Component_create_61502994(void 0, new Value(0, [t]), void 0, oa_3), p);
|
|
106
|
-
default:
|
|
107
|
-
return p;
|
|
108
|
-
}
|
|
109
|
-
}, Protocol_create_Z7DFD6E67(void 0, tableName), row);
|
|
110
|
-
}
|
|
111
|
-
|
package/ISA/ISA/Builder/Types.js
DELETED
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
import { Union } from "../../../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
2
|
-
import { list_type, union_type, string_type } from "../../../fable_modules/fable-library-js.4.13.0/Reflection.js";
|
|
3
|
-
import { OntologyAnnotation_$reflection } from "../JsonTypes/OntologyAnnotation.js";
|
|
4
|
-
import { Protocol_get_empty, Protocol } from "../JsonTypes/Protocol.js";
|
|
5
|
-
import { ProcessParameterValue_$reflection } from "../JsonTypes/ProcessParameterValue.js";
|
|
6
|
-
import { MaterialAttributeValue_$reflection } from "../JsonTypes/MaterialAttributeValue.js";
|
|
7
|
-
import { FactorValue_$reflection } from "../JsonTypes/FactorValue.js";
|
|
8
|
-
import { map as map_1, exists, fold, singleton, empty, append } from "../../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
9
|
-
import { map, value as value_4, defaultArg } from "../../../fable_modules/fable-library-js.4.13.0/Option.js";
|
|
10
|
-
import { Process_get_empty, Process } from "../JsonTypes/Process.js";
|
|
11
|
-
import { Assay_get_empty, Assay } from "../JsonTypes/Assay.js";
|
|
12
|
-
import { printf, toFail } from "../../../fable_modules/fable-library-js.4.13.0/String.js";
|
|
13
|
-
import { Study } from "../JsonTypes/Study.js";
|
|
14
|
-
|
|
15
|
-
export class ProtocolTransformation extends Union {
|
|
16
|
-
constructor(tag, fields) {
|
|
17
|
-
super();
|
|
18
|
-
this.tag = tag;
|
|
19
|
-
this.fields = fields;
|
|
20
|
-
}
|
|
21
|
-
cases() {
|
|
22
|
-
return ["AddName", "AddProtocolType", "AddDescription"];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function ProtocolTransformation_$reflection() {
|
|
27
|
-
return union_type("ARCtrl.ISA.Builder.ProtocolTransformation", [], ProtocolTransformation, () => [[["Item", string_type]], [["Item", OntologyAnnotation_$reflection()]], [["Item", string_type]]]);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function ProtocolTransformation__Transform_Z5F51792E(this$, p) {
|
|
31
|
-
switch (this$.tag) {
|
|
32
|
-
case 1:
|
|
33
|
-
return new Protocol(p.ID, p.Name, this$.fields[0], p.Description, p.Uri, p.Version, p.Parameters, p.Components, p.Comments);
|
|
34
|
-
case 2:
|
|
35
|
-
return new Protocol(p.ID, p.Name, p.ProtocolType, this$.fields[0], p.Uri, p.Version, p.Parameters, p.Components, p.Comments);
|
|
36
|
-
default:
|
|
37
|
-
return new Protocol(p.ID, this$.fields[0], p.ProtocolType, p.Description, p.Uri, p.Version, p.Parameters, p.Components, p.Comments);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function ProtocolTransformation__Equals_Z5F51792E(this$, p) {
|
|
42
|
-
const matchValue = p.Name;
|
|
43
|
-
let matchResult, n_1, n$0027_1;
|
|
44
|
-
if (this$.tag === 0) {
|
|
45
|
-
if (matchValue != null) {
|
|
46
|
-
if (this$.fields[0] === matchValue) {
|
|
47
|
-
matchResult = 0;
|
|
48
|
-
n_1 = this$.fields[0];
|
|
49
|
-
n$0027_1 = matchValue;
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
matchResult = 1;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
matchResult = 1;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
matchResult = 1;
|
|
61
|
-
}
|
|
62
|
-
switch (matchResult) {
|
|
63
|
-
case 0:
|
|
64
|
-
return true;
|
|
65
|
-
default:
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export class ProcessTransformation extends Union {
|
|
71
|
-
constructor(tag, fields) {
|
|
72
|
-
super();
|
|
73
|
-
this.tag = tag;
|
|
74
|
-
this.fields = fields;
|
|
75
|
-
}
|
|
76
|
-
cases() {
|
|
77
|
-
return ["AddName", "AddParameter", "AddCharacteristic", "AddFactor", "AddProtocol"];
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function ProcessTransformation_$reflection() {
|
|
82
|
-
return union_type("ARCtrl.ISA.Builder.ProcessTransformation", [], ProcessTransformation, () => [[["Item", string_type]], [["Item", ProcessParameterValue_$reflection()]], [["Item", MaterialAttributeValue_$reflection()]], [["Item", FactorValue_$reflection()]], [["Item", list_type(ProtocolTransformation_$reflection())]]]);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function ProcessTransformation__Transform_716E708F(this$, p) {
|
|
86
|
-
let pro;
|
|
87
|
-
switch (this$.tag) {
|
|
88
|
-
case 1: {
|
|
89
|
-
const pv = this$.fields[0];
|
|
90
|
-
const parameterValues = append(defaultArg(p.ParameterValues, empty()), singleton(pv));
|
|
91
|
-
return new Process(p.ID, p.Name, (pro = defaultArg(p.ExecutesProtocol, Protocol_get_empty()), new Protocol(pro.ID, pro.Name, pro.ProtocolType, pro.Description, pro.Uri, pro.Version, append(defaultArg(pro.Parameters, empty()), singleton(value_4(pv.Category))), pro.Components, pro.Comments)), parameterValues, p.Performer, p.Date, p.PreviousProcess, p.NextProcess, p.Inputs, p.Outputs, p.Comments);
|
|
92
|
-
}
|
|
93
|
-
case 2:
|
|
94
|
-
return new Process(p.ID, p.Name, p.ExecutesProtocol, p.ParameterValues, p.Performer, p.Date, p.PreviousProcess, p.NextProcess, map((i) => i, p.Inputs), p.Outputs, p.Comments);
|
|
95
|
-
case 3:
|
|
96
|
-
return new Process(p.ID, p.Name, p.ExecutesProtocol, p.ParameterValues, p.Performer, p.Date, p.PreviousProcess, p.NextProcess, p.Inputs, map((i_1) => i_1, p.Outputs), p.Comments);
|
|
97
|
-
case 4:
|
|
98
|
-
return new Process(p.ID, p.Name, fold((pro_2, trans) => ProtocolTransformation__Transform_Z5F51792E(trans, pro_2), defaultArg(p.ExecutesProtocol, Protocol_get_empty()), this$.fields[0]), p.ParameterValues, p.Performer, p.Date, p.PreviousProcess, p.NextProcess, p.Inputs, p.Outputs, p.Comments);
|
|
99
|
-
default:
|
|
100
|
-
return new Process(p.ID, this$.fields[0], p.ExecutesProtocol, p.ParameterValues, p.Performer, p.Date, p.PreviousProcess, p.NextProcess, p.Inputs, p.Outputs, p.Comments);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function ProcessTransformation__Equals_716E708F(this$, p) {
|
|
105
|
-
const matchValue = p.Name;
|
|
106
|
-
let matchResult, n_1, n$0027_1;
|
|
107
|
-
if (this$.tag === 0) {
|
|
108
|
-
if (matchValue != null) {
|
|
109
|
-
if (this$.fields[0] === matchValue) {
|
|
110
|
-
matchResult = 0;
|
|
111
|
-
n_1 = this$.fields[0];
|
|
112
|
-
n$0027_1 = matchValue;
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
matchResult = 1;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
matchResult = 1;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
matchResult = 1;
|
|
124
|
-
}
|
|
125
|
-
switch (matchResult) {
|
|
126
|
-
case 0:
|
|
127
|
-
return true;
|
|
128
|
-
default:
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
export class AssayTransformation extends Union {
|
|
134
|
-
constructor(tag, fields) {
|
|
135
|
-
super();
|
|
136
|
-
this.tag = tag;
|
|
137
|
-
this.fields = fields;
|
|
138
|
-
}
|
|
139
|
-
cases() {
|
|
140
|
-
return ["AddFileName", "AddParameter", "AddCharacteristic", "AddFactor", "AddProcess"];
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export function AssayTransformation_$reflection() {
|
|
145
|
-
return union_type("ARCtrl.ISA.Builder.AssayTransformation", [], AssayTransformation, () => [[["Item", string_type]], [["Item", ProcessParameterValue_$reflection()]], [["Item", MaterialAttributeValue_$reflection()]], [["Item", FactorValue_$reflection()]], [["Item", list_type(ProcessTransformation_$reflection())]]]);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export function AssayTransformation__Transform_722A269D(this$, a) {
|
|
149
|
-
switch (this$.tag) {
|
|
150
|
-
case 4: {
|
|
151
|
-
const pts = this$.fields[0];
|
|
152
|
-
const processes = defaultArg(a.ProcessSequence, empty());
|
|
153
|
-
return new Assay(a.ID, a.FileName, a.MeasurementType, a.TechnologyType, a.TechnologyPlatform, a.DataFiles, a.Materials, a.CharacteristicCategories, a.UnitCategories, exists((p) => exists((trans) => ProcessTransformation__Equals_716E708F(trans, p), pts), processes) ? map_1((p_1) => {
|
|
154
|
-
if (exists((trans_1) => ProcessTransformation__Equals_716E708F(trans_1, p_1), pts)) {
|
|
155
|
-
return fold((p_2, trans_2) => ProcessTransformation__Transform_716E708F(trans_2, p_2), p_1, pts);
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
return p_1;
|
|
159
|
-
}
|
|
160
|
-
}, processes) : append(processes, singleton(fold((p_3, trans_3) => ProcessTransformation__Transform_716E708F(trans_3, p_3), Process_get_empty(), pts))), a.Comments);
|
|
161
|
-
}
|
|
162
|
-
case 0:
|
|
163
|
-
return new Assay(a.ID, this$.fields[0], a.MeasurementType, a.TechnologyType, a.TechnologyPlatform, a.DataFiles, a.Materials, a.CharacteristicCategories, a.UnitCategories, a.ProcessSequence, a.Comments);
|
|
164
|
-
default:
|
|
165
|
-
return toFail(printf("Builder failed: Case %O Not implemented"))(this$);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export function AssayTransformation__Equals_722A269D(this$, a) {
|
|
170
|
-
const matchValue = a.FileName;
|
|
171
|
-
let matchResult, n_1, n$0027_1;
|
|
172
|
-
if (this$.tag === 0) {
|
|
173
|
-
if (matchValue != null) {
|
|
174
|
-
if (this$.fields[0] === matchValue) {
|
|
175
|
-
matchResult = 0;
|
|
176
|
-
n_1 = this$.fields[0];
|
|
177
|
-
n$0027_1 = matchValue;
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
matchResult = 1;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
matchResult = 1;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
matchResult = 1;
|
|
189
|
-
}
|
|
190
|
-
switch (matchResult) {
|
|
191
|
-
case 0:
|
|
192
|
-
return true;
|
|
193
|
-
default:
|
|
194
|
-
return false;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export class StudyTransformation extends Union {
|
|
199
|
-
constructor(tag, fields) {
|
|
200
|
-
super();
|
|
201
|
-
this.tag = tag;
|
|
202
|
-
this.fields = fields;
|
|
203
|
-
}
|
|
204
|
-
cases() {
|
|
205
|
-
return ["AddParameter", "AddCharacteristic", "AddFactor", "AddProcess", "AddAssay"];
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export function StudyTransformation_$reflection() {
|
|
210
|
-
return union_type("ARCtrl.ISA.Builder.StudyTransformation", [], StudyTransformation, () => [[["Item", ProcessParameterValue_$reflection()]], [["Item", MaterialAttributeValue_$reflection()]], [["Item", FactorValue_$reflection()]], [["Item", list_type(ProcessTransformation_$reflection())]], [["Item", list_type(AssayTransformation_$reflection())]]]);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export function StudyTransformation__Transform_7312BC8B(this$, s) {
|
|
214
|
-
switch (this$.tag) {
|
|
215
|
-
case 3: {
|
|
216
|
-
const pts = this$.fields[0];
|
|
217
|
-
const processes = defaultArg(s.ProcessSequence, empty());
|
|
218
|
-
return new Study(s.ID, s.FileName, s.Identifier, s.Title, s.Description, s.SubmissionDate, s.PublicReleaseDate, s.Publications, s.Contacts, s.StudyDesignDescriptors, s.Protocols, s.Materials, exists((p) => exists((trans) => ProcessTransformation__Equals_716E708F(trans, p), pts), processes) ? map_1((p_1) => {
|
|
219
|
-
if (exists((trans_1) => ProcessTransformation__Equals_716E708F(trans_1, p_1), pts)) {
|
|
220
|
-
return fold((p_2, trans_2) => ProcessTransformation__Transform_716E708F(trans_2, p_2), p_1, pts);
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
return p_1;
|
|
224
|
-
}
|
|
225
|
-
}, processes) : append(processes, singleton(fold((p_3, trans_3) => ProcessTransformation__Transform_716E708F(trans_3, p_3), Process_get_empty(), pts))), s.Assays, s.Factors, s.CharacteristicCategories, s.UnitCategories, s.Comments);
|
|
226
|
-
}
|
|
227
|
-
case 4: {
|
|
228
|
-
const ats = this$.fields[0];
|
|
229
|
-
const assays = defaultArg(s.Assays, empty());
|
|
230
|
-
return new Study(s.ID, s.FileName, s.Identifier, s.Title, s.Description, s.SubmissionDate, s.PublicReleaseDate, s.Publications, s.Contacts, s.StudyDesignDescriptors, s.Protocols, s.Materials, s.ProcessSequence, exists((a) => exists((trans_4) => AssayTransformation__Equals_722A269D(trans_4, a), ats), assays) ? map_1((a_1) => {
|
|
231
|
-
if (exists((trans_5) => AssayTransformation__Equals_722A269D(trans_5, a_1), ats)) {
|
|
232
|
-
return fold((a_2, trans_6) => AssayTransformation__Transform_722A269D(trans_6, a_2), a_1, ats);
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
return a_1;
|
|
236
|
-
}
|
|
237
|
-
}, assays) : append(assays, singleton(fold((a_3, trans_7) => AssayTransformation__Transform_722A269D(trans_7, a_3), Assay_get_empty(), ats))), s.Factors, s.CharacteristicCategories, s.UnitCategories, s.Comments);
|
|
238
|
-
}
|
|
239
|
-
default:
|
|
240
|
-
return toFail(printf("Builder failed: Case %O Not implemented"))(this$);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
package/ISA/ISA/Fable.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { toString } from "../../fable_modules/fable-library-js.4.13.0/Types.js";
|
|
2
|
-
import { map, reduce, append } from "../../fable_modules/fable-library-js.4.13.0/Seq.js";
|
|
3
|
-
import { append as append_1 } from "../../fable_modules/fable-library-js.4.13.0/List.js";
|
|
4
|
-
import { append as append_2 } from "../../fable_modules/fable-library-js.4.13.0/Array.js";
|
|
5
|
-
import { Array_distinct, List_distinct, distinct } from "../../fable_modules/fable-library-js.4.13.0/Seq2.js";
|
|
6
|
-
import { identityHash, structuralHash, equals } from "../../fable_modules/fable-library-js.4.13.0/Util.js";
|
|
7
|
-
|
|
8
|
-
export function isList_python(l1) {
|
|
9
|
-
return (to_string(type(l1))).indexOf("FSharpList") >= 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export function isSeq_python(l1) {
|
|
13
|
-
const t = to_string(type(l1));
|
|
14
|
-
if (t.indexOf("Enumerator_Seq") >= 0) {
|
|
15
|
-
return true;
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return t.indexOf("Enumerable") >= 0;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export function isArray_python(l1) {
|
|
23
|
-
return (to_string(type(l1))).indexOf("list") >= 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function isMap_python(l1) {
|
|
27
|
-
return (to_string(type(l1))).indexOf("FSharpMap") >= 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function isNone_python(l1) {
|
|
31
|
-
let copyOfStruct;
|
|
32
|
-
return ((copyOfStruct = l1, toString(copyOfStruct))) === "None";
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export function isMap_json(l1) {
|
|
36
|
-
let copyOfStruct;
|
|
37
|
-
return ((copyOfStruct = l1, toString(copyOfStruct))).indexOf("map [") === 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function isSeq_json(l1) {
|
|
41
|
-
let copyOfStruct;
|
|
42
|
-
return ((copyOfStruct = l1, toString(copyOfStruct))).indexOf("seq [") === 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function isList_json(l1) {
|
|
46
|
-
let s;
|
|
47
|
-
let copyOfStruct = l1;
|
|
48
|
-
s = toString(copyOfStruct);
|
|
49
|
-
if (s.indexOf("[") === 0) {
|
|
50
|
-
return !(s.indexOf("seq [") === 0);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function isNone_json(l1) {
|
|
58
|
-
return l1 == null;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function isList_generic(l1) {
|
|
62
|
-
return isList_json(l1);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function isSeq_generic(l1) {
|
|
66
|
-
return isSeq_json(l1);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function isArray_generic(l1) {
|
|
70
|
-
return isList_json(l1);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function isMap_generic(l1) {
|
|
74
|
-
return isMap_json(l1);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function isNone_generic(l1) {
|
|
78
|
-
return isNone_json(l1);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function append_generic(l1, l2) {
|
|
82
|
-
if (isNone_generic(l2)) {
|
|
83
|
-
return l1;
|
|
84
|
-
}
|
|
85
|
-
else if (isSeq_generic(l1)) {
|
|
86
|
-
return append(l1, l2);
|
|
87
|
-
}
|
|
88
|
-
else if (isList_generic(l1)) {
|
|
89
|
-
return append_1(l1, l2);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
return append_2(l1, l2);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export function distinct_generic(l1) {
|
|
97
|
-
if (isSeq_generic(l1)) {
|
|
98
|
-
return distinct(l1, {
|
|
99
|
-
Equals: equals,
|
|
100
|
-
GetHashCode: structuralHash,
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
else if (isList_generic(l1)) {
|
|
104
|
-
return List_distinct(l1, {
|
|
105
|
-
Equals: equals,
|
|
106
|
-
GetHashCode: structuralHash,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return Array_distinct(l1, {
|
|
111
|
-
Equals: equals,
|
|
112
|
-
GetHashCode: structuralHash,
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export function hashSeq(s) {
|
|
118
|
-
return reduce((a, b) => (a + b), map((x) => {
|
|
119
|
-
let copyOfStruct = x;
|
|
120
|
-
return identityHash(copyOfStruct) | 0;
|
|
121
|
-
}, s));
|
|
122
|
-
}
|
|
123
|
-
|