@nfdi4plants/arctrl 1.0.0-alpha10
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 +262 -0
- package/Contract/Contract.js +95 -0
- package/Contracts/Contracts.ARCtrl.js +35 -0
- package/Contracts/Contracts.ArcAssay.js +65 -0
- package/Contracts/Contracts.ArcInvestigation.js +58 -0
- package/Contracts/Contracts.ArcStudy.js +65 -0
- package/Contracts/Contracts.Git.js +91 -0
- package/FileSystem/Commit.js +18 -0
- package/FileSystem/DefaultGitignore.js +3 -0
- package/FileSystem/FileSystem.js +53 -0
- package/FileSystem/FileSystemTree.js +223 -0
- package/FileSystem/Path.js +38 -0
- package/FileSystemTree.js +51 -0
- package/ISA/ISA/ArcTypes/ArcTable.js +848 -0
- package/ISA/ISA/ArcTypes/ArcTableAux.js +1105 -0
- package/ISA/ISA/ArcTypes/ArcTables.js +479 -0
- package/ISA/ISA/ArcTypes/ArcTypes.js +2281 -0
- package/ISA/ISA/ArcTypes/CompositeCell.js +180 -0
- package/ISA/ISA/ArcTypes/CompositeColumn.js +48 -0
- package/ISA/ISA/ArcTypes/CompositeHeader.js +668 -0
- package/ISA/ISA/ArcTypes/CompositeRow.js +111 -0
- package/ISA/ISA/ArcTypes/IdentifierSetters.js +26 -0
- package/ISA/ISA/Builder/Types.js +243 -0
- package/ISA/ISA/Fable.js +50 -0
- package/ISA/ISA/Helper.js +338 -0
- package/ISA/ISA/Identifier.js +76 -0
- package/ISA/ISA/JsonTypes/AnnotationValue.js +56 -0
- package/ISA/ISA/JsonTypes/Assay.js +620 -0
- package/ISA/ISA/JsonTypes/AssayMaterials.js +39 -0
- package/ISA/ISA/JsonTypes/ColumnIndex.js +246 -0
- package/ISA/ISA/JsonTypes/Comment.js +58 -0
- package/ISA/ISA/JsonTypes/CommentList.js +139 -0
- package/ISA/ISA/JsonTypes/Component.js +158 -0
- package/ISA/ISA/JsonTypes/Data.js +55 -0
- package/ISA/ISA/JsonTypes/DataFile.js +68 -0
- package/ISA/ISA/JsonTypes/Factor.js +128 -0
- package/ISA/ISA/JsonTypes/FactorValue.js +109 -0
- package/ISA/ISA/JsonTypes/Investigation.js +204 -0
- package/ISA/ISA/JsonTypes/Material.js +66 -0
- package/ISA/ISA/JsonTypes/MaterialAttribute.js +101 -0
- package/ISA/ISA/JsonTypes/MaterialAttributeValue.js +126 -0
- package/ISA/ISA/JsonTypes/MaterialType.js +41 -0
- package/ISA/ISA/JsonTypes/OntologyAnnotation.js +219 -0
- package/ISA/ISA/JsonTypes/OntologySourceReference.js +85 -0
- package/ISA/ISA/JsonTypes/Person.js +137 -0
- package/ISA/ISA/JsonTypes/Process.js +401 -0
- package/ISA/ISA/JsonTypes/ProcessInput.js +297 -0
- package/ISA/ISA/JsonTypes/ProcessOutput.js +263 -0
- package/ISA/ISA/JsonTypes/ProcessParameterValue.js +129 -0
- package/ISA/ISA/JsonTypes/ProcessSequence.js +255 -0
- package/ISA/ISA/JsonTypes/Protocol.js +277 -0
- package/ISA/ISA/JsonTypes/ProtocolParameter.js +101 -0
- package/ISA/ISA/JsonTypes/Publication.js +105 -0
- package/ISA/ISA/JsonTypes/Sample.js +71 -0
- package/ISA/ISA/JsonTypes/Source.js +54 -0
- package/ISA/ISA/JsonTypes/Study.js +942 -0
- package/ISA/ISA/JsonTypes/StudyMaterials.js +45 -0
- package/ISA/ISA/JsonTypes/URI.js +19 -0
- package/ISA/ISA/JsonTypes/Value.js +210 -0
- package/ISA/ISA/Regex.js +588 -0
- package/ISA/ISA.Json/Assay.js +123 -0
- package/ISA/ISA.Json/Comment.js +84 -0
- package/ISA/ISA.Json/ConverterOptions.js +33 -0
- package/ISA/ISA.Json/Data.js +271 -0
- package/ISA/ISA.Json/Decode.js +46 -0
- package/ISA/ISA.Json/Factor.js +194 -0
- package/ISA/ISA.Json/GEncode.js +15 -0
- package/ISA/ISA.Json/Investigation.js +132 -0
- package/ISA/ISA.Json/Material.js +233 -0
- package/ISA/ISA.Json/Ontology.js +204 -0
- package/ISA/ISA.Json/Person.js +204 -0
- package/ISA/ISA.Json/Process.js +291 -0
- package/ISA/ISA.Json/Protocol.js +242 -0
- package/ISA/ISA.Json/Publication.js +92 -0
- package/ISA/ISA.Json/Study.js +230 -0
- package/ISA/ISA.Json/Validation/Fable.js +69 -0
- package/ISA/ISA.Json/Validation/JsonSchemaValidation.js +88 -0
- package/ISA/ISA.Json/Validation/ValidationResult.js +45 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/ArcTable.js +137 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeCell.js +78 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeColumn.js +59 -0
- package/ISA/ISA.Spreadsheet/AnnotationTable/CompositeHeader.js +478 -0
- package/ISA/ISA.Spreadsheet/ArcAssay.js +150 -0
- package/ISA/ISA.Spreadsheet/ArcInvestigation.js +314 -0
- package/ISA/ISA.Spreadsheet/ArcStudy.js +67 -0
- package/ISA/ISA.Spreadsheet/CollectionAux.js +128 -0
- package/ISA/ISA.Spreadsheet/Metadata/Assays.js +81 -0
- package/ISA/ISA.Spreadsheet/Metadata/Comment.js +60 -0
- package/ISA/ISA.Spreadsheet/Metadata/Contacts.js +104 -0
- package/ISA/ISA.Spreadsheet/Metadata/Conversions.js +180 -0
- package/ISA/ISA.Spreadsheet/Metadata/DesignDescriptors.js +27 -0
- package/ISA/ISA.Spreadsheet/Metadata/Factors.js +85 -0
- package/ISA/ISA.Spreadsheet/Metadata/OntologyAnnotation.js +65 -0
- package/ISA/ISA.Spreadsheet/Metadata/OntologySourceReference.js +73 -0
- package/ISA/ISA.Spreadsheet/Metadata/Protocols.js +116 -0
- package/ISA/ISA.Spreadsheet/Metadata/Publication.js +96 -0
- package/ISA/ISA.Spreadsheet/Metadata/SparseTable.js +451 -0
- package/ISA/ISA.Spreadsheet/Metadata/Study.js +260 -0
- package/README.md +277 -0
- package/SemVer.js +60 -0
- package/Templates/Template.Json.js +85 -0
- package/Templates/Template.Spreadsheet.js +315 -0
- package/Templates/Template.Web.js +27 -0
- package/Templates/Template.js +179 -0
- package/Templates/Templates.js +82 -0
- package/WebRequest/WebRequest.js +38 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fable.Fetch.fableproj +21 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs +469 -0
- package/fable_modules/Fable.Fetch.2.6.0/Fetch.fs.js +111 -0
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs +57 -0
- package/fable_modules/Fable.Promise.3.2.0/AsyncIterable.fs.js +104 -0
- package/fable_modules/Fable.Promise.3.2.0/Fable.Promise.fableproj +20 -0
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs +766 -0
- package/fable_modules/Fable.Promise.3.2.0/Promise.fs.js +217 -0
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs +31 -0
- package/fable_modules/Fable.Promise.3.2.0/PromiseImpl.fs.js +19 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Fable.SimpleHttp.fableproj +23 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs +357 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Http.fs.js +429 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs +52 -0
- package/fable_modules/Fable.SimpleHttp.3.5.0/Types.fs.js +112 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs +387 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCell.fs.js +240 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs +725 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Cells/FsCellsCollection.fs.js +522 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs +195 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/CellBuilder.fs.js +208 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs +209 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/ColumnBuilder.fs.js +137 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs +61 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/DSL.fs.js +62 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs +24 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Expression.fs.js +56 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs +102 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Operators.fs.js +6 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs +200 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/RowBuilder.fs.js +137 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs +139 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/SheetBuilder.fs.js +116 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs +120 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/TableBuilder.fs.js +120 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs +229 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Transform.fs.js +421 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs +151 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/Types.fs.js +277 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs +114 -0
- package/fable_modules/FsSpreadsheet.4.1.0/DSL/WorkbookBuilder.fs.js +104 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs +177 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsAddress.fs.js +249 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs +200 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsColumn.fs.js +125 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs +202 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsRow.fs.js +135 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsSpreadsheet.fableproj +58 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs +183 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorkbook.fs.js +138 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs +628 -0
- package/fable_modules/FsSpreadsheet.4.1.0/FsWorksheet.fs.js +398 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs +19 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRange.fs.js +41 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs +222 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeAddress.fs.js +235 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs +93 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeBase.fs.js +91 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs +65 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeColumn.fs.js +74 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs +22 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Ranges/FsRangeRow.fs.js +40 -0
- package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs +249 -0
- package/fable_modules/FsSpreadsheet.4.1.0/SheetBuilder.fs.js +325 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs +455 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTable.fs.js +310 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs +140 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableField.fs.js +173 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs +6 -0
- package/fable_modules/FsSpreadsheet.4.1.0/Tables/FsTableRow.fs.js +17 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Debug/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs +3 -0
- package/fable_modules/FsSpreadsheet.4.1.0/obj/Release/netstandard2.0/FsSpreadsheet.AssemblyInfo.fs +19 -0
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs +1366 -0
- package/fable_modules/Thoth.Json.10.1.0/Decode.fs.js +1798 -0
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs +621 -0
- package/fable_modules/Thoth.Json.10.1.0/Encode.fs.js +472 -0
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs +31 -0
- package/fable_modules/Thoth.Json.10.1.0/Extra.fs.js +8 -0
- package/fable_modules/Thoth.Json.10.1.0/Thoth.Json.fableproj +30 -0
- package/fable_modules/Thoth.Json.10.1.0/Types.fs +59 -0
- package/fable_modules/Thoth.Json.10.1.0/Types.fs.js +98 -0
- package/fable_modules/Thoth.Json.10.1.0/obj/Release/netstandard2.0/Thoth.Json.AssemblyInfo.fs +19 -0
- package/fable_modules/Thoth.Json.10.1.0/package.json +5 -0
- package/fable_modules/fable-library.4.1.4/Array.d.ts +120 -0
- package/fable_modules/fable-library.4.1.4/Array.js +1204 -0
- package/fable_modules/fable-library.4.1.4/Async.d.ts +32 -0
- package/fable_modules/fable-library.4.1.4/Async.js +158 -0
- package/fable_modules/fable-library.4.1.4/AsyncBuilder.d.ts +59 -0
- package/fable_modules/fable-library.4.1.4/AsyncBuilder.js +183 -0
- package/fable_modules/fable-library.4.1.4/BigInt.d.ts +115 -0
- package/fable_modules/fable-library.4.1.4/BigInt.js +282 -0
- package/fable_modules/fable-library.4.1.4/BitConverter.d.ts +27 -0
- package/fable_modules/fable-library.4.1.4/BitConverter.js +138 -0
- package/fable_modules/fable-library.4.1.4/Boolean.d.ts +3 -0
- package/fable_modules/fable-library.4.1.4/Boolean.js +21 -0
- package/fable_modules/fable-library.4.1.4/Char.d.ts +65 -0
- package/fable_modules/fable-library.4.1.4/Char.js +169 -0
- package/fable_modules/fable-library.4.1.4/Choice.d.ts +138 -0
- package/fable_modules/fable-library.4.1.4/Choice.js +227 -0
- package/fable_modules/fable-library.4.1.4/Date.d.ts +70 -0
- package/fable_modules/fable-library.4.1.4/Date.js +451 -0
- package/fable_modules/fable-library.4.1.4/DateOffset.d.ts +63 -0
- package/fable_modules/fable-library.4.1.4/DateOffset.js +268 -0
- package/fable_modules/fable-library.4.1.4/DateOnly.d.ts +18 -0
- package/fable_modules/fable-library.4.1.4/DateOnly.js +124 -0
- package/fable_modules/fable-library.4.1.4/Decimal.d.ts +45 -0
- package/fable_modules/fable-library.4.1.4/Decimal.js +212 -0
- package/fable_modules/fable-library.4.1.4/Double.d.ts +11 -0
- package/fable_modules/fable-library.4.1.4/Double.js +46 -0
- package/fable_modules/fable-library.4.1.4/Encoding.d.ts +12 -0
- package/fable_modules/fable-library.4.1.4/Encoding.js +173 -0
- package/fable_modules/fable-library.4.1.4/Event.d.ts +31 -0
- package/fable_modules/fable-library.4.1.4/Event.js +93 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Collections.d.ts +7 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Collections.js +27 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Core.d.ts +17 -0
- package/fable_modules/fable-library.4.1.4/FSharp.Core.js +69 -0
- package/fable_modules/fable-library.4.1.4/Global.d.ts +24 -0
- package/fable_modules/fable-library.4.1.4/Global.js +8 -0
- package/fable_modules/fable-library.4.1.4/Guid.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/Guid.js +142 -0
- package/fable_modules/fable-library.4.1.4/Int32.d.ts +28 -0
- package/fable_modules/fable-library.4.1.4/Int32.js +135 -0
- package/fable_modules/fable-library.4.1.4/List.d.ts +143 -0
- package/fable_modules/fable-library.4.1.4/List.js +1273 -0
- package/fable_modules/fable-library.4.1.4/Long.d.ts +3 -0
- package/fable_modules/fable-library.4.1.4/Long.js +46 -0
- package/fable_modules/fable-library.4.1.4/MailboxProcessor.d.ts +25 -0
- package/fable_modules/fable-library.4.1.4/MailboxProcessor.js +93 -0
- package/fable_modules/fable-library.4.1.4/Map.d.ts +178 -0
- package/fable_modules/fable-library.4.1.4/Map.js +1396 -0
- package/fable_modules/fable-library.4.1.4/MapUtil.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/MapUtil.js +112 -0
- package/fable_modules/fable-library.4.1.4/MutableMap.d.ts +52 -0
- package/fable_modules/fable-library.4.1.4/MutableMap.js +326 -0
- package/fable_modules/fable-library.4.1.4/MutableSet.d.ts +39 -0
- package/fable_modules/fable-library.4.1.4/MutableSet.js +232 -0
- package/fable_modules/fable-library.4.1.4/Native.d.ts +2 -0
- package/fable_modules/fable-library.4.1.4/Native.js +8 -0
- package/fable_modules/fable-library.4.1.4/Numeric.d.ts +19 -0
- package/fable_modules/fable-library.4.1.4/Numeric.js +71 -0
- package/fable_modules/fable-library.4.1.4/Observable.d.ts +32 -0
- package/fable_modules/fable-library.4.1.4/Observable.js +113 -0
- package/fable_modules/fable-library.4.1.4/Option.d.ts +28 -0
- package/fable_modules/fable-library.4.1.4/Option.js +96 -0
- package/fable_modules/fable-library.4.1.4/README.md +3 -0
- package/fable_modules/fable-library.4.1.4/Random.d.ts +37 -0
- package/fable_modules/fable-library.4.1.4/Random.js +170 -0
- package/fable_modules/fable-library.4.1.4/Range.d.ts +12 -0
- package/fable_modules/fable-library.4.1.4/Range.js +45 -0
- package/fable_modules/fable-library.4.1.4/Reflection.d.ts +119 -0
- package/fable_modules/fable-library.4.1.4/Reflection.js +461 -0
- package/fable_modules/fable-library.4.1.4/RegExp.d.ts +10 -0
- package/fable_modules/fable-library.4.1.4/RegExp.js +132 -0
- package/fable_modules/fable-library.4.1.4/Seq.d.ts +165 -0
- package/fable_modules/fable-library.4.1.4/Seq.js +1379 -0
- package/fable_modules/fable-library.4.1.4/Seq2.d.ts +18 -0
- package/fable_modules/fable-library.4.1.4/Seq2.js +111 -0
- package/fable_modules/fable-library.4.1.4/Set.d.ts +190 -0
- package/fable_modules/fable-library.4.1.4/Set.js +1789 -0
- package/fable_modules/fable-library.4.1.4/String.d.ts +49 -0
- package/fable_modules/fable-library.4.1.4/String.js +540 -0
- package/fable_modules/fable-library.4.1.4/System.Collections.Generic.d.ts +71 -0
- package/fable_modules/fable-library.4.1.4/System.Collections.Generic.js +307 -0
- package/fable_modules/fable-library.4.1.4/System.Text.d.ts +30 -0
- package/fable_modules/fable-library.4.1.4/System.Text.js +110 -0
- package/fable_modules/fable-library.4.1.4/SystemException.d.ts +5 -0
- package/fable_modules/fable-library.4.1.4/SystemException.js +5 -0
- package/fable_modules/fable-library.4.1.4/TimeOnly.d.ts +15 -0
- package/fable_modules/fable-library.4.1.4/TimeOnly.js +122 -0
- package/fable_modules/fable-library.4.1.4/TimeSpan.d.ts +34 -0
- package/fable_modules/fable-library.4.1.4/TimeSpan.js +177 -0
- package/fable_modules/fable-library.4.1.4/Timer.d.ts +19 -0
- package/fable_modules/fable-library.4.1.4/Timer.js +67 -0
- package/fable_modules/fable-library.4.1.4/Types.d.ts +58 -0
- package/fable_modules/fable-library.4.1.4/Types.js +208 -0
- package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.d.ts +2 -0
- package/fable_modules/fable-library.4.1.4/Unicode.13.0.0.js +4 -0
- package/fable_modules/fable-library.4.1.4/Uri.d.ts +29 -0
- package/fable_modules/fable-library.4.1.4/Uri.js +142 -0
- package/fable_modules/fable-library.4.1.4/Util.d.ts +187 -0
- package/fable_modules/fable-library.4.1.4/Util.js +662 -0
- package/fable_modules/fable-library.4.1.4/lib/big.d.ts +338 -0
- package/fable_modules/fable-library.4.1.4/lib/big.js +826 -0
- package/fable_modules/fable-library.4.1.4/package.json +23 -0
- package/fable_modules/project_cracked.json +1 -0
- package/index.js +13 -0
- package/package.json +24 -0
|
@@ -0,0 +1,668 @@
|
|
|
1
|
+
import { map } from "../../../fable_modules/fable-library.4.1.4/Array.js";
|
|
2
|
+
import { union_type, string_type, getUnionCases, name } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
3
|
+
import { Union, toString } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
4
|
+
import { ActivePatterns_$007CTermColumn$007C_$007C, Pattern_OutputPattern, Pattern_InputPattern, ActivePatterns_$007CRegex$007C_$007C, tryParseIOTypeHeader } from "../Regex.js";
|
|
5
|
+
import { equals } from "../../../fable_modules/fable-library.4.1.4/Util.js";
|
|
6
|
+
import { printf, toFail } from "../../../fable_modules/fable-library.4.1.4/String.js";
|
|
7
|
+
import { OntologyAnnotation_$reflection, OntologyAnnotation } from "../JsonTypes/OntologyAnnotation.js";
|
|
8
|
+
import { ProtocolParameter_create_Z6C54B221 } from "../JsonTypes/ProtocolParameter.js";
|
|
9
|
+
import { Factor } from "../JsonTypes/Factor.js";
|
|
10
|
+
import { MaterialAttribute_create_Z6C54B221 } from "../JsonTypes/MaterialAttribute.js";
|
|
11
|
+
import { Component_create_61502994 } from "../JsonTypes/Component.js";
|
|
12
|
+
|
|
13
|
+
export class IOType extends Union {
|
|
14
|
+
constructor(tag, fields) {
|
|
15
|
+
super();
|
|
16
|
+
this.tag = tag;
|
|
17
|
+
this.fields = fields;
|
|
18
|
+
}
|
|
19
|
+
cases() {
|
|
20
|
+
return ["Source", "Sample", "RawDataFile", "DerivedDataFile", "ImageFile", "Material", "FreeText"];
|
|
21
|
+
}
|
|
22
|
+
static get All() {
|
|
23
|
+
return [new IOType(0, []), new IOType(1, []), new IOType(2, []), new IOType(3, []), new IOType(4, []), new IOType(5, [])];
|
|
24
|
+
}
|
|
25
|
+
static get Cases() {
|
|
26
|
+
return map((x) => [x.tag, name(x)], getUnionCases(IOType_$reflection()));
|
|
27
|
+
}
|
|
28
|
+
get asInput() {
|
|
29
|
+
const this$ = this;
|
|
30
|
+
const stringCreate = (x) => {
|
|
31
|
+
let copyOfStruct;
|
|
32
|
+
return `Input [${(copyOfStruct = x, toString(copyOfStruct))}]`;
|
|
33
|
+
};
|
|
34
|
+
return (this$.tag === 6) ? stringCreate(this$.fields[0]) : stringCreate(this$);
|
|
35
|
+
}
|
|
36
|
+
get asOutput() {
|
|
37
|
+
const this$ = this;
|
|
38
|
+
const stringCreate = (x) => {
|
|
39
|
+
let copyOfStruct;
|
|
40
|
+
return `Output [${(copyOfStruct = x, toString(copyOfStruct))}]`;
|
|
41
|
+
};
|
|
42
|
+
return (this$.tag === 6) ? stringCreate(this$.fields[0]) : stringCreate(this$);
|
|
43
|
+
}
|
|
44
|
+
Merge(other) {
|
|
45
|
+
const this$ = this;
|
|
46
|
+
switch (this$.tag) {
|
|
47
|
+
case 4:
|
|
48
|
+
switch (other.tag) {
|
|
49
|
+
case 0:
|
|
50
|
+
return new IOType(4, []);
|
|
51
|
+
case 2:
|
|
52
|
+
return new IOType(4, []);
|
|
53
|
+
case 3:
|
|
54
|
+
return new IOType(4, []);
|
|
55
|
+
case 4:
|
|
56
|
+
return new IOType(4, []);
|
|
57
|
+
default:
|
|
58
|
+
throw new Error(`ImageFile IO column and ${other} can not be merged`);
|
|
59
|
+
}
|
|
60
|
+
case 3:
|
|
61
|
+
switch (other.tag) {
|
|
62
|
+
case 0:
|
|
63
|
+
return new IOType(3, []);
|
|
64
|
+
case 2:
|
|
65
|
+
return new IOType(3, []);
|
|
66
|
+
case 3:
|
|
67
|
+
return new IOType(3, []);
|
|
68
|
+
case 4:
|
|
69
|
+
return new IOType(4, []);
|
|
70
|
+
default:
|
|
71
|
+
throw new Error(`DerivedDataFile IO column and ${other} can not be merged`);
|
|
72
|
+
}
|
|
73
|
+
case 2:
|
|
74
|
+
switch (other.tag) {
|
|
75
|
+
case 0:
|
|
76
|
+
return new IOType(2, []);
|
|
77
|
+
case 2:
|
|
78
|
+
return new IOType(2, []);
|
|
79
|
+
case 3:
|
|
80
|
+
return new IOType(3, []);
|
|
81
|
+
case 4:
|
|
82
|
+
return new IOType(4, []);
|
|
83
|
+
default:
|
|
84
|
+
throw new Error(`RawDataFile IO column and ${other} can not be merged`);
|
|
85
|
+
}
|
|
86
|
+
case 1:
|
|
87
|
+
switch (other.tag) {
|
|
88
|
+
case 0:
|
|
89
|
+
return new IOType(1, []);
|
|
90
|
+
case 1:
|
|
91
|
+
return new IOType(1, []);
|
|
92
|
+
default:
|
|
93
|
+
throw new Error(`Sample IO column and ${other} can not be merged`);
|
|
94
|
+
}
|
|
95
|
+
case 0:
|
|
96
|
+
return (other.tag === 0) ? (new IOType(0, [])) : other;
|
|
97
|
+
case 5:
|
|
98
|
+
switch (other.tag) {
|
|
99
|
+
case 0:
|
|
100
|
+
return new IOType(5, []);
|
|
101
|
+
case 5:
|
|
102
|
+
return new IOType(5, []);
|
|
103
|
+
default:
|
|
104
|
+
throw new Error(`Material IO column and ${other} can not be merged`);
|
|
105
|
+
}
|
|
106
|
+
default:
|
|
107
|
+
if (other.tag === 6) {
|
|
108
|
+
if (this$.fields[0] === other.fields[0]) {
|
|
109
|
+
return new IOType(6, [this$.fields[0]]);
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
throw new Error(`FreeText IO column names ${this$.fields[0]} and ${other.fields[0]} do differ`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
throw new Error(`FreeText IO column and ${other} can not be merged`);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
toString() {
|
|
121
|
+
const this$ = this;
|
|
122
|
+
return (this$.tag === 1) ? "Sample Name" : ((this$.tag === 2) ? "Raw Data File" : ((this$.tag === 3) ? "Derived Data File" : ((this$.tag === 4) ? "Image File" : ((this$.tag === 5) ? "Material" : ((this$.tag === 6) ? this$.fields[0] : "Source Name")))));
|
|
123
|
+
}
|
|
124
|
+
static ofString(str) {
|
|
125
|
+
return (str === "Source") ? (new IOType(0, [])) : ((str === "Source Name") ? (new IOType(0, [])) : ((str === "Sample") ? (new IOType(1, [])) : ((str === "Sample Name") ? (new IOType(1, [])) : ((str === "RawDataFile") ? (new IOType(2, [])) : ((str === "Raw Data File") ? (new IOType(2, [])) : ((str === "DerivedDataFile") ? (new IOType(3, [])) : ((str === "Derived Data File") ? (new IOType(3, [])) : ((str === "ImageFile") ? (new IOType(4, [])) : ((str === "Image File") ? (new IOType(4, [])) : ((str === "Material") ? (new IOType(5, [])) : (new IOType(6, [str]))))))))))));
|
|
126
|
+
}
|
|
127
|
+
static tryOfHeaderString(str) {
|
|
128
|
+
const matchValue = tryParseIOTypeHeader(str);
|
|
129
|
+
if (matchValue == null) {
|
|
130
|
+
return void 0;
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
const s = matchValue;
|
|
134
|
+
return IOType.ofString(s);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
GetUITooltip() {
|
|
138
|
+
const this$ = this;
|
|
139
|
+
return IOType.getUITooltip(this$);
|
|
140
|
+
}
|
|
141
|
+
static getUITooltip(iotype) {
|
|
142
|
+
let matchResult;
|
|
143
|
+
if (typeof iotype === "string") {
|
|
144
|
+
if (equals(iotype, "Source")) {
|
|
145
|
+
matchResult = 0;
|
|
146
|
+
}
|
|
147
|
+
else if (equals(iotype, "Sample")) {
|
|
148
|
+
matchResult = 1;
|
|
149
|
+
}
|
|
150
|
+
else if (equals(iotype, "RawDataFile")) {
|
|
151
|
+
matchResult = 2;
|
|
152
|
+
}
|
|
153
|
+
else if (equals(iotype, "DerivedDataFile")) {
|
|
154
|
+
matchResult = 3;
|
|
155
|
+
}
|
|
156
|
+
else if (equals(iotype, "ImageFile")) {
|
|
157
|
+
matchResult = 4;
|
|
158
|
+
}
|
|
159
|
+
else if (equals(iotype, "Material")) {
|
|
160
|
+
matchResult = 5;
|
|
161
|
+
}
|
|
162
|
+
else if (equals(iotype, "FreeText")) {
|
|
163
|
+
matchResult = 6;
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
matchResult = 7;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
switch (iotype.tag) {
|
|
171
|
+
case 1: {
|
|
172
|
+
matchResult = 1;
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
case 2: {
|
|
176
|
+
matchResult = 2;
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
case 3: {
|
|
180
|
+
matchResult = 3;
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
case 4: {
|
|
184
|
+
matchResult = 4;
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
case 5: {
|
|
188
|
+
matchResult = 5;
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
case 6: {
|
|
192
|
+
matchResult = 6;
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
default:
|
|
196
|
+
matchResult = 0;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
switch (matchResult) {
|
|
200
|
+
case 0:
|
|
201
|
+
return "The source value must be a unique identifier for an organism or a sample.";
|
|
202
|
+
case 1:
|
|
203
|
+
return "The Sample Name column describes specifc laboratory samples with a unique identifier.";
|
|
204
|
+
case 2:
|
|
205
|
+
return "The Raw Data File column defines untransformed and unprocessed data files.";
|
|
206
|
+
case 3:
|
|
207
|
+
return "The Derived Data File column defines transformed and/or processed data files.";
|
|
208
|
+
case 4:
|
|
209
|
+
return "Placeholder";
|
|
210
|
+
case 5:
|
|
211
|
+
return "Placeholder";
|
|
212
|
+
case 6:
|
|
213
|
+
return "Placeholder";
|
|
214
|
+
default:
|
|
215
|
+
throw new Error(`Unable to parse combination to existing IOType: \`${iotype}\``);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function IOType_$reflection() {
|
|
221
|
+
return union_type("ARCtrl.ISA.IOType", [], IOType, () => [[], [], [], [], [], [], [["Item", string_type]]]);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export class CompositeHeader extends Union {
|
|
225
|
+
constructor(tag, fields) {
|
|
226
|
+
super();
|
|
227
|
+
this.tag = tag;
|
|
228
|
+
this.fields = fields;
|
|
229
|
+
}
|
|
230
|
+
cases() {
|
|
231
|
+
return ["Component", "Characteristic", "Factor", "Parameter", "ProtocolType", "ProtocolDescription", "ProtocolUri", "ProtocolVersion", "ProtocolREF", "Performer", "Date", "Input", "Output", "FreeText"];
|
|
232
|
+
}
|
|
233
|
+
static get Cases() {
|
|
234
|
+
return map((x) => [x.tag, name(x)], getUnionCases(CompositeHeader_$reflection()));
|
|
235
|
+
}
|
|
236
|
+
static jsGetColumnMetaType(inp) {
|
|
237
|
+
return (inp === 0) ? 1 : ((inp === 1) ? 1 : ((inp === 2) ? 1 : ((inp === 3) ? 1 : ((inp === 4) ? 0 : ((inp === 5) ? 0 : ((inp === 6) ? 0 : ((inp === 7) ? 0 : ((inp === 8) ? 0 : ((inp === 9) ? 0 : ((inp === 10) ? 0 : ((inp === 11) ? 2 : ((inp === 12) ? 2 : ((inp === 13) ? 3 : toFail(printf("Cannot assign input `Tag` (%i) to `CompositeHeader`"))(inp))))))))))))));
|
|
238
|
+
}
|
|
239
|
+
toString() {
|
|
240
|
+
const this$ = this;
|
|
241
|
+
return (this$.tag === 2) ? (`Factor [${this$.fields[0].NameText}]`) : ((this$.tag === 1) ? (`Characteristic [${this$.fields[0].NameText}]`) : ((this$.tag === 0) ? (`Component [${this$.fields[0].NameText}]`) : ((this$.tag === 4) ? "Protocol Type" : ((this$.tag === 8) ? "Protocol REF" : ((this$.tag === 5) ? "Protocol Description" : ((this$.tag === 6) ? "Protocol Uri" : ((this$.tag === 7) ? "Protocol Version" : ((this$.tag === 9) ? "Performer" : ((this$.tag === 10) ? "Date" : ((this$.tag === 11) ? this$.fields[0].asInput : ((this$.tag === 12) ? this$.fields[0].asOutput : ((this$.tag === 13) ? this$.fields[0] : (`Parameter [${this$.fields[0].NameText}]`)))))))))))));
|
|
242
|
+
}
|
|
243
|
+
ToTerm() {
|
|
244
|
+
const this$ = this;
|
|
245
|
+
return (this$.tag === 2) ? this$.fields[0] : ((this$.tag === 1) ? this$.fields[0] : ((this$.tag === 0) ? this$.fields[0] : ((this$.tag === 4) ? OntologyAnnotation.fromString("Protocol Type") : ((this$.tag === 8) ? OntologyAnnotation.fromString("Protocol REF") : ((this$.tag === 5) ? OntologyAnnotation.fromString("Protocol Description") : ((this$.tag === 6) ? OntologyAnnotation.fromString("Protocol Uri") : ((this$.tag === 7) ? OntologyAnnotation.fromString("Protocol Version") : ((this$.tag === 9) ? OntologyAnnotation.fromString("Performer") : ((this$.tag === 10) ? OntologyAnnotation.fromString("Date") : ((this$.tag === 11) ? OntologyAnnotation.fromString(this$.fields[0].asInput) : ((this$.tag === 12) ? OntologyAnnotation.fromString(this$.fields[0].asOutput) : ((this$.tag === 13) ? OntologyAnnotation.fromString(this$.fields[0]) : this$.fields[0]))))))))))));
|
|
246
|
+
}
|
|
247
|
+
static OfHeaderString(str) {
|
|
248
|
+
const matchValue = str.trim();
|
|
249
|
+
const activePatternResult = ActivePatterns_$007CRegex$007C_$007C(Pattern_InputPattern, matchValue);
|
|
250
|
+
if (activePatternResult != null) {
|
|
251
|
+
const r = activePatternResult;
|
|
252
|
+
const iotype = (r.groups && r.groups.iotype) || "";
|
|
253
|
+
return new CompositeHeader(11, [IOType.ofString(iotype)]);
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
const activePatternResult_1 = ActivePatterns_$007CRegex$007C_$007C(Pattern_OutputPattern, matchValue);
|
|
257
|
+
if (activePatternResult_1 != null) {
|
|
258
|
+
const r_1 = activePatternResult_1;
|
|
259
|
+
const iotype_1 = (r_1.groups && r_1.groups.iotype) || "";
|
|
260
|
+
return new CompositeHeader(12, [IOType.ofString(iotype_1)]);
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
const activePatternResult_2 = ActivePatterns_$007CTermColumn$007C_$007C(matchValue);
|
|
264
|
+
if (activePatternResult_2 != null) {
|
|
265
|
+
const r_2 = activePatternResult_2;
|
|
266
|
+
const matchValue_1 = r_2.TermColumnType;
|
|
267
|
+
switch (matchValue_1) {
|
|
268
|
+
case "Parameter":
|
|
269
|
+
case "Parameter Value":
|
|
270
|
+
return new CompositeHeader(3, [OntologyAnnotation.fromString(r_2.TermName)]);
|
|
271
|
+
case "Factor":
|
|
272
|
+
case "Factor Value":
|
|
273
|
+
return new CompositeHeader(2, [OntologyAnnotation.fromString(r_2.TermName)]);
|
|
274
|
+
case "Characteristic":
|
|
275
|
+
case "Characteristics":
|
|
276
|
+
case "Characteristics Value":
|
|
277
|
+
return new CompositeHeader(1, [OntologyAnnotation.fromString(r_2.TermName)]);
|
|
278
|
+
case "Component":
|
|
279
|
+
return new CompositeHeader(0, [OntologyAnnotation.fromString(r_2.TermName)]);
|
|
280
|
+
default:
|
|
281
|
+
return new CompositeHeader(13, [str]);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
return (matchValue === "Date") ? (new CompositeHeader(10, [])) : ((matchValue === "Performer") ? (new CompositeHeader(9, [])) : ((matchValue === "Protocol Description") ? (new CompositeHeader(5, [])) : ((matchValue === "Protocol Uri") ? (new CompositeHeader(6, [])) : ((matchValue === "Protocol Version") ? (new CompositeHeader(7, [])) : ((matchValue === "Protocol Type") ? (new CompositeHeader(4, [])) : ((matchValue === "Protocol REF") ? (new CompositeHeader(8, [])) : (new CompositeHeader(13, [matchValue]))))))));
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
get IsDeprecated() {
|
|
291
|
+
const this$ = this;
|
|
292
|
+
let matchResult, s_4, s_5, s_6, s_7;
|
|
293
|
+
if (this$.tag === 13) {
|
|
294
|
+
if (this$.fields[0].toLocaleLowerCase() === "sample name") {
|
|
295
|
+
matchResult = 0;
|
|
296
|
+
s_4 = this$.fields[0];
|
|
297
|
+
}
|
|
298
|
+
else if (this$.fields[0].toLocaleLowerCase() === "source name") {
|
|
299
|
+
matchResult = 1;
|
|
300
|
+
s_5 = this$.fields[0];
|
|
301
|
+
}
|
|
302
|
+
else if (this$.fields[0].toLocaleLowerCase() === "data file name") {
|
|
303
|
+
matchResult = 2;
|
|
304
|
+
s_6 = this$.fields[0];
|
|
305
|
+
}
|
|
306
|
+
else if (this$.fields[0].toLocaleLowerCase() === "derived data file") {
|
|
307
|
+
matchResult = 3;
|
|
308
|
+
s_7 = this$.fields[0];
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
matchResult = 4;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
matchResult = 4;
|
|
316
|
+
}
|
|
317
|
+
switch (matchResult) {
|
|
318
|
+
case 0:
|
|
319
|
+
return true;
|
|
320
|
+
case 1:
|
|
321
|
+
return true;
|
|
322
|
+
case 2:
|
|
323
|
+
return true;
|
|
324
|
+
case 3:
|
|
325
|
+
return true;
|
|
326
|
+
default:
|
|
327
|
+
return false;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
get IsCvParamColumn() {
|
|
331
|
+
const this$ = this;
|
|
332
|
+
switch (this$.tag) {
|
|
333
|
+
case 3:
|
|
334
|
+
case 2:
|
|
335
|
+
case 1:
|
|
336
|
+
case 0:
|
|
337
|
+
return true;
|
|
338
|
+
default:
|
|
339
|
+
return false;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
get IsTermColumn() {
|
|
343
|
+
const this$ = this;
|
|
344
|
+
switch (this$.tag) {
|
|
345
|
+
case 3:
|
|
346
|
+
case 2:
|
|
347
|
+
case 1:
|
|
348
|
+
case 0:
|
|
349
|
+
case 4:
|
|
350
|
+
return true;
|
|
351
|
+
default:
|
|
352
|
+
return false;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
get IsFeaturedColumn() {
|
|
356
|
+
const this$ = this;
|
|
357
|
+
return this$.tag === 4;
|
|
358
|
+
}
|
|
359
|
+
get GetFeaturedColumnAccession() {
|
|
360
|
+
const this$ = this;
|
|
361
|
+
if (this$.tag === 4) {
|
|
362
|
+
return "DPBO:1000161";
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
throw new Error(`Tried matching ${this$} in getFeaturedColumnAccession, but is not a featured column.`);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
get GetColumnAccessionShort() {
|
|
369
|
+
const this$ = this;
|
|
370
|
+
switch (this$.tag) {
|
|
371
|
+
case 4:
|
|
372
|
+
return this$.GetFeaturedColumnAccession;
|
|
373
|
+
case 3:
|
|
374
|
+
return this$.fields[0].TermAccessionShort;
|
|
375
|
+
case 2:
|
|
376
|
+
return this$.fields[0].TermAccessionShort;
|
|
377
|
+
case 1:
|
|
378
|
+
return this$.fields[0].TermAccessionShort;
|
|
379
|
+
case 0:
|
|
380
|
+
return this$.fields[0].TermAccessionShort;
|
|
381
|
+
default:
|
|
382
|
+
throw new Error(`Tried matching ${this$}, but is not a column with an accession.`);
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
get IsSingleColumn() {
|
|
386
|
+
const this$ = this;
|
|
387
|
+
switch (this$.tag) {
|
|
388
|
+
case 13:
|
|
389
|
+
case 11:
|
|
390
|
+
case 12:
|
|
391
|
+
case 8:
|
|
392
|
+
case 5:
|
|
393
|
+
case 6:
|
|
394
|
+
case 7:
|
|
395
|
+
case 9:
|
|
396
|
+
case 10:
|
|
397
|
+
return true;
|
|
398
|
+
default:
|
|
399
|
+
return false;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
get IsIOType() {
|
|
403
|
+
const this$ = this;
|
|
404
|
+
let matchResult, io;
|
|
405
|
+
switch (this$.tag) {
|
|
406
|
+
case 11: {
|
|
407
|
+
matchResult = 0;
|
|
408
|
+
io = this$.fields[0];
|
|
409
|
+
break;
|
|
410
|
+
}
|
|
411
|
+
case 12: {
|
|
412
|
+
matchResult = 0;
|
|
413
|
+
io = this$.fields[0];
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
default:
|
|
417
|
+
matchResult = 1;
|
|
418
|
+
}
|
|
419
|
+
switch (matchResult) {
|
|
420
|
+
case 0:
|
|
421
|
+
return true;
|
|
422
|
+
default:
|
|
423
|
+
return false;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
get isInput() {
|
|
427
|
+
const this$ = this;
|
|
428
|
+
return this$.tag === 11;
|
|
429
|
+
}
|
|
430
|
+
get isOutput() {
|
|
431
|
+
const this$ = this;
|
|
432
|
+
return this$.tag === 12;
|
|
433
|
+
}
|
|
434
|
+
get isParameter() {
|
|
435
|
+
const this$ = this;
|
|
436
|
+
return this$.tag === 3;
|
|
437
|
+
}
|
|
438
|
+
get isFactor() {
|
|
439
|
+
const this$ = this;
|
|
440
|
+
return this$.tag === 2;
|
|
441
|
+
}
|
|
442
|
+
get isCharacteristic() {
|
|
443
|
+
const this$ = this;
|
|
444
|
+
return this$.tag === 1;
|
|
445
|
+
}
|
|
446
|
+
get isComponent() {
|
|
447
|
+
const this$ = this;
|
|
448
|
+
return this$.tag === 0;
|
|
449
|
+
}
|
|
450
|
+
get isProtocolType() {
|
|
451
|
+
const this$ = this;
|
|
452
|
+
return this$.tag === 4;
|
|
453
|
+
}
|
|
454
|
+
get isProtocolREF() {
|
|
455
|
+
const this$ = this;
|
|
456
|
+
return this$.tag === 8;
|
|
457
|
+
}
|
|
458
|
+
get isProtocolDescription() {
|
|
459
|
+
const this$ = this;
|
|
460
|
+
return this$.tag === 5;
|
|
461
|
+
}
|
|
462
|
+
get isProtocolUri() {
|
|
463
|
+
const this$ = this;
|
|
464
|
+
return this$.tag === 6;
|
|
465
|
+
}
|
|
466
|
+
get isProtocolVersion() {
|
|
467
|
+
const this$ = this;
|
|
468
|
+
return this$.tag === 7;
|
|
469
|
+
}
|
|
470
|
+
get isProtocolColumn() {
|
|
471
|
+
const this$ = this;
|
|
472
|
+
switch (this$.tag) {
|
|
473
|
+
case 8:
|
|
474
|
+
case 5:
|
|
475
|
+
case 6:
|
|
476
|
+
case 7:
|
|
477
|
+
case 4:
|
|
478
|
+
return true;
|
|
479
|
+
default:
|
|
480
|
+
return false;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
get isPerformer() {
|
|
484
|
+
const this$ = this;
|
|
485
|
+
return this$.tag === 9;
|
|
486
|
+
}
|
|
487
|
+
get isDate() {
|
|
488
|
+
const this$ = this;
|
|
489
|
+
return this$.tag === 10;
|
|
490
|
+
}
|
|
491
|
+
get isFreeText() {
|
|
492
|
+
const this$ = this;
|
|
493
|
+
return this$.tag === 13;
|
|
494
|
+
}
|
|
495
|
+
tryInput() {
|
|
496
|
+
const this$ = this;
|
|
497
|
+
return (this$.tag === 11) ? this$.fields[0] : void 0;
|
|
498
|
+
}
|
|
499
|
+
tryOutput() {
|
|
500
|
+
const this$ = this;
|
|
501
|
+
return (this$.tag === 12) ? this$.fields[0] : void 0;
|
|
502
|
+
}
|
|
503
|
+
TryParameter() {
|
|
504
|
+
const this$ = this;
|
|
505
|
+
return (this$.tag === 3) ? ProtocolParameter_create_Z6C54B221(void 0, this$.fields[0]) : void 0;
|
|
506
|
+
}
|
|
507
|
+
TryFactor() {
|
|
508
|
+
const this$ = this;
|
|
509
|
+
return (this$.tag === 2) ? Factor.create(void 0, void 0, this$.fields[0]) : void 0;
|
|
510
|
+
}
|
|
511
|
+
TryCharacteristic() {
|
|
512
|
+
const this$ = this;
|
|
513
|
+
return (this$.tag === 1) ? MaterialAttribute_create_Z6C54B221(void 0, this$.fields[0]) : void 0;
|
|
514
|
+
}
|
|
515
|
+
TryComponent() {
|
|
516
|
+
const this$ = this;
|
|
517
|
+
return (this$.tag === 0) ? Component_create_61502994(void 0, void 0, void 0, this$.fields[0]) : void 0;
|
|
518
|
+
}
|
|
519
|
+
GetUITooltip() {
|
|
520
|
+
const this$ = this;
|
|
521
|
+
return CompositeHeader.getUITooltip(this$);
|
|
522
|
+
}
|
|
523
|
+
static getUITooltip(header) {
|
|
524
|
+
let matchResult;
|
|
525
|
+
if (typeof header === "string") {
|
|
526
|
+
if (equals(header, "Component")) {
|
|
527
|
+
matchResult = 0;
|
|
528
|
+
}
|
|
529
|
+
else if (equals(header, "Characteristic")) {
|
|
530
|
+
matchResult = 1;
|
|
531
|
+
}
|
|
532
|
+
else if (equals(header, "Factor")) {
|
|
533
|
+
matchResult = 2;
|
|
534
|
+
}
|
|
535
|
+
else if (equals(header, "Parameter")) {
|
|
536
|
+
matchResult = 3;
|
|
537
|
+
}
|
|
538
|
+
else if (equals(header, "ProtocolType")) {
|
|
539
|
+
matchResult = 4;
|
|
540
|
+
}
|
|
541
|
+
else if (equals(header, "ProtocolDescription")) {
|
|
542
|
+
matchResult = 5;
|
|
543
|
+
}
|
|
544
|
+
else if (equals(header, "ProtocolUri")) {
|
|
545
|
+
matchResult = 6;
|
|
546
|
+
}
|
|
547
|
+
else if (equals(header, "ProtocolVersion")) {
|
|
548
|
+
matchResult = 7;
|
|
549
|
+
}
|
|
550
|
+
else if (equals(header, "ProtocolREF")) {
|
|
551
|
+
matchResult = 8;
|
|
552
|
+
}
|
|
553
|
+
else if (equals(header, "Performer")) {
|
|
554
|
+
matchResult = 9;
|
|
555
|
+
}
|
|
556
|
+
else if (equals(header, "Date")) {
|
|
557
|
+
matchResult = 10;
|
|
558
|
+
}
|
|
559
|
+
else if (equals(header, "Input")) {
|
|
560
|
+
matchResult = 11;
|
|
561
|
+
}
|
|
562
|
+
else if (equals(header, "Output")) {
|
|
563
|
+
matchResult = 12;
|
|
564
|
+
}
|
|
565
|
+
else if (equals(header, "FreeText")) {
|
|
566
|
+
matchResult = 13;
|
|
567
|
+
}
|
|
568
|
+
else {
|
|
569
|
+
matchResult = 14;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
else {
|
|
573
|
+
switch (header.tag) {
|
|
574
|
+
case 1: {
|
|
575
|
+
matchResult = 1;
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
case 2: {
|
|
579
|
+
matchResult = 2;
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
case 3: {
|
|
583
|
+
matchResult = 3;
|
|
584
|
+
break;
|
|
585
|
+
}
|
|
586
|
+
case 4: {
|
|
587
|
+
matchResult = 4;
|
|
588
|
+
break;
|
|
589
|
+
}
|
|
590
|
+
case 5: {
|
|
591
|
+
matchResult = 5;
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
594
|
+
case 6: {
|
|
595
|
+
matchResult = 6;
|
|
596
|
+
break;
|
|
597
|
+
}
|
|
598
|
+
case 7: {
|
|
599
|
+
matchResult = 7;
|
|
600
|
+
break;
|
|
601
|
+
}
|
|
602
|
+
case 8: {
|
|
603
|
+
matchResult = 8;
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
606
|
+
case 9: {
|
|
607
|
+
matchResult = 9;
|
|
608
|
+
break;
|
|
609
|
+
}
|
|
610
|
+
case 10: {
|
|
611
|
+
matchResult = 10;
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
case 11: {
|
|
615
|
+
matchResult = 11;
|
|
616
|
+
break;
|
|
617
|
+
}
|
|
618
|
+
case 12: {
|
|
619
|
+
matchResult = 12;
|
|
620
|
+
break;
|
|
621
|
+
}
|
|
622
|
+
case 13: {
|
|
623
|
+
matchResult = 13;
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
default:
|
|
627
|
+
matchResult = 0;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
switch (matchResult) {
|
|
631
|
+
case 0:
|
|
632
|
+
return "Component columns are used to describe physical components of a experiment, e.g. instrument names, software names, and reagents names.";
|
|
633
|
+
case 1:
|
|
634
|
+
return "Characteristic columns are used for study descriptions and describe inherent properties of the source material, e.g. a certain strain or organism part.";
|
|
635
|
+
case 2:
|
|
636
|
+
return "Use Factor columns to describe independent variables that result in a specific output of your experiment, e.g. the light intensity under which an organism was grown.";
|
|
637
|
+
case 3:
|
|
638
|
+
return "Parameter columns describe steps in your experimental workflow, e.g. the centrifugation time or the temperature used for your assay.";
|
|
639
|
+
case 4:
|
|
640
|
+
return "Defines the protocol type according to your preferred endpoint repository.";
|
|
641
|
+
case 5:
|
|
642
|
+
return "Describe the protocol in free text.";
|
|
643
|
+
case 6:
|
|
644
|
+
return "Web or local address where the in-depth protocol is stored.";
|
|
645
|
+
case 7:
|
|
646
|
+
return "Defines the protocol version.";
|
|
647
|
+
case 8:
|
|
648
|
+
return "Defines the protocol name.";
|
|
649
|
+
case 9:
|
|
650
|
+
return "Defines the protocol performer.";
|
|
651
|
+
case 10:
|
|
652
|
+
return "Defines the date the protocol was performed.";
|
|
653
|
+
case 11:
|
|
654
|
+
return "Only one input column per table. E.g. experimental samples or files.";
|
|
655
|
+
case 12:
|
|
656
|
+
return "Only one output column per table. E.g. experimental samples or files.";
|
|
657
|
+
case 13:
|
|
658
|
+
return "Placeholder";
|
|
659
|
+
default:
|
|
660
|
+
throw new Error(`Unable to parse combination to existing CompositeHeader: \`${header}\``);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export function CompositeHeader_$reflection() {
|
|
666
|
+
return union_type("ARCtrl.ISA.CompositeHeader", [], CompositeHeader, () => [[["Item", OntologyAnnotation_$reflection()]], [["Item", OntologyAnnotation_$reflection()]], [["Item", OntologyAnnotation_$reflection()]], [["Item", OntologyAnnotation_$reflection()]], [], [], [], [], [], [], [], [["Item", IOType_$reflection()]], [["Item", IOType_$reflection()]], [["Item", string_type]]]);
|
|
667
|
+
}
|
|
668
|
+
|