@nfdi4plants/arctrl 1.0.0-alpha6
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/ARCtrl.js +257 -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 +744 -0
- package/ISA/ISA/ArcTypes/ArcTableAux.js +1142 -0
- package/ISA/ISA/ArcTypes/ArcTables.js +380 -0
- package/ISA/ISA/ArcTypes/ArcTypes.js +2018 -0
- package/ISA/ISA/ArcTypes/CompositeCell.js +180 -0
- package/ISA/ISA/ArcTypes/CompositeColumn.js +42 -0
- package/ISA/ISA/ArcTypes/CompositeHeader.js +358 -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 +326 -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/Templates.Json.js +40 -0
- package/Templates/Templates.Spreadsheet.js +315 -0
- package/Templates/Templates.js +179 -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/package.json +22 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
import { tryParse } from "../../../fable_modules/fable-library.4.1.4/Int32.js";
|
|
2
|
+
import { FSharpRef } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
3
|
+
import { int32ToString } from "../../../fable_modules/fable-library.4.1.4/Util.js";
|
|
4
|
+
import { Comment$ } from "./Comment.js";
|
|
5
|
+
import { value, bind } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
6
|
+
import { tryItem } from "./CommentList.js";
|
|
7
|
+
import { append } from "../../../fable_modules/fable-library.4.1.4/Array.js";
|
|
8
|
+
import { OntologyAnnotation } from "./OntologyAnnotation.js";
|
|
9
|
+
import { Factor } from "./Factor.js";
|
|
10
|
+
import { MaterialAttribute_fromString_Z2304A83C } from "./MaterialAttribute.js";
|
|
11
|
+
import { ProtocolParameter_fromString_Z2304A83C } from "./ProtocolParameter.js";
|
|
12
|
+
import { Component_fromString_Z61E08C1 } from "./Component.js";
|
|
13
|
+
|
|
14
|
+
function tryInt(str) {
|
|
15
|
+
let matchValue;
|
|
16
|
+
let outArg = 0;
|
|
17
|
+
matchValue = [tryParse(str, 511, false, 32, new FSharpRef(() => outArg, (v) => {
|
|
18
|
+
outArg = (v | 0);
|
|
19
|
+
})), outArg];
|
|
20
|
+
if (matchValue[0]) {
|
|
21
|
+
return matchValue[1];
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
return void 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const orderName = "ColumnIndex";
|
|
29
|
+
|
|
30
|
+
export function createOrderComment(index) {
|
|
31
|
+
const arg_1 = int32ToString(index);
|
|
32
|
+
return Comment$.fromString(orderName, arg_1);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function tryGetIndex(comments) {
|
|
36
|
+
return bind(tryInt, tryItem(orderName, comments));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function setOntologyAnnotationIndex(i, oa) {
|
|
40
|
+
let matchValue, cs;
|
|
41
|
+
return new OntologyAnnotation(oa.ID, oa.Name, oa.TermSourceREF, oa.TermAccessionNumber, (matchValue = oa.Comments, (matchValue == null) ? [createOrderComment(i)] : ((cs = matchValue, append([createOrderComment(i)], cs)))));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function tryGetOntologyAnnotationIndex(oa) {
|
|
45
|
+
return bind(tryGetIndex, oa.Comments);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function tryGetParameterIndex(param) {
|
|
49
|
+
return bind((oa) => bind(tryGetIndex, oa.Comments), param.ParameterName);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function tryGetParameterColumnIndex(paramValue) {
|
|
53
|
+
return bind(tryGetParameterIndex, paramValue.Category);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function tryGetFactorIndex(factor) {
|
|
57
|
+
return bind((oa) => bind(tryGetIndex, oa.Comments), factor.FactorType);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function tryGetFactorColumnIndex(factorValue) {
|
|
61
|
+
return bind(tryGetFactorIndex, factorValue.Category);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function tryGetCharacteristicIndex(characteristic) {
|
|
65
|
+
return bind((oa) => bind(tryGetIndex, oa.Comments), characteristic.CharacteristicType);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function tryGetCharacteristicColumnIndex(characteristicValue) {
|
|
69
|
+
return bind(tryGetCharacteristicIndex, characteristicValue.Category);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function tryGetComponentIndex(comp) {
|
|
73
|
+
return bind((oa) => bind(tryGetIndex, oa.Comments), comp.ComponentType);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Create a ISAJson Factor from ISATab string entries
|
|
78
|
+
*/
|
|
79
|
+
export function ARCtrl_ISA_OntologyAnnotation__OntologyAnnotation_fromStringWithColumnIndex_Static(name, term, source, accession, valueIndex) {
|
|
80
|
+
return Factor.fromString(name, term, source, accession, [createOrderComment(valueIndex)]);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ARCtrl_ISA_OntologyAnnotation__OntologyAnnotation_getColumnIndex_Static_Z4C0FE73C(f) {
|
|
84
|
+
return value(tryGetOntologyAnnotationIndex(f));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ARCtrl_ISA_OntologyAnnotation__OntologyAnnotation_GetColumnIndex(this$) {
|
|
88
|
+
return value(tryGetOntologyAnnotationIndex(this$));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ARCtrl_ISA_OntologyAnnotation__OntologyAnnotation_tryGetColumnIndex_Static_Z4C0FE73C(f) {
|
|
92
|
+
return tryGetOntologyAnnotationIndex(f);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function ARCtrl_ISA_OntologyAnnotation__OntologyAnnotation_TryGetColumnIndex(this$) {
|
|
96
|
+
return tryGetOntologyAnnotationIndex(this$);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function ARCtrl_ISA_OntologyAnnotation__OntologyAnnotation_setColumnIndex_Static(i, oa) {
|
|
100
|
+
return setOntologyAnnotationIndex(i, oa);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function ARCtrl_ISA_OntologyAnnotation__OntologyAnnotation_SetColumnIndex_Z524259A4(this$, i) {
|
|
104
|
+
return setOntologyAnnotationIndex(i, this$);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Create a ISAJson Factor from ISATab string entries
|
|
109
|
+
*/
|
|
110
|
+
export function ARCtrl_ISA_Factor__Factor_fromStringWithColumnIndex_Static(name, term, source, accession, valueIndex) {
|
|
111
|
+
return Factor.fromString(name, term, source, accession, [createOrderComment(valueIndex)]);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function ARCtrl_ISA_Factor__Factor_getColumnIndex_Static_Z55333BD7(f) {
|
|
115
|
+
return value(tryGetFactorIndex(f));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function ARCtrl_ISA_Factor__Factor_GetColumnIndex(this$) {
|
|
119
|
+
return value(tryGetFactorIndex(this$));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function ARCtrl_ISA_Factor__Factor_tryGetColumnIndex_Static_Z55333BD7(f) {
|
|
123
|
+
return tryGetFactorIndex(f);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function ARCtrl_ISA_Factor__Factor_TryGetColumnIndex(this$) {
|
|
127
|
+
return tryGetFactorIndex(this$);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function ARCtrl_ISA_FactorValue__FactorValue_getColumnIndex_Static_Z2623397E(f) {
|
|
131
|
+
return value(tryGetFactorColumnIndex(f));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function ARCtrl_ISA_FactorValue__FactorValue_GetColumnIndex(this$) {
|
|
135
|
+
return value(tryGetFactorColumnIndex(this$));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function ARCtrl_ISA_FactorValue__FactorValue_tryGetColumnIndex_Static_Z2623397E(f) {
|
|
139
|
+
return tryGetFactorColumnIndex(f);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function ARCtrl_ISA_FactorValue__FactorValue_TryGetColumnIndex(this$) {
|
|
143
|
+
return tryGetFactorColumnIndex(this$);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Create a ISAJson characteristic from ISATab string entries
|
|
148
|
+
*/
|
|
149
|
+
export function ARCtrl_ISA_MaterialAttribute__MaterialAttribute_fromStringWithColumnIndex_Static(term, source, accession, valueIndex) {
|
|
150
|
+
return MaterialAttribute_fromString_Z2304A83C(term, source, accession, [createOrderComment(valueIndex)]);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function ARCtrl_ISA_MaterialAttribute__MaterialAttribute_getColumnIndex_Static_Z5F39696D(m) {
|
|
154
|
+
return value(tryGetCharacteristicIndex(m));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function ARCtrl_ISA_MaterialAttribute__MaterialAttribute_GetColumnIndex(this$) {
|
|
158
|
+
return value(tryGetCharacteristicIndex(this$));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function ARCtrl_ISA_MaterialAttribute__MaterialAttribute_tryGetColumnIndex_Static_Z5F39696D(m) {
|
|
162
|
+
return tryGetCharacteristicIndex(m);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function ARCtrl_ISA_MaterialAttribute__MaterialAttribute_TryGetColumnIndex(this$) {
|
|
166
|
+
return tryGetCharacteristicIndex(this$);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function ARCtrl_ISA_MaterialAttributeValue__MaterialAttributeValue_getColumnIndex_Static_43A5B238(m) {
|
|
170
|
+
return value(tryGetCharacteristicColumnIndex(m));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function ARCtrl_ISA_MaterialAttributeValue__MaterialAttributeValue_GetColumnIndex(this$) {
|
|
174
|
+
return value(tryGetCharacteristicColumnIndex(this$));
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function ARCtrl_ISA_MaterialAttributeValue__MaterialAttributeValue_tryGetColumnIndex_Static_43A5B238(m) {
|
|
178
|
+
return tryGetCharacteristicColumnIndex(m);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function ARCtrl_ISA_MaterialAttributeValue__MaterialAttributeValue_TryGetColumnIndex(this$) {
|
|
182
|
+
return tryGetCharacteristicColumnIndex(this$);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Create a ISAJson parameter from ISATab string entries
|
|
187
|
+
*/
|
|
188
|
+
export function ARCtrl_ISA_ProtocolParameter__ProtocolParameter_fromStringWithColumnIndex_Static(term, source, accession, valueIndex) {
|
|
189
|
+
return ProtocolParameter_fromString_Z2304A83C(term, source, accession, [createOrderComment(valueIndex)]);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export function ARCtrl_ISA_ProtocolParameter__ProtocolParameter_getColumnIndex_Static_Z3A4310A5(p) {
|
|
193
|
+
return value(tryGetParameterIndex(p));
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export function ARCtrl_ISA_ProtocolParameter__ProtocolParameter_GetColumnIndex(this$) {
|
|
197
|
+
return value(tryGetParameterIndex(this$));
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export function ARCtrl_ISA_ProtocolParameter__ProtocolParameter_tryGetColumnIndex_Static_Z3A4310A5(p) {
|
|
201
|
+
return tryGetParameterIndex(p);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function ARCtrl_ISA_ProtocolParameter__ProtocolParameter_TryGetColumnIndex(this$) {
|
|
205
|
+
return tryGetParameterIndex(this$);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export function ARCtrl_ISA_ProcessParameterValue__ProcessParameterValue_getColumnIndex_Static_5FD7232D(p) {
|
|
209
|
+
return value(tryGetParameterColumnIndex(p));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export function ARCtrl_ISA_ProcessParameterValue__ProcessParameterValue_GetColumnIndex(this$) {
|
|
213
|
+
return value(tryGetParameterColumnIndex(this$));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export function ARCtrl_ISA_ProcessParameterValue__ProcessParameterValue_tryGetColumnIndex_Static_5FD7232D(p) {
|
|
217
|
+
return tryGetParameterColumnIndex(p);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function ARCtrl_ISA_ProcessParameterValue__ProcessParameterValue_TryGetColumnIndex(this$) {
|
|
221
|
+
return tryGetParameterColumnIndex(this$);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Create a ISAJson Factor from ISATab string entries
|
|
226
|
+
*/
|
|
227
|
+
export function ARCtrl_ISA_Component__Component_fromStringWithColumnIndex_Static(name, term, source, accession, valueIndex) {
|
|
228
|
+
return Component_fromString_Z61E08C1(name, term, source, accession, [createOrderComment(valueIndex)]);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export function ARCtrl_ISA_Component__Component_getColumnIndex_Static_Z609B8895(f) {
|
|
232
|
+
return value(tryGetComponentIndex(f));
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export function ARCtrl_ISA_Component__Component_GetColumnIndex(this$) {
|
|
236
|
+
return value(tryGetComponentIndex(this$));
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export function ARCtrl_ISA_Component__Component_tryGetColumnIndex_Static_Z609B8895(f) {
|
|
240
|
+
return tryGetComponentIndex(f);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export function ARCtrl_ISA_Component__Component_TryGetColumnIndex(this$) {
|
|
244
|
+
return tryGetComponentIndex(this$);
|
|
245
|
+
}
|
|
246
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defaultArg } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
2
|
+
import { Record } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
3
|
+
import { int32_type, record_type, option_type, string_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
4
|
+
|
|
5
|
+
export class Comment$ extends Record {
|
|
6
|
+
constructor(ID, Name, Value) {
|
|
7
|
+
super();
|
|
8
|
+
this.ID = ID;
|
|
9
|
+
this.Name = Name;
|
|
10
|
+
this.Value = Value;
|
|
11
|
+
}
|
|
12
|
+
static make(id, name, value) {
|
|
13
|
+
return new Comment$(id, name, value);
|
|
14
|
+
}
|
|
15
|
+
static create(Id, Name, Value) {
|
|
16
|
+
return Comment$.make(Id, Name, Value);
|
|
17
|
+
}
|
|
18
|
+
static fromString(name, value) {
|
|
19
|
+
return Comment$.create(void 0, name, value);
|
|
20
|
+
}
|
|
21
|
+
static toString(comment) {
|
|
22
|
+
return [defaultArg(comment.Name, ""), defaultArg(comment.Value, "")];
|
|
23
|
+
}
|
|
24
|
+
Copy() {
|
|
25
|
+
const this$ = this;
|
|
26
|
+
return Comment$.make(this$.ID, this$.Name, this$.Value);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function Comment$_$reflection() {
|
|
31
|
+
return record_type("ARCtrl.ISA.Comment", [], Comment$, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["Value", option_type(string_type)]]);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export class Remark extends Record {
|
|
35
|
+
constructor(Line, Value) {
|
|
36
|
+
super();
|
|
37
|
+
this.Line = (Line | 0);
|
|
38
|
+
this.Value = Value;
|
|
39
|
+
}
|
|
40
|
+
static make(line, value) {
|
|
41
|
+
return new Remark(line, value);
|
|
42
|
+
}
|
|
43
|
+
static create(line, value) {
|
|
44
|
+
return Remark.make(line, value);
|
|
45
|
+
}
|
|
46
|
+
static toTuple(remark) {
|
|
47
|
+
return [remark.Line, remark.Value];
|
|
48
|
+
}
|
|
49
|
+
Copy() {
|
|
50
|
+
const this$ = this;
|
|
51
|
+
return Remark.make(this$.Line, this$.Value);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function Remark_$reflection() {
|
|
56
|
+
return record_type("ARCtrl.ISA.Remark", [], Remark, () => [["Line", int32_type], ["Value", string_type]]);
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { map, append, choose, tryPick } from "../../../fable_modules/fable-library.4.1.4/Array.js";
|
|
2
|
+
import { value } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
3
|
+
import { ofArray } from "../../../fable_modules/fable-library.4.1.4/Map.js";
|
|
4
|
+
import { equals, comparePrimitives } from "../../../fable_modules/fable-library.4.1.4/Util.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* If a comment with the given key exists in the [], return its value, else return None
|
|
8
|
+
*/
|
|
9
|
+
export function tryItem(key, comments) {
|
|
10
|
+
return tryPick((c) => {
|
|
11
|
+
const matchValue = c.Name;
|
|
12
|
+
let matchResult, n_1;
|
|
13
|
+
if (matchValue != null) {
|
|
14
|
+
if (matchValue === key) {
|
|
15
|
+
matchResult = 0;
|
|
16
|
+
n_1 = matchValue;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
matchResult = 1;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
matchResult = 1;
|
|
24
|
+
}
|
|
25
|
+
switch (matchResult) {
|
|
26
|
+
case 0:
|
|
27
|
+
return c.Value;
|
|
28
|
+
default:
|
|
29
|
+
return void 0;
|
|
30
|
+
}
|
|
31
|
+
}, comments);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Returns true, if the key exists in the []
|
|
36
|
+
*/
|
|
37
|
+
export function containsKey(key, comments) {
|
|
38
|
+
return comments.some((c) => {
|
|
39
|
+
const matchValue = c.Name;
|
|
40
|
+
let matchResult, n_1;
|
|
41
|
+
if (matchValue != null) {
|
|
42
|
+
if (matchValue === key) {
|
|
43
|
+
matchResult = 0;
|
|
44
|
+
n_1 = matchValue;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
matchResult = 1;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
matchResult = 1;
|
|
52
|
+
}
|
|
53
|
+
switch (matchResult) {
|
|
54
|
+
case 0:
|
|
55
|
+
return true;
|
|
56
|
+
default:
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* If a comment with the given key exists in the [], return its value
|
|
64
|
+
*/
|
|
65
|
+
export function item(key, comments) {
|
|
66
|
+
return value(tryItem(key, comments));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Create a map of comment keys to comment values
|
|
71
|
+
*/
|
|
72
|
+
export function toMap(comments) {
|
|
73
|
+
return ofArray(choose((c) => {
|
|
74
|
+
const matchValue = c.Name;
|
|
75
|
+
if (matchValue != null) {
|
|
76
|
+
return [matchValue, c.Value];
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return void 0;
|
|
80
|
+
}
|
|
81
|
+
}, comments), {
|
|
82
|
+
Compare: comparePrimitives,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Adds the given comment to the comment []
|
|
88
|
+
*/
|
|
89
|
+
export function add(comment, comments) {
|
|
90
|
+
return append(comments, [comment]);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Add the given comment to the comment [] if it doesnt exist, else replace it
|
|
95
|
+
*/
|
|
96
|
+
export function set$(comment, comments) {
|
|
97
|
+
if (containsKey(value(comment.Name), comments)) {
|
|
98
|
+
return map((c) => {
|
|
99
|
+
if (equals(c.Name, comment.Name)) {
|
|
100
|
+
return comment;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
return c;
|
|
104
|
+
}
|
|
105
|
+
}, comments);
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
return append(comments, [comment]);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Returns a new comment [] where comments with the given key are filtered out
|
|
114
|
+
*/
|
|
115
|
+
export function dropByKey(key, comments) {
|
|
116
|
+
return comments.filter((c) => {
|
|
117
|
+
const matchValue = c.Name;
|
|
118
|
+
let matchResult, n_1;
|
|
119
|
+
if (matchValue != null) {
|
|
120
|
+
if (matchValue === key) {
|
|
121
|
+
matchResult = 0;
|
|
122
|
+
n_1 = matchValue;
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
matchResult = 1;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
matchResult = 1;
|
|
130
|
+
}
|
|
131
|
+
switch (matchResult) {
|
|
132
|
+
case 0:
|
|
133
|
+
return false;
|
|
134
|
+
default:
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Record } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
2
|
+
import { record_type, option_type, string_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
3
|
+
import { Value as Value_1, Value_fromString_Z721C83C5, Value__get_Text, Value_$reflection } from "./Value.js";
|
|
4
|
+
import { OntologyAnnotation, OntologyAnnotation_$reflection } from "./OntologyAnnotation.js";
|
|
5
|
+
import { create, match } from "../../../fable_modules/fable-library.4.1.4/RegExp.js";
|
|
6
|
+
import { AnnotationValue } from "./AnnotationValue.js";
|
|
7
|
+
import { map, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
8
|
+
import { Option_fromValueWithDefault } from "../Helper.js";
|
|
9
|
+
import { printf, toText } from "../../../fable_modules/fable-library.4.1.4/String.js";
|
|
10
|
+
|
|
11
|
+
export class Component extends Record {
|
|
12
|
+
constructor(ComponentName, ComponentValue, ComponentUnit, ComponentType) {
|
|
13
|
+
super();
|
|
14
|
+
this.ComponentName = ComponentName;
|
|
15
|
+
this.ComponentValue = ComponentValue;
|
|
16
|
+
this.ComponentUnit = ComponentUnit;
|
|
17
|
+
this.ComponentType = ComponentType;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function Component_$reflection() {
|
|
22
|
+
return record_type("ARCtrl.ISA.Component", [], Component, () => [["ComponentName", option_type(string_type)], ["ComponentValue", option_type(Value_$reflection())], ["ComponentUnit", option_type(OntologyAnnotation_$reflection())], ["ComponentType", option_type(OntologyAnnotation_$reflection())]]);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export function Component_make(name, value, unit, componentType) {
|
|
26
|
+
return new Component(name, value, unit, componentType);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function Component_create_61502994(Name, Value, Unit, ComponentType) {
|
|
30
|
+
return Component_make(Name, Value, Unit, ComponentType);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function Component_get_empty() {
|
|
34
|
+
return Component_create_61502994();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* This function creates a string containing full isa term triplet information about the component
|
|
39
|
+
*
|
|
40
|
+
* Components do not have enough fields in ISA-JSON to include all existing ontology term information.
|
|
41
|
+
* This function allows us, to add the same information as `Parameter`, `Characteristics`.., to `Component`.
|
|
42
|
+
* Without this string composition we loose the ontology information for the header value.
|
|
43
|
+
*/
|
|
44
|
+
export function Component_composeName(value, unit) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return "";
|
|
47
|
+
}
|
|
48
|
+
else if (value.tag === 0) {
|
|
49
|
+
const oa = value.fields[0];
|
|
50
|
+
return `${oa.NameText} (${oa.TermAccessionShort})`;
|
|
51
|
+
}
|
|
52
|
+
else if (unit != null) {
|
|
53
|
+
const u = unit;
|
|
54
|
+
const v_1 = value;
|
|
55
|
+
return `${Value__get_Text(v_1)} ${u.NameText} (${u.TermAccessionShort})`;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
const v = value;
|
|
59
|
+
return `${Value__get_Text(v)}`;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* This function parses the given Component header string format into the ISA-JSON Component type
|
|
65
|
+
*
|
|
66
|
+
* Components do not have enough fields in ISA-JSON to include all existing ontology term information.
|
|
67
|
+
* This function allows us, to add the same information as `Parameter`, `Characteristics`.., to `Component`.
|
|
68
|
+
* Without this string composition we loose the ontology information for the header value.
|
|
69
|
+
*/
|
|
70
|
+
export function Component_decomposeName_Z721C83C5(name) {
|
|
71
|
+
const r = match(create("(?<value>[^\\(]+) \\((?<ontology>[^(]*:[^)]*)\\)"), name);
|
|
72
|
+
const unitr = match(create("(?<value>[\\d\\.]+) (?<unit>.+) \\((?<ontology>[^(]*:[^)]*)\\)"), name);
|
|
73
|
+
if (unitr != null) {
|
|
74
|
+
let oa;
|
|
75
|
+
const arg = (unitr.groups && unitr.groups.ontology) || "";
|
|
76
|
+
oa = OntologyAnnotation.fromTermAnnotation(arg);
|
|
77
|
+
return [Value_fromString_Z721C83C5((unitr.groups && unitr.groups.value) || ""), new OntologyAnnotation(oa.ID, new AnnotationValue(0, [(unitr.groups && unitr.groups.unit) || ""]), oa.TermSourceREF, oa.TermAccessionNumber, oa.Comments)];
|
|
78
|
+
}
|
|
79
|
+
else if (r != null) {
|
|
80
|
+
let oa_1;
|
|
81
|
+
const arg_2 = (r.groups && r.groups.ontology) || "";
|
|
82
|
+
oa_1 = OntologyAnnotation.fromTermAnnotation(arg_2);
|
|
83
|
+
return [new Value_1(0, [new OntologyAnnotation(oa_1.ID, new AnnotationValue(0, [Value__get_Text(Value_fromString_Z721C83C5((r.groups && r.groups.value) || ""))]), oa_1.TermSourceREF, oa_1.TermAccessionNumber, oa_1.Comments)]), void 0];
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return [new Value_1(3, [name]), void 0];
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Create a ISAJson Component from ISATab string entries
|
|
92
|
+
*/
|
|
93
|
+
export function Component_fromString_Z61E08C1(name, term, source, accession, comments) {
|
|
94
|
+
let cType;
|
|
95
|
+
const v = OntologyAnnotation.fromString(unwrap(term), unwrap(source), unwrap(accession), unwrap(comments));
|
|
96
|
+
cType = Option_fromValueWithDefault(OntologyAnnotation.empty, v);
|
|
97
|
+
if (name == null) {
|
|
98
|
+
return Component_make(void 0, void 0, void 0, cType);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
const patternInput = Component_decomposeName_Z721C83C5(name);
|
|
102
|
+
return Component_make(name, Option_fromValueWithDefault(new Value_1(3, [""]), patternInput[0]), patternInput[1], cType);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function Component_fromOptions(value, unit, header) {
|
|
107
|
+
return Component_make(Option_fromValueWithDefault("", Component_composeName(value, unit)), value, unit, header);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Get ISATab string entries from an ISAJson Component object
|
|
112
|
+
*/
|
|
113
|
+
export function Component_toString_Z609B8895(c) {
|
|
114
|
+
let oa;
|
|
115
|
+
const value = {
|
|
116
|
+
TermAccessionNumber: "",
|
|
117
|
+
TermName: "",
|
|
118
|
+
TermSourceREF: "",
|
|
119
|
+
};
|
|
120
|
+
oa = defaultArg(map((arg) => OntologyAnnotation.toString(arg), c.ComponentType), value);
|
|
121
|
+
return [defaultArg(c.ComponentName, ""), oa];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function Component__get_NameText(this$) {
|
|
125
|
+
return defaultArg(map((c) => c.NameText, this$.ComponentType), "");
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Returns the ontology of the category of the Value as string
|
|
130
|
+
*/
|
|
131
|
+
export function Component__get_UnitText(this$) {
|
|
132
|
+
return defaultArg(map((c) => c.NameText, this$.ComponentUnit), "");
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function Component__get_ValueText(this$) {
|
|
136
|
+
return defaultArg(map(Value__get_Text, this$.ComponentValue), "");
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function Component__get_ValueWithUnitText(this$) {
|
|
140
|
+
const unit = map((oa) => oa.NameText, this$.ComponentUnit);
|
|
141
|
+
const v = Component__get_ValueText(this$);
|
|
142
|
+
if (unit == null) {
|
|
143
|
+
return v;
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
const u = unit;
|
|
147
|
+
return toText(printf("%s %s"))(v)(u);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function Component__MapCategory_Z69DD836A(this$, f) {
|
|
152
|
+
return new Component(this$.ComponentName, this$.ComponentValue, this$.ComponentUnit, map(f, this$.ComponentType));
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function Component__SetCategory_Z4C0FE73C(this$, c) {
|
|
156
|
+
return new Component(this$.ComponentName, this$.ComponentValue, this$.ComponentUnit, c);
|
|
157
|
+
}
|
|
158
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Record, toString } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
2
|
+
import { printf, toText } from "../../../fable_modules/fable-library.4.1.4/String.js";
|
|
3
|
+
import { DataFile_$reflection, DataFile__get_AsString } from "./DataFile.js";
|
|
4
|
+
import { record_type, list_type, option_type, string_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
5
|
+
import { Comment$_$reflection } from "./Comment.js";
|
|
6
|
+
import { defaultArg } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
7
|
+
|
|
8
|
+
export class Data extends Record {
|
|
9
|
+
constructor(ID, Name, DataType, Comments) {
|
|
10
|
+
super();
|
|
11
|
+
this.ID = ID;
|
|
12
|
+
this.Name = Name;
|
|
13
|
+
this.DataType = DataType;
|
|
14
|
+
this.Comments = Comments;
|
|
15
|
+
}
|
|
16
|
+
Print() {
|
|
17
|
+
const this$ = this;
|
|
18
|
+
return toString(this$);
|
|
19
|
+
}
|
|
20
|
+
PrintCompact() {
|
|
21
|
+
const this$ = this;
|
|
22
|
+
const matchValue = this$.DataType;
|
|
23
|
+
if (matchValue == null) {
|
|
24
|
+
const arg_2 = Data__get_NameAsString(this$);
|
|
25
|
+
return toText(printf("%s"))(arg_2);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
const t = matchValue;
|
|
29
|
+
const arg = Data__get_NameAsString(this$);
|
|
30
|
+
const arg_1 = DataFile__get_AsString(t);
|
|
31
|
+
return toText(printf("%s [%s]"))(arg)(arg_1);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function Data_$reflection() {
|
|
37
|
+
return record_type("ARCtrl.ISA.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
|
+
}
|
|
39
|
+
|
|
40
|
+
export function Data_make(id, name, dataType, comments) {
|
|
41
|
+
return new Data(id, name, dataType, comments);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function Data_create_Z326CF519(Id, Name, DataType, Comments) {
|
|
45
|
+
return Data_make(Id, Name, DataType, Comments);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function Data_get_empty() {
|
|
49
|
+
return Data_create_Z326CF519();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function Data__get_NameAsString(this$) {
|
|
53
|
+
return defaultArg(this$.Name, "");
|
|
54
|
+
}
|
|
55
|
+
|