@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,2018 @@
|
|
|
1
|
+
import { map as map_1, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
2
|
+
import { ArcTables_updateReferenceTablesBySheets_Z2EE88E97, ArcTables_fromProcesses_134EBDED, ArcTables__get_Tables, ArcTables__GetProcesses, ArcTables__GetRow_Z18115A39, ArcTables__GetRowAt_Z37302880, ArcTables__UpdateRow_1BFE2CFB, ArcTables__UpdateRowAt_1CF7B5DC, ArcTables__RemoveRow_Z18115A39, ArcTables__RemoveRowAt_Z37302880, ArcTables__AddRow_Z16315DE5, ArcTables__AddRowAt_Z12CDB784, ArcTables__GetColumn_Z18115A39, ArcTables__GetColumnAt_Z37302880, ArcTables__UpdateColumn_Z6083042A, ArcTables__UpdateColumnAt_21300791, ArcTables__RemoveColumn_Z18115A39, ArcTables__RemoveColumnAt_Z37302880, ArcTables__AddColumn_1FF50D3C, ArcTables__AddColumnAt_6A9784DB, ArcTables__RenameTable_Z384F8060, ArcTables__RenameTableAt_Z176EF219, ArcTables__MapTable_27DD7B1B, ArcTables__MapTableAt_8FC095C, ArcTables__RemoveTable_Z721C83C5, ArcTables__RemoveTableAt_Z524259A4, ArcTables__SetTable_51766571, ArcTables__SetTableAt_7E571736, ArcTables__UpdateTable_51766571, ArcTables__UpdateTableAt_7E571736, ArcTables__GetTable_Z721C83C5, ArcTables__GetTableAt_Z524259A4, ArcTables__InitTables_7B28792B, ArcTables__InitTable_3B406CA4, ArcTables__AddTables_Z2D453886, ArcTables__AddTable_EC12B15, ArcTables__get_TableNames, ArcTables_$ctor_Z18C2F36D, ArcTables__get_Count } from "./ArcTables.js";
|
|
3
|
+
import { concat, toList, tryFind, removeAt, tryFindIndex, map as map_2, contains, filter, toArray } from "../../../fable_modules/fable-library.4.1.4/Seq.js";
|
|
4
|
+
import { defaultOf, safeHash, equals, disposeSafe, getEnumerator, stringHash } from "../../../fable_modules/fable-library.4.1.4/Util.js";
|
|
5
|
+
import { tryFind as tryFind_1, removeInPlace, equalsWith, append as append_3, contains as contains_1, map } from "../../../fable_modules/fable-library.4.1.4/Array.js";
|
|
6
|
+
import { distinctBy, Array_distinct } from "../../../fable_modules/fable-library.4.1.4/Seq2.js";
|
|
7
|
+
import { printf, toText } from "../../../fable_modules/fable-library.4.1.4/String.js";
|
|
8
|
+
import { create, match } from "../../../fable_modules/fable-library.4.1.4/RegExp.js";
|
|
9
|
+
import { OntologyAnnotation } from "../JsonTypes/OntologyAnnotation.js";
|
|
10
|
+
import { Value_fromString_Z721C83C5, Value__get_Text } from "../JsonTypes/Value.js";
|
|
11
|
+
import { AnnotationValue } from "../JsonTypes/AnnotationValue.js";
|
|
12
|
+
import { AssayMaterials_get_empty, AssayMaterials_create_Z253F0553 } from "../JsonTypes/AssayMaterials.js";
|
|
13
|
+
import { Option_fromValueWithDefault } from "../Helper.js";
|
|
14
|
+
import { unzip, ofSeq, map as map_3, toArray as toArray_1, ofArray, empty } from "../../../fable_modules/fable-library.4.1.4/List.js";
|
|
15
|
+
import { getSources, getProtocols, getUnits, getCharacteristics, getData, getMaterials, getSamples } from "../JsonTypes/ProcessSequence.js";
|
|
16
|
+
import { Assay_create_3D372A24 } from "../JsonTypes/Assay.js";
|
|
17
|
+
import { Study_identifierFromFileName, Study_fileNameFromIdentifier, Assay_identifierFromFileName, createMissingIdentifier, Assay_fileNameFromIdentifier, isMissingIdentifier } from "../Identifier.js";
|
|
18
|
+
import { class_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
19
|
+
import { StudyMaterials_get_empty, StudyMaterials_create_1BE9FA55 } from "../JsonTypes/StudyMaterials.js";
|
|
20
|
+
import { Study_create_Z2D28E954 } from "../JsonTypes/Study.js";
|
|
21
|
+
import { Investigation_create_4AD66BBE } from "../JsonTypes/Investigation.js";
|
|
22
|
+
import { FSharpRef } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
23
|
+
|
|
24
|
+
export class ArcAssay {
|
|
25
|
+
constructor(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments) {
|
|
26
|
+
const tables_1 = defaultArg(tables, []);
|
|
27
|
+
const performers_1 = defaultArg(performers, []);
|
|
28
|
+
const comments_1 = defaultArg(comments, []);
|
|
29
|
+
this["identifier@86"] = identifier;
|
|
30
|
+
this.investigation = void 0;
|
|
31
|
+
this["MeasurementType@"] = measurementType;
|
|
32
|
+
this["TechnologyType@"] = technologyType;
|
|
33
|
+
this["TechnologyPlatform@"] = technologyPlatform;
|
|
34
|
+
this["Tables@"] = tables_1;
|
|
35
|
+
this["Performers@"] = performers_1;
|
|
36
|
+
this["Comments@"] = comments_1;
|
|
37
|
+
}
|
|
38
|
+
get Identifier() {
|
|
39
|
+
const this$ = this;
|
|
40
|
+
return this$["identifier@86"];
|
|
41
|
+
}
|
|
42
|
+
set Identifier(i) {
|
|
43
|
+
const this$ = this;
|
|
44
|
+
this$["identifier@86"] = i;
|
|
45
|
+
}
|
|
46
|
+
get Investigation() {
|
|
47
|
+
const this$ = this;
|
|
48
|
+
return unwrap(this$.investigation);
|
|
49
|
+
}
|
|
50
|
+
set Investigation(i) {
|
|
51
|
+
const this$ = this;
|
|
52
|
+
this$.investigation = i;
|
|
53
|
+
}
|
|
54
|
+
static get FileName() {
|
|
55
|
+
return "isa.assay.xlsx";
|
|
56
|
+
}
|
|
57
|
+
get MeasurementType() {
|
|
58
|
+
const __ = this;
|
|
59
|
+
return unwrap(__["MeasurementType@"]);
|
|
60
|
+
}
|
|
61
|
+
set MeasurementType(v) {
|
|
62
|
+
const __ = this;
|
|
63
|
+
__["MeasurementType@"] = v;
|
|
64
|
+
}
|
|
65
|
+
get TechnologyType() {
|
|
66
|
+
const __ = this;
|
|
67
|
+
return unwrap(__["TechnologyType@"]);
|
|
68
|
+
}
|
|
69
|
+
set TechnologyType(v) {
|
|
70
|
+
const __ = this;
|
|
71
|
+
__["TechnologyType@"] = v;
|
|
72
|
+
}
|
|
73
|
+
get TechnologyPlatform() {
|
|
74
|
+
const __ = this;
|
|
75
|
+
return unwrap(__["TechnologyPlatform@"]);
|
|
76
|
+
}
|
|
77
|
+
set TechnologyPlatform(v) {
|
|
78
|
+
const __ = this;
|
|
79
|
+
__["TechnologyPlatform@"] = v;
|
|
80
|
+
}
|
|
81
|
+
get Tables() {
|
|
82
|
+
const __ = this;
|
|
83
|
+
return __["Tables@"];
|
|
84
|
+
}
|
|
85
|
+
set Tables(v) {
|
|
86
|
+
const __ = this;
|
|
87
|
+
__["Tables@"] = v;
|
|
88
|
+
}
|
|
89
|
+
get Performers() {
|
|
90
|
+
const __ = this;
|
|
91
|
+
return __["Performers@"];
|
|
92
|
+
}
|
|
93
|
+
set Performers(v) {
|
|
94
|
+
const __ = this;
|
|
95
|
+
__["Performers@"] = v;
|
|
96
|
+
}
|
|
97
|
+
get Comments() {
|
|
98
|
+
const __ = this;
|
|
99
|
+
return __["Comments@"];
|
|
100
|
+
}
|
|
101
|
+
set Comments(v) {
|
|
102
|
+
const __ = this;
|
|
103
|
+
__["Comments@"] = v;
|
|
104
|
+
}
|
|
105
|
+
static init(identifier) {
|
|
106
|
+
return new ArcAssay(identifier);
|
|
107
|
+
}
|
|
108
|
+
static create(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments) {
|
|
109
|
+
return new ArcAssay(identifier, unwrap(measurementType), unwrap(technologyType), unwrap(technologyPlatform), unwrap(tables), unwrap(performers), unwrap(comments));
|
|
110
|
+
}
|
|
111
|
+
static make(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments) {
|
|
112
|
+
return new ArcAssay(identifier, unwrap(measurementType), unwrap(technologyType), unwrap(technologyPlatform), tables, performers, comments);
|
|
113
|
+
}
|
|
114
|
+
get TableCount() {
|
|
115
|
+
const this$ = this;
|
|
116
|
+
return ArcTables__get_Count(ArcTables_$ctor_Z18C2F36D(this$.Tables)) | 0;
|
|
117
|
+
}
|
|
118
|
+
get TableNames() {
|
|
119
|
+
const this$ = this;
|
|
120
|
+
return ArcTables__get_TableNames(ArcTables_$ctor_Z18C2F36D(this$.Tables));
|
|
121
|
+
}
|
|
122
|
+
get StudiesRegisteredIn() {
|
|
123
|
+
const this$ = this;
|
|
124
|
+
const matchValue = this$.Investigation;
|
|
125
|
+
if (matchValue == null) {
|
|
126
|
+
return [];
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
const i = matchValue;
|
|
130
|
+
return toArray(filter((s) => {
|
|
131
|
+
const source = s.RegisteredAssayIdentifiers;
|
|
132
|
+
return contains(this$.Identifier, source, {
|
|
133
|
+
Equals: (x, y) => (x === y),
|
|
134
|
+
GetHashCode: stringHash,
|
|
135
|
+
});
|
|
136
|
+
}, i.Studies));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
AddTable(table, index) {
|
|
140
|
+
const this$ = this;
|
|
141
|
+
ArcTables__AddTable_EC12B15(ArcTables_$ctor_Z18C2F36D(this$.Tables), table, unwrap(index));
|
|
142
|
+
}
|
|
143
|
+
static addTable(table, index) {
|
|
144
|
+
return (assay) => {
|
|
145
|
+
const c = assay.Copy();
|
|
146
|
+
c.AddTable(table, unwrap(index));
|
|
147
|
+
return c;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
AddTables(tables, index) {
|
|
151
|
+
const this$ = this;
|
|
152
|
+
ArcTables__AddTables_Z2D453886(ArcTables_$ctor_Z18C2F36D(this$.Tables), tables, unwrap(index));
|
|
153
|
+
}
|
|
154
|
+
static addTables(tables, index) {
|
|
155
|
+
return (assay) => {
|
|
156
|
+
const c = assay.Copy();
|
|
157
|
+
c.AddTables(tables, unwrap(index));
|
|
158
|
+
return c;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
InitTable(tableName, index) {
|
|
162
|
+
const this$ = this;
|
|
163
|
+
return ArcTables__InitTable_3B406CA4(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, unwrap(index));
|
|
164
|
+
}
|
|
165
|
+
static initTable(tableName, index) {
|
|
166
|
+
return (assay) => {
|
|
167
|
+
const c = assay.Copy();
|
|
168
|
+
return [c, c.InitTable(tableName, unwrap(index))];
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
InitTables(tableNames, index) {
|
|
172
|
+
const this$ = this;
|
|
173
|
+
ArcTables__InitTables_7B28792B(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableNames, unwrap(index));
|
|
174
|
+
}
|
|
175
|
+
static initTables(tableNames, index) {
|
|
176
|
+
return (assay) => {
|
|
177
|
+
const c = assay.Copy();
|
|
178
|
+
c.InitTables(tableNames, unwrap(index));
|
|
179
|
+
return c;
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
GetTableAt(index) {
|
|
183
|
+
const this$ = this;
|
|
184
|
+
return ArcTables__GetTableAt_Z524259A4(ArcTables_$ctor_Z18C2F36D(this$.Tables), index);
|
|
185
|
+
}
|
|
186
|
+
static getTableAt(index) {
|
|
187
|
+
return (assay) => {
|
|
188
|
+
const newAssay = assay.Copy();
|
|
189
|
+
return newAssay.GetTableAt(index);
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
GetTable(name) {
|
|
193
|
+
const this$ = this;
|
|
194
|
+
return ArcTables__GetTable_Z721C83C5(ArcTables_$ctor_Z18C2F36D(this$.Tables), name);
|
|
195
|
+
}
|
|
196
|
+
static getTable(name) {
|
|
197
|
+
return (assay) => {
|
|
198
|
+
const newAssay = assay.Copy();
|
|
199
|
+
return newAssay.GetTable(name);
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
UpdateTableAt(index, table) {
|
|
203
|
+
const this$ = this;
|
|
204
|
+
ArcTables__UpdateTableAt_7E571736(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, table);
|
|
205
|
+
}
|
|
206
|
+
static updateTableAt(index, table) {
|
|
207
|
+
return (assay) => {
|
|
208
|
+
const newAssay = assay.Copy();
|
|
209
|
+
newAssay.UpdateTableAt(index, table);
|
|
210
|
+
return newAssay;
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
UpdateTable(name, table) {
|
|
214
|
+
const this$ = this;
|
|
215
|
+
ArcTables__UpdateTable_51766571(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, table);
|
|
216
|
+
}
|
|
217
|
+
static updateTable(name, table) {
|
|
218
|
+
return (assay) => {
|
|
219
|
+
const newAssay = assay.Copy();
|
|
220
|
+
newAssay.UpdateTable(name, table);
|
|
221
|
+
return newAssay;
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
SetTableAt(index, table) {
|
|
225
|
+
const this$ = this;
|
|
226
|
+
ArcTables__SetTableAt_7E571736(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, table);
|
|
227
|
+
}
|
|
228
|
+
static setTableAt(index, table) {
|
|
229
|
+
return (assay) => {
|
|
230
|
+
const newAssay = assay.Copy();
|
|
231
|
+
newAssay.SetTableAt(index, table);
|
|
232
|
+
return newAssay;
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
SetTable(name, table) {
|
|
236
|
+
const this$ = this;
|
|
237
|
+
ArcTables__SetTable_51766571(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, table);
|
|
238
|
+
}
|
|
239
|
+
static setTable(name, table) {
|
|
240
|
+
return (assay) => {
|
|
241
|
+
const newAssay = assay.Copy();
|
|
242
|
+
newAssay.SetTable(name, table);
|
|
243
|
+
return newAssay;
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
RemoveTableAt(index) {
|
|
247
|
+
const this$ = this;
|
|
248
|
+
ArcTables__RemoveTableAt_Z524259A4(ArcTables_$ctor_Z18C2F36D(this$.Tables), index);
|
|
249
|
+
}
|
|
250
|
+
static removeTableAt(index) {
|
|
251
|
+
return (assay) => {
|
|
252
|
+
const newAssay = assay.Copy();
|
|
253
|
+
newAssay.RemoveTableAt(index);
|
|
254
|
+
return newAssay;
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
RemoveTable(name) {
|
|
258
|
+
const this$ = this;
|
|
259
|
+
ArcTables__RemoveTable_Z721C83C5(ArcTables_$ctor_Z18C2F36D(this$.Tables), name);
|
|
260
|
+
}
|
|
261
|
+
static removeTable(name) {
|
|
262
|
+
return (assay) => {
|
|
263
|
+
const newAssay = assay.Copy();
|
|
264
|
+
newAssay.RemoveTable(name);
|
|
265
|
+
return newAssay;
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
MapTableAt(index, updateFun) {
|
|
269
|
+
const this$ = this;
|
|
270
|
+
ArcTables__MapTableAt_8FC095C(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, updateFun);
|
|
271
|
+
}
|
|
272
|
+
static mapTableAt(index, updateFun) {
|
|
273
|
+
return (assay) => {
|
|
274
|
+
const newAssay = assay.Copy();
|
|
275
|
+
newAssay.MapTableAt(index, updateFun);
|
|
276
|
+
return newAssay;
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
MapTable(name, updateFun) {
|
|
280
|
+
const this$ = this;
|
|
281
|
+
ArcTables__MapTable_27DD7B1B(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, updateFun);
|
|
282
|
+
}
|
|
283
|
+
static updateTable(name, updateFun) {
|
|
284
|
+
return (assay) => {
|
|
285
|
+
const newAssay = assay.Copy();
|
|
286
|
+
newAssay.MapTable(name, updateFun);
|
|
287
|
+
return newAssay;
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
RenameTableAt(index, newName) {
|
|
291
|
+
const this$ = this;
|
|
292
|
+
ArcTables__RenameTableAt_Z176EF219(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, newName);
|
|
293
|
+
}
|
|
294
|
+
static renameTableAt(index, newName) {
|
|
295
|
+
return (assay) => {
|
|
296
|
+
const newAssay = assay.Copy();
|
|
297
|
+
newAssay.RenameTableAt(index, newName);
|
|
298
|
+
return newAssay;
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
RenameTable(name, newName) {
|
|
302
|
+
const this$ = this;
|
|
303
|
+
ArcTables__RenameTable_Z384F8060(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, newName);
|
|
304
|
+
}
|
|
305
|
+
static renameTable(name, newName) {
|
|
306
|
+
return (assay) => {
|
|
307
|
+
const newAssay = assay.Copy();
|
|
308
|
+
newAssay.RenameTable(name, newName);
|
|
309
|
+
return newAssay;
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
AddColumnAt(tableIndex, header, cells, columnIndex, forceReplace) {
|
|
313
|
+
const this$ = this;
|
|
314
|
+
ArcTables__AddColumnAt_6A9784DB(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
315
|
+
}
|
|
316
|
+
static addColumnAt(tableIndex, header, cells, columnIndex, forceReplace) {
|
|
317
|
+
return (assay) => {
|
|
318
|
+
const newAssay = assay.Copy();
|
|
319
|
+
newAssay.AddColumnAt(tableIndex, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
320
|
+
return newAssay;
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
AddColumn(tableName, header, cells, columnIndex, forceReplace) {
|
|
324
|
+
const this$ = this;
|
|
325
|
+
ArcTables__AddColumn_1FF50D3C(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
326
|
+
}
|
|
327
|
+
static addColumn(tableName, header, cells, columnIndex, forceReplace) {
|
|
328
|
+
return (assay) => {
|
|
329
|
+
const newAssay = assay.Copy();
|
|
330
|
+
newAssay.AddColumn(tableName, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
331
|
+
return newAssay;
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
RemoveColumnAt(tableIndex, columnIndex) {
|
|
335
|
+
const this$ = this;
|
|
336
|
+
ArcTables__RemoveColumnAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex);
|
|
337
|
+
}
|
|
338
|
+
static removeColumnAt(tableIndex, columnIndex) {
|
|
339
|
+
return (assay) => {
|
|
340
|
+
const newAssay = assay.Copy();
|
|
341
|
+
newAssay.RemoveColumnAt(tableIndex, columnIndex);
|
|
342
|
+
return newAssay;
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
RemoveColumn(tableName, columnIndex) {
|
|
346
|
+
const this$ = this;
|
|
347
|
+
ArcTables__RemoveColumn_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex);
|
|
348
|
+
}
|
|
349
|
+
static removeColumn(tableName, columnIndex) {
|
|
350
|
+
return (assay) => {
|
|
351
|
+
const newAssay = assay.Copy();
|
|
352
|
+
newAssay.RemoveColumn(tableName, columnIndex);
|
|
353
|
+
return newAssay;
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
UpdateColumnAt(tableIndex, columnIndex, header, cells) {
|
|
357
|
+
const this$ = this;
|
|
358
|
+
ArcTables__UpdateColumnAt_21300791(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex, header, unwrap(cells));
|
|
359
|
+
}
|
|
360
|
+
static updateColumnAt(tableIndex, columnIndex, header, cells) {
|
|
361
|
+
return (assay) => {
|
|
362
|
+
const newAssay = assay.Copy();
|
|
363
|
+
newAssay.UpdateColumnAt(tableIndex, columnIndex, header, unwrap(cells));
|
|
364
|
+
return newAssay;
|
|
365
|
+
};
|
|
366
|
+
}
|
|
367
|
+
UpdateColumn(tableName, columnIndex, header, cells) {
|
|
368
|
+
const this$ = this;
|
|
369
|
+
ArcTables__UpdateColumn_Z6083042A(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex, header, unwrap(cells));
|
|
370
|
+
}
|
|
371
|
+
static updateColumn(tableName, columnIndex, header, cells) {
|
|
372
|
+
return (assay) => {
|
|
373
|
+
const newAssay = assay.Copy();
|
|
374
|
+
newAssay.UpdateColumn(tableName, columnIndex, header, unwrap(cells));
|
|
375
|
+
return newAssay;
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
GetColumnAt(tableIndex, columnIndex) {
|
|
379
|
+
const this$ = this;
|
|
380
|
+
return ArcTables__GetColumnAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex);
|
|
381
|
+
}
|
|
382
|
+
static getColumnAt(tableIndex, columnIndex) {
|
|
383
|
+
return (assay) => {
|
|
384
|
+
const newAssay = assay.Copy();
|
|
385
|
+
return newAssay.GetColumnAt(tableIndex, columnIndex);
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
GetColumn(tableName, columnIndex) {
|
|
389
|
+
const this$ = this;
|
|
390
|
+
return ArcTables__GetColumn_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex);
|
|
391
|
+
}
|
|
392
|
+
static getColumn(tableName, columnIndex) {
|
|
393
|
+
return (assay) => {
|
|
394
|
+
const newAssay = assay.Copy();
|
|
395
|
+
return newAssay.GetColumn(tableName, columnIndex);
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
AddRowAt(tableIndex, cells, rowIndex) {
|
|
399
|
+
const this$ = this;
|
|
400
|
+
ArcTables__AddRowAt_Z12CDB784(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, unwrap(cells), unwrap(rowIndex));
|
|
401
|
+
}
|
|
402
|
+
static addRowAt(tableIndex, cells, rowIndex) {
|
|
403
|
+
return (assay) => {
|
|
404
|
+
const newAssay = assay.Copy();
|
|
405
|
+
newAssay.AddRowAt(tableIndex, unwrap(cells), unwrap(rowIndex));
|
|
406
|
+
return newAssay;
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
AddRow(tableName, cells, rowIndex) {
|
|
410
|
+
const this$ = this;
|
|
411
|
+
ArcTables__AddRow_Z16315DE5(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, unwrap(cells), unwrap(rowIndex));
|
|
412
|
+
}
|
|
413
|
+
static addRow(tableName, cells, rowIndex) {
|
|
414
|
+
return (assay) => {
|
|
415
|
+
const newAssay = assay.Copy();
|
|
416
|
+
newAssay.AddRow(tableName, unwrap(cells), unwrap(rowIndex));
|
|
417
|
+
return newAssay;
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
RemoveRowAt(tableIndex, rowIndex) {
|
|
421
|
+
const this$ = this;
|
|
422
|
+
ArcTables__RemoveRowAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex);
|
|
423
|
+
}
|
|
424
|
+
static removeRowAt(tableIndex, rowIndex) {
|
|
425
|
+
return (assay) => {
|
|
426
|
+
const newAssay = assay.Copy();
|
|
427
|
+
newAssay.RemoveColumnAt(tableIndex, rowIndex);
|
|
428
|
+
return newAssay;
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
RemoveRow(tableName, rowIndex) {
|
|
432
|
+
const this$ = this;
|
|
433
|
+
ArcTables__RemoveRow_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex);
|
|
434
|
+
}
|
|
435
|
+
static removeRow(tableName, rowIndex) {
|
|
436
|
+
return (assay) => {
|
|
437
|
+
const newAssay = assay.Copy();
|
|
438
|
+
newAssay.RemoveRow(tableName, rowIndex);
|
|
439
|
+
return newAssay;
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
UpdateRowAt(tableIndex, rowIndex, cells) {
|
|
443
|
+
const this$ = this;
|
|
444
|
+
ArcTables__UpdateRowAt_1CF7B5DC(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex, cells);
|
|
445
|
+
}
|
|
446
|
+
static updateRowAt(tableIndex, rowIndex, cells) {
|
|
447
|
+
return (assay) => {
|
|
448
|
+
const newAssay = assay.Copy();
|
|
449
|
+
newAssay.UpdateRowAt(tableIndex, rowIndex, cells);
|
|
450
|
+
return newAssay;
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
UpdateRow(tableName, rowIndex, cells) {
|
|
454
|
+
const this$ = this;
|
|
455
|
+
ArcTables__UpdateRow_1BFE2CFB(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex, cells);
|
|
456
|
+
}
|
|
457
|
+
static updateRow(tableName, rowIndex, cells) {
|
|
458
|
+
return (assay) => {
|
|
459
|
+
const newAssay = assay.Copy();
|
|
460
|
+
newAssay.UpdateRow(tableName, rowIndex, cells);
|
|
461
|
+
return newAssay;
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
GetRowAt(tableIndex, rowIndex) {
|
|
465
|
+
const this$ = this;
|
|
466
|
+
return ArcTables__GetRowAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex);
|
|
467
|
+
}
|
|
468
|
+
static getRowAt(tableIndex, rowIndex) {
|
|
469
|
+
return (assay) => {
|
|
470
|
+
const newAssay = assay.Copy();
|
|
471
|
+
return newAssay.GetRowAt(tableIndex, rowIndex);
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
GetRow(tableName, rowIndex) {
|
|
475
|
+
const this$ = this;
|
|
476
|
+
return ArcTables__GetRow_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex);
|
|
477
|
+
}
|
|
478
|
+
static getRow(tableName, rowIndex) {
|
|
479
|
+
return (assay) => {
|
|
480
|
+
const newAssay = assay.Copy();
|
|
481
|
+
return newAssay.GetRow(tableName, rowIndex);
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
static setPerformers(performers, assay) {
|
|
485
|
+
assay.Performers = performers;
|
|
486
|
+
return assay;
|
|
487
|
+
}
|
|
488
|
+
Copy() {
|
|
489
|
+
const this$ = this;
|
|
490
|
+
const nextTables = [];
|
|
491
|
+
let enumerator = getEnumerator(this$.Tables);
|
|
492
|
+
try {
|
|
493
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
494
|
+
const table = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
495
|
+
const copy = table.Copy();
|
|
496
|
+
void (nextTables.push(copy));
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
finally {
|
|
500
|
+
disposeSafe(enumerator);
|
|
501
|
+
}
|
|
502
|
+
const nextComments = map((c) => c.Copy(), this$.Comments);
|
|
503
|
+
const nextPerformers = map((c_1) => c_1.Copy(), this$.Performers);
|
|
504
|
+
return new ArcAssay(this$.Identifier, unwrap(this$.MeasurementType), unwrap(this$.TechnologyType), unwrap(this$.TechnologyPlatform), nextTables, nextPerformers, nextComments);
|
|
505
|
+
}
|
|
506
|
+
UpdateBy(assay, onlyReplaceExisting, appendSequences) {
|
|
507
|
+
const this$ = this;
|
|
508
|
+
const onlyReplaceExisting_1 = defaultArg(onlyReplaceExisting, false);
|
|
509
|
+
const appendSequences_1 = defaultArg(appendSequences, false);
|
|
510
|
+
const updateAlways = !onlyReplaceExisting_1;
|
|
511
|
+
if ((assay.MeasurementType != null) ? true : updateAlways) {
|
|
512
|
+
this$.MeasurementType = assay.MeasurementType;
|
|
513
|
+
}
|
|
514
|
+
if ((assay.TechnologyType != null) ? true : updateAlways) {
|
|
515
|
+
this$.TechnologyType = assay.TechnologyType;
|
|
516
|
+
}
|
|
517
|
+
if ((assay.TechnologyPlatform != null) ? true : updateAlways) {
|
|
518
|
+
this$.TechnologyPlatform = assay.TechnologyPlatform;
|
|
519
|
+
}
|
|
520
|
+
if ((assay.Tables.length !== 0) ? true : updateAlways) {
|
|
521
|
+
let s;
|
|
522
|
+
const origin = this$.Tables;
|
|
523
|
+
const next = assay.Tables;
|
|
524
|
+
if (!appendSequences_1) {
|
|
525
|
+
s = next;
|
|
526
|
+
}
|
|
527
|
+
else {
|
|
528
|
+
let enumerator = getEnumerator(next);
|
|
529
|
+
try {
|
|
530
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
531
|
+
const e = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
532
|
+
if (!contains_1(e, origin, {
|
|
533
|
+
Equals: equals,
|
|
534
|
+
GetHashCode: safeHash,
|
|
535
|
+
})) {
|
|
536
|
+
void (origin.push(e));
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
finally {
|
|
541
|
+
disposeSafe(enumerator);
|
|
542
|
+
}
|
|
543
|
+
s = origin;
|
|
544
|
+
}
|
|
545
|
+
this$.Tables = s;
|
|
546
|
+
}
|
|
547
|
+
if ((assay.Performers.length !== 0) ? true : updateAlways) {
|
|
548
|
+
let s_1;
|
|
549
|
+
const origin_1 = this$.Performers;
|
|
550
|
+
const next_1 = assay.Performers;
|
|
551
|
+
s_1 = (!appendSequences_1 ? next_1 : Array_distinct(append_3(origin_1, next_1), {
|
|
552
|
+
Equals: equals,
|
|
553
|
+
GetHashCode: safeHash,
|
|
554
|
+
}));
|
|
555
|
+
this$.Performers = s_1;
|
|
556
|
+
}
|
|
557
|
+
if ((assay.Comments.length !== 0) ? true : updateAlways) {
|
|
558
|
+
let s_2;
|
|
559
|
+
const origin_2 = this$.Comments;
|
|
560
|
+
const next_2 = assay.Comments;
|
|
561
|
+
s_2 = (!appendSequences_1 ? next_2 : Array_distinct(append_3(origin_2, next_2), {
|
|
562
|
+
Equals: equals,
|
|
563
|
+
GetHashCode: safeHash,
|
|
564
|
+
}));
|
|
565
|
+
this$.Comments = s_2;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
toString() {
|
|
569
|
+
const this$ = this;
|
|
570
|
+
const arg = this$.Identifier;
|
|
571
|
+
const arg_1 = this$.MeasurementType;
|
|
572
|
+
const arg_2 = this$.TechnologyType;
|
|
573
|
+
const arg_3 = this$.TechnologyPlatform;
|
|
574
|
+
const arg_4 = this$.Tables;
|
|
575
|
+
const arg_5 = this$.Performers;
|
|
576
|
+
const arg_6 = this$.Comments;
|
|
577
|
+
return toText(printf("ArcAssay({\r\n Identifier = \"%s\",\r\n MeasurementType = %A,\r\n TechnologyType = %A,\r\n TechnologyPlatform = %A,\r\n Tables = %A,\r\n Performers = %A,\r\n Comments = %A\r\n})"))(arg)(arg_1)(arg_2)(arg_3)(arg_4)(arg_5)(arg_6);
|
|
578
|
+
}
|
|
579
|
+
static composeTechnologyPlatform(tp) {
|
|
580
|
+
const matchValue = tp.TANInfo;
|
|
581
|
+
return (matchValue == null) ? (`${tp.NameText}`) : (`${tp.NameText} (${tp.TermAccessionShort})`);
|
|
582
|
+
}
|
|
583
|
+
static decomposeTechnologyPlatform(name) {
|
|
584
|
+
const r = match(create("(?<value>[^\\(]+) \\((?<ontology>[^(]*:[^)]*)\\)"), name);
|
|
585
|
+
if (r != null) {
|
|
586
|
+
let oa;
|
|
587
|
+
const arg = (r.groups && r.groups.ontology) || "";
|
|
588
|
+
oa = OntologyAnnotation.fromTermAnnotation(arg);
|
|
589
|
+
return new OntologyAnnotation(oa.ID, new AnnotationValue(0, [Value__get_Text(Value_fromString_Z721C83C5((r.groups && r.groups.value) || ""))]), oa.TermSourceREF, oa.TermAccessionNumber, oa.Comments);
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
return OntologyAnnotation.fromString(name);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
AddToInvestigation(investigation) {
|
|
596
|
+
const this$ = this;
|
|
597
|
+
this$.Investigation = investigation;
|
|
598
|
+
}
|
|
599
|
+
RemoveFromInvestigation() {
|
|
600
|
+
const this$ = this;
|
|
601
|
+
this$.Investigation = void 0;
|
|
602
|
+
}
|
|
603
|
+
UpdateReferenceByAssayFile(assay, onlyReplaceExisting) {
|
|
604
|
+
const this$ = this;
|
|
605
|
+
const updateAlways = !defaultArg(onlyReplaceExisting, false);
|
|
606
|
+
if ((assay.MeasurementType != null) ? true : updateAlways) {
|
|
607
|
+
this$.MeasurementType = assay.MeasurementType;
|
|
608
|
+
}
|
|
609
|
+
if ((assay.TechnologyPlatform != null) ? true : updateAlways) {
|
|
610
|
+
this$.TechnologyPlatform = assay.TechnologyPlatform;
|
|
611
|
+
}
|
|
612
|
+
if ((assay.TechnologyType != null) ? true : updateAlways) {
|
|
613
|
+
this$.TechnologyType = assay.TechnologyType;
|
|
614
|
+
}
|
|
615
|
+
if ((assay.Tables.length !== 0) ? true : updateAlways) {
|
|
616
|
+
this$.Tables = assay.Tables;
|
|
617
|
+
}
|
|
618
|
+
if ((assay.Comments.length !== 0) ? true : updateAlways) {
|
|
619
|
+
this$.Comments = assay.Comments;
|
|
620
|
+
}
|
|
621
|
+
if ((assay.Performers.length !== 0) ? true : updateAlways) {
|
|
622
|
+
this$.Performers = assay.Performers;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
ToAssay() {
|
|
626
|
+
const this$ = this;
|
|
627
|
+
const processSeq = ArcTables__GetProcesses(ArcTables_$ctor_Z18C2F36D(this$.Tables));
|
|
628
|
+
let assayMaterials;
|
|
629
|
+
const v_2 = AssayMaterials_create_Z253F0553(unwrap(Option_fromValueWithDefault(empty(), getSamples(processSeq))), unwrap(Option_fromValueWithDefault(empty(), getMaterials(processSeq))));
|
|
630
|
+
assayMaterials = Option_fromValueWithDefault(AssayMaterials_get_empty(), v_2);
|
|
631
|
+
return Assay_create_3D372A24(void 0, unwrap(isMissingIdentifier(this$.Identifier) ? void 0 : Assay_fileNameFromIdentifier(this$.Identifier)), unwrap(this$.MeasurementType), unwrap(this$.TechnologyType), unwrap(map_1((arg) => ArcAssay.composeTechnologyPlatform(arg), this$.TechnologyPlatform)), unwrap(Option_fromValueWithDefault(empty(), getData(processSeq))), unwrap(assayMaterials), unwrap(Option_fromValueWithDefault(empty(), getCharacteristics(processSeq))), unwrap(Option_fromValueWithDefault(empty(), getUnits(processSeq))), unwrap(Option_fromValueWithDefault(empty(), processSeq)), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.Comments))));
|
|
632
|
+
}
|
|
633
|
+
static fromAssay(a) {
|
|
634
|
+
const tables = map_1((arg_1) => ArcTables__get_Tables(ArcTables_fromProcesses_134EBDED(arg_1)), a.ProcessSequence);
|
|
635
|
+
let identifer;
|
|
636
|
+
const matchValue = a.FileName;
|
|
637
|
+
identifer = ((matchValue == null) ? createMissingIdentifier() : Assay_identifierFromFileName(matchValue));
|
|
638
|
+
return ArcAssay.create(identifer, unwrap(map_1((x) => x.Copy(), a.MeasurementType)), unwrap(map_1((x_1) => x_1.Copy(), a.TechnologyType)), unwrap(map_1((arg_2) => ArcAssay.decomposeTechnologyPlatform(arg_2), a.TechnologyPlatform)), unwrap(tables), void 0, unwrap(map_1(toArray_1, a.Comments)));
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
export function ArcAssay_$reflection() {
|
|
643
|
+
return class_type("ARCtrl.ISA.ArcAssay", void 0, ArcAssay);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export function ArcAssay_$ctor_Z1126B596(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments) {
|
|
647
|
+
return new ArcAssay(identifier, measurementType, technologyType, technologyPlatform, tables, performers, comments);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
export class ArcStudy {
|
|
651
|
+
constructor(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments) {
|
|
652
|
+
const publications_1 = defaultArg(publications, []);
|
|
653
|
+
const contacts_1 = defaultArg(contacts, []);
|
|
654
|
+
const studyDesignDescriptors_1 = defaultArg(studyDesignDescriptors, []);
|
|
655
|
+
const tables_1 = defaultArg(tables, []);
|
|
656
|
+
const registeredAssayIdentifiers_1 = defaultArg(registeredAssayIdentifiers, []);
|
|
657
|
+
const factors_1 = defaultArg(factors, []);
|
|
658
|
+
const comments_1 = defaultArg(comments, []);
|
|
659
|
+
this["identifier@615"] = identifier;
|
|
660
|
+
this.investigation = void 0;
|
|
661
|
+
this["Title@"] = title;
|
|
662
|
+
this["Description@"] = description;
|
|
663
|
+
this["SubmissionDate@"] = submissionDate;
|
|
664
|
+
this["PublicReleaseDate@"] = publicReleaseDate;
|
|
665
|
+
this["Publications@"] = publications_1;
|
|
666
|
+
this["Contacts@"] = contacts_1;
|
|
667
|
+
this["StudyDesignDescriptors@"] = studyDesignDescriptors_1;
|
|
668
|
+
this["Tables@"] = tables_1;
|
|
669
|
+
this["RegisteredAssayIdentifiers@"] = registeredAssayIdentifiers_1;
|
|
670
|
+
this["Factors@"] = factors_1;
|
|
671
|
+
this["Comments@"] = comments_1;
|
|
672
|
+
}
|
|
673
|
+
get Identifier() {
|
|
674
|
+
const this$ = this;
|
|
675
|
+
return this$["identifier@615"];
|
|
676
|
+
}
|
|
677
|
+
set Identifier(i) {
|
|
678
|
+
const this$ = this;
|
|
679
|
+
this$["identifier@615"] = i;
|
|
680
|
+
}
|
|
681
|
+
get Investigation() {
|
|
682
|
+
const this$ = this;
|
|
683
|
+
return unwrap(this$.investigation);
|
|
684
|
+
}
|
|
685
|
+
set Investigation(i) {
|
|
686
|
+
const this$ = this;
|
|
687
|
+
this$.investigation = i;
|
|
688
|
+
}
|
|
689
|
+
get Title() {
|
|
690
|
+
const __ = this;
|
|
691
|
+
return unwrap(__["Title@"]);
|
|
692
|
+
}
|
|
693
|
+
set Title(v) {
|
|
694
|
+
const __ = this;
|
|
695
|
+
__["Title@"] = v;
|
|
696
|
+
}
|
|
697
|
+
get Description() {
|
|
698
|
+
const __ = this;
|
|
699
|
+
return unwrap(__["Description@"]);
|
|
700
|
+
}
|
|
701
|
+
set Description(v) {
|
|
702
|
+
const __ = this;
|
|
703
|
+
__["Description@"] = v;
|
|
704
|
+
}
|
|
705
|
+
get SubmissionDate() {
|
|
706
|
+
const __ = this;
|
|
707
|
+
return unwrap(__["SubmissionDate@"]);
|
|
708
|
+
}
|
|
709
|
+
set SubmissionDate(v) {
|
|
710
|
+
const __ = this;
|
|
711
|
+
__["SubmissionDate@"] = v;
|
|
712
|
+
}
|
|
713
|
+
get PublicReleaseDate() {
|
|
714
|
+
const __ = this;
|
|
715
|
+
return unwrap(__["PublicReleaseDate@"]);
|
|
716
|
+
}
|
|
717
|
+
set PublicReleaseDate(v) {
|
|
718
|
+
const __ = this;
|
|
719
|
+
__["PublicReleaseDate@"] = v;
|
|
720
|
+
}
|
|
721
|
+
get Publications() {
|
|
722
|
+
const __ = this;
|
|
723
|
+
return __["Publications@"];
|
|
724
|
+
}
|
|
725
|
+
set Publications(v) {
|
|
726
|
+
const __ = this;
|
|
727
|
+
__["Publications@"] = v;
|
|
728
|
+
}
|
|
729
|
+
get Contacts() {
|
|
730
|
+
const __ = this;
|
|
731
|
+
return __["Contacts@"];
|
|
732
|
+
}
|
|
733
|
+
set Contacts(v) {
|
|
734
|
+
const __ = this;
|
|
735
|
+
__["Contacts@"] = v;
|
|
736
|
+
}
|
|
737
|
+
get StudyDesignDescriptors() {
|
|
738
|
+
const __ = this;
|
|
739
|
+
return __["StudyDesignDescriptors@"];
|
|
740
|
+
}
|
|
741
|
+
set StudyDesignDescriptors(v) {
|
|
742
|
+
const __ = this;
|
|
743
|
+
__["StudyDesignDescriptors@"] = v;
|
|
744
|
+
}
|
|
745
|
+
get Tables() {
|
|
746
|
+
const __ = this;
|
|
747
|
+
return __["Tables@"];
|
|
748
|
+
}
|
|
749
|
+
set Tables(v) {
|
|
750
|
+
const __ = this;
|
|
751
|
+
__["Tables@"] = v;
|
|
752
|
+
}
|
|
753
|
+
get RegisteredAssayIdentifiers() {
|
|
754
|
+
const __ = this;
|
|
755
|
+
return __["RegisteredAssayIdentifiers@"];
|
|
756
|
+
}
|
|
757
|
+
set RegisteredAssayIdentifiers(v) {
|
|
758
|
+
const __ = this;
|
|
759
|
+
__["RegisteredAssayIdentifiers@"] = v;
|
|
760
|
+
}
|
|
761
|
+
get Factors() {
|
|
762
|
+
const __ = this;
|
|
763
|
+
return __["Factors@"];
|
|
764
|
+
}
|
|
765
|
+
set Factors(v) {
|
|
766
|
+
const __ = this;
|
|
767
|
+
__["Factors@"] = v;
|
|
768
|
+
}
|
|
769
|
+
get Comments() {
|
|
770
|
+
const __ = this;
|
|
771
|
+
return __["Comments@"];
|
|
772
|
+
}
|
|
773
|
+
set Comments(v) {
|
|
774
|
+
const __ = this;
|
|
775
|
+
__["Comments@"] = v;
|
|
776
|
+
}
|
|
777
|
+
static init(identifier) {
|
|
778
|
+
return new ArcStudy(identifier);
|
|
779
|
+
}
|
|
780
|
+
static create(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments) {
|
|
781
|
+
return new ArcStudy(identifier, unwrap(title), unwrap(description), unwrap(submissionDate), unwrap(publicReleaseDate), unwrap(publications), unwrap(contacts), unwrap(studyDesignDescriptors), unwrap(tables), unwrap(registeredAssayIdentifiers), unwrap(factors), unwrap(comments));
|
|
782
|
+
}
|
|
783
|
+
static make(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments) {
|
|
784
|
+
return new ArcStudy(identifier, unwrap(title), unwrap(description), unwrap(submissionDate), unwrap(publicReleaseDate), publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments);
|
|
785
|
+
}
|
|
786
|
+
get isEmpty() {
|
|
787
|
+
const this$ = this;
|
|
788
|
+
return (((((((((equals(this$.Title, void 0) && equals(this$.Description, void 0)) && equals(this$.SubmissionDate, void 0)) && equals(this$.PublicReleaseDate, void 0)) && equalsWith(equals, this$.Publications, [])) && equalsWith(equals, this$.Contacts, [])) && equalsWith(equals, this$.StudyDesignDescriptors, [])) && (this$.Tables.length === 0)) && (this$.RegisteredAssayIdentifiers.length === 0)) && equalsWith(equals, this$.Factors, [])) && equalsWith(equals, this$.Comments, []);
|
|
789
|
+
}
|
|
790
|
+
static get FileName() {
|
|
791
|
+
return "isa.study.xlsx";
|
|
792
|
+
}
|
|
793
|
+
get RegisteredAssayCount() {
|
|
794
|
+
const this$ = this;
|
|
795
|
+
return this$.RegisteredAssayIdentifiers.length | 0;
|
|
796
|
+
}
|
|
797
|
+
get RegisteredAssays() {
|
|
798
|
+
const this$ = this;
|
|
799
|
+
let inv;
|
|
800
|
+
const investigation = this$.Investigation;
|
|
801
|
+
if (investigation != null) {
|
|
802
|
+
inv = investigation;
|
|
803
|
+
}
|
|
804
|
+
else {
|
|
805
|
+
throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
|
|
806
|
+
}
|
|
807
|
+
const assays = [];
|
|
808
|
+
let enumerator = getEnumerator(inv.Assays);
|
|
809
|
+
try {
|
|
810
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
811
|
+
const assay = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
812
|
+
if (contains(assay.Identifier, this$.RegisteredAssayIdentifiers, {
|
|
813
|
+
Equals: (x, y) => (x === y),
|
|
814
|
+
GetHashCode: stringHash,
|
|
815
|
+
})) {
|
|
816
|
+
void (assays.push(assay));
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
finally {
|
|
821
|
+
disposeSafe(enumerator);
|
|
822
|
+
}
|
|
823
|
+
return assays;
|
|
824
|
+
}
|
|
825
|
+
AddRegisteredAssay(assay) {
|
|
826
|
+
const this$ = this;
|
|
827
|
+
let inv;
|
|
828
|
+
const investigation = this$.Investigation;
|
|
829
|
+
if (investigation != null) {
|
|
830
|
+
inv = investigation;
|
|
831
|
+
}
|
|
832
|
+
else {
|
|
833
|
+
throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
|
|
834
|
+
}
|
|
835
|
+
inv.AddAssay(assay);
|
|
836
|
+
inv.RegisterAssay(this$.Identifier, assay.Identifier);
|
|
837
|
+
}
|
|
838
|
+
static addRegisteredAssay(assay) {
|
|
839
|
+
return (study) => {
|
|
840
|
+
const newStudy = study.Copy();
|
|
841
|
+
newStudy.AddRegisteredAssay(assay);
|
|
842
|
+
return newStudy;
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
InitRegisteredAssay(assayIdentifier) {
|
|
846
|
+
const this$ = this;
|
|
847
|
+
const assay = new ArcAssay(assayIdentifier);
|
|
848
|
+
this$.AddRegisteredAssay(assay);
|
|
849
|
+
return assay;
|
|
850
|
+
}
|
|
851
|
+
static initRegisteredAssay(assayIdentifier) {
|
|
852
|
+
return (study) => {
|
|
853
|
+
const copy = study.Copy();
|
|
854
|
+
return [copy, copy.InitRegisteredAssay(assayIdentifier)];
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
RegisterAssay(assayIdentifier) {
|
|
858
|
+
const this$ = this;
|
|
859
|
+
if (contains(assayIdentifier, this$.RegisteredAssayIdentifiers, {
|
|
860
|
+
Equals: (x, y) => (x === y),
|
|
861
|
+
GetHashCode: stringHash,
|
|
862
|
+
})) {
|
|
863
|
+
throw new Error(`Assay \`${assayIdentifier}\` is already registered on the study.`);
|
|
864
|
+
}
|
|
865
|
+
void (this$.RegisteredAssayIdentifiers.push(assayIdentifier));
|
|
866
|
+
}
|
|
867
|
+
static registerAssay(assayIdentifier) {
|
|
868
|
+
return (study) => {
|
|
869
|
+
const copy = study.Copy();
|
|
870
|
+
copy.RegisterAssay(assayIdentifier);
|
|
871
|
+
return copy;
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
DeregisterAssay(assayIdentifier) {
|
|
875
|
+
const this$ = this;
|
|
876
|
+
removeInPlace(assayIdentifier, this$.RegisteredAssayIdentifiers, {
|
|
877
|
+
Equals: (x, y) => (x === y),
|
|
878
|
+
GetHashCode: stringHash,
|
|
879
|
+
});
|
|
880
|
+
}
|
|
881
|
+
static deregisterAssay(assayIdentifier) {
|
|
882
|
+
return (study) => {
|
|
883
|
+
const copy = study.Copy();
|
|
884
|
+
copy.DeregisterAssay(assayIdentifier);
|
|
885
|
+
return copy;
|
|
886
|
+
};
|
|
887
|
+
}
|
|
888
|
+
GetRegisteredAssay(assayIdentifier) {
|
|
889
|
+
const this$ = this;
|
|
890
|
+
if (!contains(assayIdentifier, this$.RegisteredAssayIdentifiers, {
|
|
891
|
+
Equals: (x, y) => (x === y),
|
|
892
|
+
GetHashCode: stringHash,
|
|
893
|
+
})) {
|
|
894
|
+
throw new Error(`Assay \`${assayIdentifier}\` is not registered on the study.`);
|
|
895
|
+
}
|
|
896
|
+
let inv;
|
|
897
|
+
const investigation = this$.Investigation;
|
|
898
|
+
if (investigation != null) {
|
|
899
|
+
inv = investigation;
|
|
900
|
+
}
|
|
901
|
+
else {
|
|
902
|
+
throw new Error("Cannot execute this function. Object is not part of ArcInvestigation.");
|
|
903
|
+
}
|
|
904
|
+
return inv.GetAssay(assayIdentifier);
|
|
905
|
+
}
|
|
906
|
+
static getRegisteredAssay(assayIdentifier) {
|
|
907
|
+
return (study) => {
|
|
908
|
+
const copy = study.Copy();
|
|
909
|
+
return copy.GetRegisteredAssay(assayIdentifier);
|
|
910
|
+
};
|
|
911
|
+
}
|
|
912
|
+
static getRegisteredAssays() {
|
|
913
|
+
return (study) => {
|
|
914
|
+
const copy = study.Copy();
|
|
915
|
+
return copy.RegisteredAssays;
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
GetRegisteredAssaysOrIdentifier() {
|
|
919
|
+
const this$ = this;
|
|
920
|
+
const matchValue = this$.Investigation;
|
|
921
|
+
if (matchValue == null) {
|
|
922
|
+
const arg = map_2((identifier) => ArcAssay.init(identifier), this$.RegisteredAssayIdentifiers);
|
|
923
|
+
return Array.from(arg);
|
|
924
|
+
}
|
|
925
|
+
else {
|
|
926
|
+
const i = matchValue;
|
|
927
|
+
return this$.RegisteredAssays;
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
static getRegisteredAssaysOrIdentifier() {
|
|
931
|
+
return (study) => {
|
|
932
|
+
const copy = study.Copy();
|
|
933
|
+
return copy.GetRegisteredAssaysOrIdentifier();
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
get TableCount() {
|
|
937
|
+
const this$ = this;
|
|
938
|
+
return ArcTables__get_Count(ArcTables_$ctor_Z18C2F36D(this$.Tables)) | 0;
|
|
939
|
+
}
|
|
940
|
+
get TableNames() {
|
|
941
|
+
const this$ = this;
|
|
942
|
+
return ArcTables__get_TableNames(ArcTables_$ctor_Z18C2F36D(this$.Tables));
|
|
943
|
+
}
|
|
944
|
+
AddTable(table, index) {
|
|
945
|
+
const this$ = this;
|
|
946
|
+
ArcTables__AddTable_EC12B15(ArcTables_$ctor_Z18C2F36D(this$.Tables), table, unwrap(index));
|
|
947
|
+
}
|
|
948
|
+
static addTable(table, index) {
|
|
949
|
+
return (study) => {
|
|
950
|
+
const c = study.Copy();
|
|
951
|
+
c.AddTable(table, unwrap(index));
|
|
952
|
+
return c;
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
AddTables(tables, index) {
|
|
956
|
+
const this$ = this;
|
|
957
|
+
ArcTables__AddTables_Z2D453886(ArcTables_$ctor_Z18C2F36D(this$.Tables), tables, unwrap(index));
|
|
958
|
+
}
|
|
959
|
+
static addTables(tables, index) {
|
|
960
|
+
return (study) => {
|
|
961
|
+
const c = study.Copy();
|
|
962
|
+
c.AddTables(tables, unwrap(index));
|
|
963
|
+
return c;
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
InitTable(tableName, index) {
|
|
967
|
+
const this$ = this;
|
|
968
|
+
return ArcTables__InitTable_3B406CA4(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, unwrap(index));
|
|
969
|
+
}
|
|
970
|
+
static initTable(tableName, index) {
|
|
971
|
+
return (study) => {
|
|
972
|
+
const c = study.Copy();
|
|
973
|
+
return [c, c.InitTable(tableName, unwrap(index))];
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
InitTables(tableNames, index) {
|
|
977
|
+
const this$ = this;
|
|
978
|
+
ArcTables__InitTables_7B28792B(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableNames, unwrap(index));
|
|
979
|
+
}
|
|
980
|
+
static initTables(tableNames, index) {
|
|
981
|
+
return (study) => {
|
|
982
|
+
const c = study.Copy();
|
|
983
|
+
c.InitTables(tableNames, unwrap(index));
|
|
984
|
+
return c;
|
|
985
|
+
};
|
|
986
|
+
}
|
|
987
|
+
GetTableAt(index) {
|
|
988
|
+
const this$ = this;
|
|
989
|
+
return ArcTables__GetTableAt_Z524259A4(ArcTables_$ctor_Z18C2F36D(this$.Tables), index);
|
|
990
|
+
}
|
|
991
|
+
static getTableAt(index) {
|
|
992
|
+
return (study) => {
|
|
993
|
+
const newAssay = study.Copy();
|
|
994
|
+
return newAssay.GetTableAt(index);
|
|
995
|
+
};
|
|
996
|
+
}
|
|
997
|
+
GetTable(name) {
|
|
998
|
+
const this$ = this;
|
|
999
|
+
return ArcTables__GetTable_Z721C83C5(ArcTables_$ctor_Z18C2F36D(this$.Tables), name);
|
|
1000
|
+
}
|
|
1001
|
+
static getTable(name) {
|
|
1002
|
+
return (study) => {
|
|
1003
|
+
const newAssay = study.Copy();
|
|
1004
|
+
return newAssay.GetTable(name);
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
UpdateTableAt(index, table) {
|
|
1008
|
+
const this$ = this;
|
|
1009
|
+
ArcTables__UpdateTableAt_7E571736(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, table);
|
|
1010
|
+
}
|
|
1011
|
+
static updateTableAt(index, table) {
|
|
1012
|
+
return (study) => {
|
|
1013
|
+
const newAssay = study.Copy();
|
|
1014
|
+
newAssay.UpdateTableAt(index, table);
|
|
1015
|
+
return newAssay;
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
UpdateTable(name, table) {
|
|
1019
|
+
const this$ = this;
|
|
1020
|
+
ArcTables__UpdateTable_51766571(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, table);
|
|
1021
|
+
}
|
|
1022
|
+
static updateTable(name, table) {
|
|
1023
|
+
return (study) => {
|
|
1024
|
+
const newAssay = study.Copy();
|
|
1025
|
+
newAssay.UpdateTable(name, table);
|
|
1026
|
+
return newAssay;
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
SetTableAt(index, table) {
|
|
1030
|
+
const this$ = this;
|
|
1031
|
+
ArcTables__SetTableAt_7E571736(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, table);
|
|
1032
|
+
}
|
|
1033
|
+
static setTableAt(index, table) {
|
|
1034
|
+
return (study) => {
|
|
1035
|
+
const newAssay = study.Copy();
|
|
1036
|
+
newAssay.SetTableAt(index, table);
|
|
1037
|
+
return newAssay;
|
|
1038
|
+
};
|
|
1039
|
+
}
|
|
1040
|
+
SetTable(name, table) {
|
|
1041
|
+
const this$ = this;
|
|
1042
|
+
ArcTables__SetTable_51766571(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, table);
|
|
1043
|
+
}
|
|
1044
|
+
static setTable(name, table) {
|
|
1045
|
+
return (study) => {
|
|
1046
|
+
const newAssay = study.Copy();
|
|
1047
|
+
newAssay.SetTable(name, table);
|
|
1048
|
+
return newAssay;
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
RemoveTableAt(index) {
|
|
1052
|
+
const this$ = this;
|
|
1053
|
+
ArcTables__RemoveTableAt_Z524259A4(ArcTables_$ctor_Z18C2F36D(this$.Tables), index);
|
|
1054
|
+
}
|
|
1055
|
+
static removeTableAt(index) {
|
|
1056
|
+
return (study) => {
|
|
1057
|
+
const newAssay = study.Copy();
|
|
1058
|
+
newAssay.RemoveTableAt(index);
|
|
1059
|
+
return newAssay;
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
RemoveTable(name) {
|
|
1063
|
+
const this$ = this;
|
|
1064
|
+
ArcTables__RemoveTable_Z721C83C5(ArcTables_$ctor_Z18C2F36D(this$.Tables), name);
|
|
1065
|
+
}
|
|
1066
|
+
static removeTable(name) {
|
|
1067
|
+
return (study) => {
|
|
1068
|
+
const newAssay = study.Copy();
|
|
1069
|
+
newAssay.RemoveTable(name);
|
|
1070
|
+
return newAssay;
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
1073
|
+
MapTableAt(index, updateFun) {
|
|
1074
|
+
const this$ = this;
|
|
1075
|
+
ArcTables__MapTableAt_8FC095C(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, updateFun);
|
|
1076
|
+
}
|
|
1077
|
+
static mapTableAt(index, updateFun) {
|
|
1078
|
+
return (study) => {
|
|
1079
|
+
const newAssay = study.Copy();
|
|
1080
|
+
newAssay.MapTableAt(index, updateFun);
|
|
1081
|
+
return newAssay;
|
|
1082
|
+
};
|
|
1083
|
+
}
|
|
1084
|
+
MapTable(name, updateFun) {
|
|
1085
|
+
const this$ = this;
|
|
1086
|
+
ArcTables__MapTable_27DD7B1B(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, updateFun);
|
|
1087
|
+
}
|
|
1088
|
+
static mapTable(name, updateFun) {
|
|
1089
|
+
return (study) => {
|
|
1090
|
+
const newAssay = study.Copy();
|
|
1091
|
+
newAssay.MapTable(name, updateFun);
|
|
1092
|
+
return newAssay;
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
RenameTableAt(index, newName) {
|
|
1096
|
+
const this$ = this;
|
|
1097
|
+
ArcTables__RenameTableAt_Z176EF219(ArcTables_$ctor_Z18C2F36D(this$.Tables), index, newName);
|
|
1098
|
+
}
|
|
1099
|
+
static renameTableAt(index, newName) {
|
|
1100
|
+
return (study) => {
|
|
1101
|
+
const newAssay = study.Copy();
|
|
1102
|
+
newAssay.RenameTableAt(index, newName);
|
|
1103
|
+
return newAssay;
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
RenameTable(name, newName) {
|
|
1107
|
+
const this$ = this;
|
|
1108
|
+
ArcTables__RenameTable_Z384F8060(ArcTables_$ctor_Z18C2F36D(this$.Tables), name, newName);
|
|
1109
|
+
}
|
|
1110
|
+
static renameTable(name, newName) {
|
|
1111
|
+
return (study) => {
|
|
1112
|
+
const newAssay = study.Copy();
|
|
1113
|
+
newAssay.RenameTable(name, newName);
|
|
1114
|
+
return newAssay;
|
|
1115
|
+
};
|
|
1116
|
+
}
|
|
1117
|
+
AddColumnAt(tableIndex, header, cells, columnIndex, forceReplace) {
|
|
1118
|
+
const this$ = this;
|
|
1119
|
+
ArcTables__AddColumnAt_6A9784DB(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
1120
|
+
}
|
|
1121
|
+
static addColumnAt(tableIndex, header, cells, columnIndex, forceReplace) {
|
|
1122
|
+
return (study) => {
|
|
1123
|
+
const newAssay = study.Copy();
|
|
1124
|
+
newAssay.AddColumnAt(tableIndex, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
1125
|
+
return newAssay;
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
AddColumn(tableName, header, cells, columnIndex, forceReplace) {
|
|
1129
|
+
const this$ = this;
|
|
1130
|
+
ArcTables__AddColumn_1FF50D3C(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
1131
|
+
}
|
|
1132
|
+
static addColumn(tableName, header, cells, columnIndex, forceReplace) {
|
|
1133
|
+
return (study) => {
|
|
1134
|
+
const newAssay = study.Copy();
|
|
1135
|
+
newAssay.AddColumn(tableName, header, unwrap(cells), unwrap(columnIndex), unwrap(forceReplace));
|
|
1136
|
+
return newAssay;
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
RemoveColumnAt(tableIndex, columnIndex) {
|
|
1140
|
+
const this$ = this;
|
|
1141
|
+
ArcTables__RemoveColumnAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex);
|
|
1142
|
+
}
|
|
1143
|
+
static removeColumnAt(tableIndex, columnIndex) {
|
|
1144
|
+
return (study) => {
|
|
1145
|
+
const newAssay = study.Copy();
|
|
1146
|
+
newAssay.RemoveColumnAt(tableIndex, columnIndex);
|
|
1147
|
+
return newAssay;
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
RemoveColumn(tableName, columnIndex) {
|
|
1151
|
+
const this$ = this;
|
|
1152
|
+
ArcTables__RemoveColumn_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex);
|
|
1153
|
+
}
|
|
1154
|
+
static removeColumn(tableName, columnIndex) {
|
|
1155
|
+
return (study) => {
|
|
1156
|
+
const newAssay = study.Copy();
|
|
1157
|
+
newAssay.RemoveColumn(tableName, columnIndex);
|
|
1158
|
+
return newAssay;
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
UpdateColumnAt(tableIndex, columnIndex, header, cells) {
|
|
1162
|
+
const this$ = this;
|
|
1163
|
+
ArcTables__UpdateColumnAt_21300791(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex, header, unwrap(cells));
|
|
1164
|
+
}
|
|
1165
|
+
static updateColumnAt(tableIndex, columnIndex, header, cells) {
|
|
1166
|
+
return (study) => {
|
|
1167
|
+
const newAssay = study.Copy();
|
|
1168
|
+
newAssay.UpdateColumnAt(tableIndex, columnIndex, header, unwrap(cells));
|
|
1169
|
+
return newAssay;
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
UpdateColumn(tableName, columnIndex, header, cells) {
|
|
1173
|
+
const this$ = this;
|
|
1174
|
+
ArcTables__UpdateColumn_Z6083042A(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex, header, unwrap(cells));
|
|
1175
|
+
}
|
|
1176
|
+
static updateColumn(tableName, columnIndex, header, cells) {
|
|
1177
|
+
return (study) => {
|
|
1178
|
+
const newAssay = study.Copy();
|
|
1179
|
+
newAssay.UpdateColumn(tableName, columnIndex, header, unwrap(cells));
|
|
1180
|
+
return newAssay;
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
GetColumnAt(tableIndex, columnIndex) {
|
|
1184
|
+
const this$ = this;
|
|
1185
|
+
return ArcTables__GetColumnAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, columnIndex);
|
|
1186
|
+
}
|
|
1187
|
+
static getColumnAt(tableIndex, columnIndex) {
|
|
1188
|
+
return (study) => {
|
|
1189
|
+
const newAssay = study.Copy();
|
|
1190
|
+
return newAssay.GetColumnAt(tableIndex, columnIndex);
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
GetColumn(tableName, columnIndex) {
|
|
1194
|
+
const this$ = this;
|
|
1195
|
+
return ArcTables__GetColumn_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, columnIndex);
|
|
1196
|
+
}
|
|
1197
|
+
static getColumn(tableName, columnIndex) {
|
|
1198
|
+
return (study) => {
|
|
1199
|
+
const newAssay = study.Copy();
|
|
1200
|
+
return newAssay.GetColumn(tableName, columnIndex);
|
|
1201
|
+
};
|
|
1202
|
+
}
|
|
1203
|
+
AddRowAt(tableIndex, cells, rowIndex) {
|
|
1204
|
+
const this$ = this;
|
|
1205
|
+
ArcTables__AddRowAt_Z12CDB784(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, unwrap(cells), unwrap(rowIndex));
|
|
1206
|
+
}
|
|
1207
|
+
static addRowAt(tableIndex, cells, rowIndex) {
|
|
1208
|
+
return (study) => {
|
|
1209
|
+
const newAssay = study.Copy();
|
|
1210
|
+
newAssay.AddRowAt(tableIndex, unwrap(cells), unwrap(rowIndex));
|
|
1211
|
+
return newAssay;
|
|
1212
|
+
};
|
|
1213
|
+
}
|
|
1214
|
+
AddRow(tableName, cells, rowIndex) {
|
|
1215
|
+
const this$ = this;
|
|
1216
|
+
ArcTables__AddRow_Z16315DE5(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, unwrap(cells), unwrap(rowIndex));
|
|
1217
|
+
}
|
|
1218
|
+
static addRow(tableName, cells, rowIndex) {
|
|
1219
|
+
return (study) => {
|
|
1220
|
+
const newAssay = study.Copy();
|
|
1221
|
+
newAssay.AddRow(tableName, unwrap(cells), unwrap(rowIndex));
|
|
1222
|
+
return newAssay;
|
|
1223
|
+
};
|
|
1224
|
+
}
|
|
1225
|
+
RemoveRowAt(tableIndex, rowIndex) {
|
|
1226
|
+
const this$ = this;
|
|
1227
|
+
ArcTables__RemoveRowAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex);
|
|
1228
|
+
}
|
|
1229
|
+
static removeRowAt(tableIndex, rowIndex) {
|
|
1230
|
+
return (study) => {
|
|
1231
|
+
const newAssay = study.Copy();
|
|
1232
|
+
newAssay.RemoveColumnAt(tableIndex, rowIndex);
|
|
1233
|
+
return newAssay;
|
|
1234
|
+
};
|
|
1235
|
+
}
|
|
1236
|
+
RemoveRow(tableName, rowIndex) {
|
|
1237
|
+
const this$ = this;
|
|
1238
|
+
ArcTables__RemoveRow_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex);
|
|
1239
|
+
}
|
|
1240
|
+
static removeRow(tableName, rowIndex) {
|
|
1241
|
+
return (study) => {
|
|
1242
|
+
const newAssay = study.Copy();
|
|
1243
|
+
newAssay.RemoveRow(tableName, rowIndex);
|
|
1244
|
+
return newAssay;
|
|
1245
|
+
};
|
|
1246
|
+
}
|
|
1247
|
+
UpdateRowAt(tableIndex, rowIndex, cells) {
|
|
1248
|
+
const this$ = this;
|
|
1249
|
+
ArcTables__UpdateRowAt_1CF7B5DC(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex, cells);
|
|
1250
|
+
}
|
|
1251
|
+
static updateRowAt(tableIndex, rowIndex, cells) {
|
|
1252
|
+
return (study) => {
|
|
1253
|
+
const newAssay = study.Copy();
|
|
1254
|
+
newAssay.UpdateRowAt(tableIndex, rowIndex, cells);
|
|
1255
|
+
return newAssay;
|
|
1256
|
+
};
|
|
1257
|
+
}
|
|
1258
|
+
UpdateRow(tableName, rowIndex, cells) {
|
|
1259
|
+
const this$ = this;
|
|
1260
|
+
ArcTables__UpdateRow_1BFE2CFB(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex, cells);
|
|
1261
|
+
}
|
|
1262
|
+
static updateRow(tableName, rowIndex, cells) {
|
|
1263
|
+
return (study) => {
|
|
1264
|
+
const newAssay = study.Copy();
|
|
1265
|
+
newAssay.UpdateRow(tableName, rowIndex, cells);
|
|
1266
|
+
return newAssay;
|
|
1267
|
+
};
|
|
1268
|
+
}
|
|
1269
|
+
GetRowAt(tableIndex, rowIndex) {
|
|
1270
|
+
const this$ = this;
|
|
1271
|
+
return ArcTables__GetRowAt_Z37302880(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableIndex, rowIndex);
|
|
1272
|
+
}
|
|
1273
|
+
static getRowAt(tableIndex, rowIndex) {
|
|
1274
|
+
return (study) => {
|
|
1275
|
+
const newAssay = study.Copy();
|
|
1276
|
+
return newAssay.GetRowAt(tableIndex, rowIndex);
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
GetRow(tableName, rowIndex) {
|
|
1280
|
+
const this$ = this;
|
|
1281
|
+
return ArcTables__GetRow_Z18115A39(ArcTables_$ctor_Z18C2F36D(this$.Tables), tableName, rowIndex);
|
|
1282
|
+
}
|
|
1283
|
+
static getRow(tableName, rowIndex) {
|
|
1284
|
+
return (study) => {
|
|
1285
|
+
const newAssay = study.Copy();
|
|
1286
|
+
return newAssay.GetRow(tableName, rowIndex);
|
|
1287
|
+
};
|
|
1288
|
+
}
|
|
1289
|
+
AddToInvestigation(investigation) {
|
|
1290
|
+
const this$ = this;
|
|
1291
|
+
this$.Investigation = investigation;
|
|
1292
|
+
}
|
|
1293
|
+
RemoveFromInvestigation() {
|
|
1294
|
+
const this$ = this;
|
|
1295
|
+
this$.Investigation = void 0;
|
|
1296
|
+
}
|
|
1297
|
+
Copy() {
|
|
1298
|
+
const this$ = this;
|
|
1299
|
+
const nextTables = [];
|
|
1300
|
+
const nextAssayIdentifiers = Array.from(this$.RegisteredAssayIdentifiers);
|
|
1301
|
+
let enumerator = getEnumerator(this$.Tables);
|
|
1302
|
+
try {
|
|
1303
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1304
|
+
const table = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1305
|
+
const copy = table.Copy();
|
|
1306
|
+
void (nextTables.push(copy));
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
finally {
|
|
1310
|
+
disposeSafe(enumerator);
|
|
1311
|
+
}
|
|
1312
|
+
const nextComments = map((c) => c.Copy(), this$.Comments);
|
|
1313
|
+
const nextFactors = map((c_1) => c_1.Copy(), this$.Factors);
|
|
1314
|
+
const nextContacts = map((c_2) => c_2.Copy(), this$.Contacts);
|
|
1315
|
+
const nextPublications = map((c_3) => c_3.Copy(), this$.Publications);
|
|
1316
|
+
const nextStudyDesignDescriptors = map((c_4) => c_4.Copy(), this$.StudyDesignDescriptors);
|
|
1317
|
+
return new ArcStudy(this$.Identifier, unwrap(this$.Title), unwrap(this$.Description), unwrap(this$.SubmissionDate), unwrap(this$.PublicReleaseDate), nextPublications, nextContacts, nextStudyDesignDescriptors, nextTables, nextAssayIdentifiers, nextFactors, nextComments);
|
|
1318
|
+
}
|
|
1319
|
+
UpdateReferenceByStudyFile(study, onlyReplaceExisting, keepUnusedRefTables) {
|
|
1320
|
+
const this$ = this;
|
|
1321
|
+
const updateAlways = !defaultArg(onlyReplaceExisting, false);
|
|
1322
|
+
if ((study.Title != null) ? true : updateAlways) {
|
|
1323
|
+
this$.Title = study.Title;
|
|
1324
|
+
}
|
|
1325
|
+
if ((study.Description != null) ? true : updateAlways) {
|
|
1326
|
+
this$.Description = study.Description;
|
|
1327
|
+
}
|
|
1328
|
+
if ((study.SubmissionDate != null) ? true : updateAlways) {
|
|
1329
|
+
this$.SubmissionDate = study.SubmissionDate;
|
|
1330
|
+
}
|
|
1331
|
+
if ((study.PublicReleaseDate != null) ? true : updateAlways) {
|
|
1332
|
+
this$.PublicReleaseDate = study.PublicReleaseDate;
|
|
1333
|
+
}
|
|
1334
|
+
if ((study.Publications.length !== 0) ? true : updateAlways) {
|
|
1335
|
+
this$.Publications = study.Publications;
|
|
1336
|
+
}
|
|
1337
|
+
if ((study.Contacts.length !== 0) ? true : updateAlways) {
|
|
1338
|
+
this$.Contacts = study.Contacts;
|
|
1339
|
+
}
|
|
1340
|
+
if ((study.StudyDesignDescriptors.length !== 0) ? true : updateAlways) {
|
|
1341
|
+
this$.StudyDesignDescriptors = study.StudyDesignDescriptors;
|
|
1342
|
+
}
|
|
1343
|
+
if ((study.Tables.length !== 0) ? true : updateAlways) {
|
|
1344
|
+
const tables = ArcTables_updateReferenceTablesBySheets_Z2EE88E97(ArcTables_$ctor_Z18C2F36D(this$.Tables), ArcTables_$ctor_Z18C2F36D(study.Tables), unwrap(keepUnusedRefTables));
|
|
1345
|
+
this$.Tables = ArcTables__get_Tables(tables);
|
|
1346
|
+
}
|
|
1347
|
+
if ((study.RegisteredAssayIdentifiers.length !== 0) ? true : updateAlways) {
|
|
1348
|
+
this$.RegisteredAssayIdentifiers = study.RegisteredAssayIdentifiers;
|
|
1349
|
+
}
|
|
1350
|
+
if ((study.Factors.length !== 0) ? true : updateAlways) {
|
|
1351
|
+
this$.Factors = study.Factors;
|
|
1352
|
+
}
|
|
1353
|
+
if ((study.Comments.length !== 0) ? true : updateAlways) {
|
|
1354
|
+
this$.Comments = study.Comments;
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
ToStudy(arcAssays) {
|
|
1358
|
+
const this$ = this;
|
|
1359
|
+
const processSeq = ArcTables__GetProcesses(ArcTables_$ctor_Z18C2F36D(this$.Tables));
|
|
1360
|
+
const protocols = Option_fromValueWithDefault(empty(), getProtocols(processSeq));
|
|
1361
|
+
let studyMaterials;
|
|
1362
|
+
const v_4 = StudyMaterials_create_1BE9FA55(unwrap(Option_fromValueWithDefault(empty(), getSources(processSeq))), unwrap(Option_fromValueWithDefault(empty(), getSamples(processSeq))), unwrap(Option_fromValueWithDefault(empty(), getMaterials(processSeq))));
|
|
1363
|
+
studyMaterials = Option_fromValueWithDefault(StudyMaterials_get_empty(), v_4);
|
|
1364
|
+
const patternInput = isMissingIdentifier(this$.Identifier) ? [void 0, void 0] : [this$.Identifier, Study_fileNameFromIdentifier(this$.Identifier)];
|
|
1365
|
+
const assays = map_3((a) => a.ToAssay(), ofSeq(defaultArg(arcAssays, this$.GetRegisteredAssaysOrIdentifier())));
|
|
1366
|
+
return Study_create_Z2D28E954(void 0, unwrap(patternInput[1]), unwrap(patternInput[0]), unwrap(this$.Title), unwrap(this$.Description), unwrap(this$.SubmissionDate), unwrap(this$.PublicReleaseDate), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.Publications))), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.Contacts))), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.StudyDesignDescriptors))), unwrap(protocols), unwrap(studyMaterials), unwrap(Option_fromValueWithDefault(empty(), processSeq)), unwrap(Option_fromValueWithDefault(empty(), assays)), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.Factors))), unwrap(Option_fromValueWithDefault(empty(), getCharacteristics(processSeq))), unwrap(Option_fromValueWithDefault(empty(), getUnits(processSeq))), unwrap(Option_fromValueWithDefault(empty(), ofArray(this$.Comments))));
|
|
1367
|
+
}
|
|
1368
|
+
static fromStudy(s) {
|
|
1369
|
+
const tables = map_1((arg_1) => ArcTables__get_Tables(ArcTables_fromProcesses_134EBDED(arg_1)), s.ProcessSequence);
|
|
1370
|
+
let identifer;
|
|
1371
|
+
const matchValue = s.FileName;
|
|
1372
|
+
identifer = ((matchValue == null) ? createMissingIdentifier() : Study_identifierFromFileName(matchValue));
|
|
1373
|
+
const assays = defaultArg(map_1((arg_4) => {
|
|
1374
|
+
const arg_3 = map_3((arg_2) => ArcAssay.fromAssay(arg_2), arg_4);
|
|
1375
|
+
return Array.from(arg_3);
|
|
1376
|
+
}, s.Assays), []);
|
|
1377
|
+
let assaysIdentifiers;
|
|
1378
|
+
const arg_5 = map_2((a) => a.Identifier, assays);
|
|
1379
|
+
assaysIdentifiers = Array.from(arg_5);
|
|
1380
|
+
return [ArcStudy.create(identifer, unwrap(s.Title), unwrap(s.Description), unwrap(s.SubmissionDate), unwrap(s.PublicReleaseDate), unwrap(map_1(toArray_1, s.Publications)), unwrap(map_1(toArray_1, s.Contacts)), unwrap(map_1(toArray_1, s.StudyDesignDescriptors)), unwrap(tables), assaysIdentifiers, unwrap(map_1(toArray_1, s.Factors)), unwrap(map_1(toArray_1, s.Comments))), assays];
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
export function ArcStudy_$reflection() {
|
|
1385
|
+
return class_type("ARCtrl.ISA.ArcStudy", void 0, ArcStudy);
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
export function ArcStudy_$ctor_Z4F2D842F(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments) {
|
|
1389
|
+
return new ArcStudy(identifier, title, description, submissionDate, publicReleaseDate, publications, contacts, studyDesignDescriptors, tables, registeredAssayIdentifiers, factors, comments);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
export class ArcInvestigation {
|
|
1393
|
+
constructor(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, registeredStudyIdentifiers, comments, remarks) {
|
|
1394
|
+
const this$ = new FSharpRef(defaultOf());
|
|
1395
|
+
this$.contents = this;
|
|
1396
|
+
const ontologySourceReferences_1 = defaultArg(ontologySourceReferences, []);
|
|
1397
|
+
const publications_1 = defaultArg(publications, []);
|
|
1398
|
+
const contacts_1 = defaultArg(contacts, []);
|
|
1399
|
+
let assays_1;
|
|
1400
|
+
const ass = defaultArg(assays, []);
|
|
1401
|
+
let enumerator = getEnumerator(ass);
|
|
1402
|
+
try {
|
|
1403
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1404
|
+
const a = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1405
|
+
a.Investigation = this$.contents;
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
finally {
|
|
1409
|
+
disposeSafe(enumerator);
|
|
1410
|
+
}
|
|
1411
|
+
assays_1 = ass;
|
|
1412
|
+
let studies_1;
|
|
1413
|
+
const sss = defaultArg(studies, []);
|
|
1414
|
+
let enumerator_1 = getEnumerator(sss);
|
|
1415
|
+
try {
|
|
1416
|
+
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1417
|
+
const s = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1418
|
+
s.Investigation = this$.contents;
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
finally {
|
|
1422
|
+
disposeSafe(enumerator_1);
|
|
1423
|
+
}
|
|
1424
|
+
studies_1 = sss;
|
|
1425
|
+
const registeredStudyIdentifiers_1 = defaultArg(registeredStudyIdentifiers, []);
|
|
1426
|
+
const comments_1 = defaultArg(comments, []);
|
|
1427
|
+
const remarks_1 = defaultArg(remarks, []);
|
|
1428
|
+
this["identifier@1235"] = identifier;
|
|
1429
|
+
this["Title@"] = title;
|
|
1430
|
+
this["Description@"] = description;
|
|
1431
|
+
this["SubmissionDate@"] = submissionDate;
|
|
1432
|
+
this["PublicReleaseDate@"] = publicReleaseDate;
|
|
1433
|
+
this["OntologySourceReferences@"] = ontologySourceReferences_1;
|
|
1434
|
+
this["Publications@"] = publications_1;
|
|
1435
|
+
this["Contacts@"] = contacts_1;
|
|
1436
|
+
this["Assays@"] = assays_1;
|
|
1437
|
+
this["Studies@"] = studies_1;
|
|
1438
|
+
this["RegisteredStudyIdentifiers@"] = registeredStudyIdentifiers_1;
|
|
1439
|
+
this["Comments@"] = comments_1;
|
|
1440
|
+
this["Remarks@"] = remarks_1;
|
|
1441
|
+
this["init@1216"] = 1;
|
|
1442
|
+
}
|
|
1443
|
+
get Identifier() {
|
|
1444
|
+
const this$ = this;
|
|
1445
|
+
return this$["identifier@1235"];
|
|
1446
|
+
}
|
|
1447
|
+
set Identifier(i) {
|
|
1448
|
+
const this$ = this;
|
|
1449
|
+
this$["identifier@1235"] = i;
|
|
1450
|
+
}
|
|
1451
|
+
get Title() {
|
|
1452
|
+
const __ = this;
|
|
1453
|
+
return unwrap(__["Title@"]);
|
|
1454
|
+
}
|
|
1455
|
+
set Title(v) {
|
|
1456
|
+
const __ = this;
|
|
1457
|
+
__["Title@"] = v;
|
|
1458
|
+
}
|
|
1459
|
+
get Description() {
|
|
1460
|
+
const __ = this;
|
|
1461
|
+
return unwrap(__["Description@"]);
|
|
1462
|
+
}
|
|
1463
|
+
set Description(v) {
|
|
1464
|
+
const __ = this;
|
|
1465
|
+
__["Description@"] = v;
|
|
1466
|
+
}
|
|
1467
|
+
get SubmissionDate() {
|
|
1468
|
+
const __ = this;
|
|
1469
|
+
return unwrap(__["SubmissionDate@"]);
|
|
1470
|
+
}
|
|
1471
|
+
set SubmissionDate(v) {
|
|
1472
|
+
const __ = this;
|
|
1473
|
+
__["SubmissionDate@"] = v;
|
|
1474
|
+
}
|
|
1475
|
+
get PublicReleaseDate() {
|
|
1476
|
+
const __ = this;
|
|
1477
|
+
return unwrap(__["PublicReleaseDate@"]);
|
|
1478
|
+
}
|
|
1479
|
+
set PublicReleaseDate(v) {
|
|
1480
|
+
const __ = this;
|
|
1481
|
+
__["PublicReleaseDate@"] = v;
|
|
1482
|
+
}
|
|
1483
|
+
get OntologySourceReferences() {
|
|
1484
|
+
const __ = this;
|
|
1485
|
+
return __["OntologySourceReferences@"];
|
|
1486
|
+
}
|
|
1487
|
+
set OntologySourceReferences(v) {
|
|
1488
|
+
const __ = this;
|
|
1489
|
+
__["OntologySourceReferences@"] = v;
|
|
1490
|
+
}
|
|
1491
|
+
get Publications() {
|
|
1492
|
+
const __ = this;
|
|
1493
|
+
return __["Publications@"];
|
|
1494
|
+
}
|
|
1495
|
+
set Publications(v) {
|
|
1496
|
+
const __ = this;
|
|
1497
|
+
__["Publications@"] = v;
|
|
1498
|
+
}
|
|
1499
|
+
get Contacts() {
|
|
1500
|
+
const __ = this;
|
|
1501
|
+
return __["Contacts@"];
|
|
1502
|
+
}
|
|
1503
|
+
set Contacts(v) {
|
|
1504
|
+
const __ = this;
|
|
1505
|
+
__["Contacts@"] = v;
|
|
1506
|
+
}
|
|
1507
|
+
get Assays() {
|
|
1508
|
+
const __ = this;
|
|
1509
|
+
return __["Assays@"];
|
|
1510
|
+
}
|
|
1511
|
+
set Assays(v) {
|
|
1512
|
+
const __ = this;
|
|
1513
|
+
__["Assays@"] = v;
|
|
1514
|
+
}
|
|
1515
|
+
get Studies() {
|
|
1516
|
+
const __ = this;
|
|
1517
|
+
return __["Studies@"];
|
|
1518
|
+
}
|
|
1519
|
+
set Studies(v) {
|
|
1520
|
+
const __ = this;
|
|
1521
|
+
__["Studies@"] = v;
|
|
1522
|
+
}
|
|
1523
|
+
get RegisteredStudyIdentifiers() {
|
|
1524
|
+
const __ = this;
|
|
1525
|
+
return __["RegisteredStudyIdentifiers@"];
|
|
1526
|
+
}
|
|
1527
|
+
set RegisteredStudyIdentifiers(v) {
|
|
1528
|
+
const __ = this;
|
|
1529
|
+
__["RegisteredStudyIdentifiers@"] = v;
|
|
1530
|
+
}
|
|
1531
|
+
get Comments() {
|
|
1532
|
+
const __ = this;
|
|
1533
|
+
return __["Comments@"];
|
|
1534
|
+
}
|
|
1535
|
+
set Comments(v) {
|
|
1536
|
+
const __ = this;
|
|
1537
|
+
__["Comments@"] = v;
|
|
1538
|
+
}
|
|
1539
|
+
get Remarks() {
|
|
1540
|
+
const __ = this;
|
|
1541
|
+
return __["Remarks@"];
|
|
1542
|
+
}
|
|
1543
|
+
set Remarks(v) {
|
|
1544
|
+
const __ = this;
|
|
1545
|
+
__["Remarks@"] = v;
|
|
1546
|
+
}
|
|
1547
|
+
static get FileName() {
|
|
1548
|
+
return "isa.investigation.xlsx";
|
|
1549
|
+
}
|
|
1550
|
+
static init(identifier) {
|
|
1551
|
+
return new ArcInvestigation(identifier);
|
|
1552
|
+
}
|
|
1553
|
+
static create(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, registeredStudyIdentifiers, comments, remarks) {
|
|
1554
|
+
return new ArcInvestigation(identifier, unwrap(title), unwrap(description), unwrap(submissionDate), unwrap(publicReleaseDate), unwrap(ontologySourceReferences), unwrap(publications), unwrap(contacts), unwrap(assays), unwrap(studies), unwrap(registeredStudyIdentifiers), unwrap(comments), unwrap(remarks));
|
|
1555
|
+
}
|
|
1556
|
+
static make(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, registeredStudyIdentifiers, comments, remarks) {
|
|
1557
|
+
return new ArcInvestigation(identifier, unwrap(title), unwrap(description), unwrap(submissionDate), unwrap(publicReleaseDate), ontologySourceReferences, publications, contacts, assays, studies, registeredStudyIdentifiers, comments, remarks);
|
|
1558
|
+
}
|
|
1559
|
+
get AssayCount() {
|
|
1560
|
+
const this$ = this;
|
|
1561
|
+
return this$.Assays.length | 0;
|
|
1562
|
+
}
|
|
1563
|
+
get AssayIdentifiers() {
|
|
1564
|
+
const this$ = this;
|
|
1565
|
+
return Array.from(map_2((x) => x.Identifier, this$.Assays));
|
|
1566
|
+
}
|
|
1567
|
+
AddAssay(assay) {
|
|
1568
|
+
const this$ = this;
|
|
1569
|
+
const assayIdent = assay.Identifier;
|
|
1570
|
+
const matchValue = tryFindIndex((x_1) => (x_1 === assayIdent), map_2((x) => x.Identifier, this$.Assays));
|
|
1571
|
+
if (matchValue == null) {
|
|
1572
|
+
}
|
|
1573
|
+
else {
|
|
1574
|
+
throw new Error(`Cannot create assay with name ${assayIdent}, as assay names must be unique and assay at index ${matchValue} has the same name.`);
|
|
1575
|
+
}
|
|
1576
|
+
assay.Investigation = this$;
|
|
1577
|
+
void (this$.Assays.push(assay));
|
|
1578
|
+
}
|
|
1579
|
+
static addAssay(assay) {
|
|
1580
|
+
return (inv) => {
|
|
1581
|
+
const newInvestigation = inv.Copy();
|
|
1582
|
+
newInvestigation.AddAssay(assay);
|
|
1583
|
+
return newInvestigation;
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
InitAssay(assayIdentifier) {
|
|
1587
|
+
const this$ = this;
|
|
1588
|
+
const assay = new ArcAssay(assayIdentifier);
|
|
1589
|
+
this$.AddAssay(assay);
|
|
1590
|
+
return assay;
|
|
1591
|
+
}
|
|
1592
|
+
static initAssay(assayIdentifier) {
|
|
1593
|
+
return (inv) => {
|
|
1594
|
+
const newInvestigation = inv.Copy();
|
|
1595
|
+
return newInvestigation.InitAssay(assayIdentifier);
|
|
1596
|
+
};
|
|
1597
|
+
}
|
|
1598
|
+
RemoveAssayAt(index) {
|
|
1599
|
+
const this$ = this;
|
|
1600
|
+
this$.Assays.splice(index, 1);
|
|
1601
|
+
this$.DeregisterMissingAssays();
|
|
1602
|
+
}
|
|
1603
|
+
static removeAssayAt(index) {
|
|
1604
|
+
return (inv) => {
|
|
1605
|
+
const newInvestigation = inv.Copy();
|
|
1606
|
+
newInvestigation.RemoveAssayAt(index);
|
|
1607
|
+
return newInvestigation;
|
|
1608
|
+
};
|
|
1609
|
+
}
|
|
1610
|
+
RemoveAssay(assayIdentifier) {
|
|
1611
|
+
const this$ = this;
|
|
1612
|
+
const index = this$.GetAssayIndex(assayIdentifier) | 0;
|
|
1613
|
+
this$.RemoveAssayAt(index);
|
|
1614
|
+
}
|
|
1615
|
+
static removeAssay(assayIdentifier) {
|
|
1616
|
+
return (inv) => {
|
|
1617
|
+
const newInv = inv.Copy();
|
|
1618
|
+
newInv.RemoveAssay(assayIdentifier);
|
|
1619
|
+
return newInv;
|
|
1620
|
+
};
|
|
1621
|
+
}
|
|
1622
|
+
SetAssayAt(index, assay) {
|
|
1623
|
+
const this$ = this;
|
|
1624
|
+
const assayIdent = assay.Identifier;
|
|
1625
|
+
const matchValue = tryFindIndex((x) => (x === assayIdent), map_2((a) => a.Identifier, removeAt(index, this$.Assays)));
|
|
1626
|
+
if (matchValue == null) {
|
|
1627
|
+
}
|
|
1628
|
+
else {
|
|
1629
|
+
throw new Error(`Cannot create assay with name ${assayIdent}, as assay names must be unique and assay at index ${matchValue} has the same name.`);
|
|
1630
|
+
}
|
|
1631
|
+
assay.Investigation = this$;
|
|
1632
|
+
this$.Assays[index] = assay;
|
|
1633
|
+
this$.DeregisterMissingAssays();
|
|
1634
|
+
}
|
|
1635
|
+
static setAssayAt(index, assay) {
|
|
1636
|
+
return (inv) => {
|
|
1637
|
+
const newInvestigation = inv.Copy();
|
|
1638
|
+
newInvestigation.SetAssayAt(index, assay);
|
|
1639
|
+
return newInvestigation;
|
|
1640
|
+
};
|
|
1641
|
+
}
|
|
1642
|
+
SetAssay(assayIdentifier, assay) {
|
|
1643
|
+
const this$ = this;
|
|
1644
|
+
const index = this$.GetAssayIndex(assayIdentifier) | 0;
|
|
1645
|
+
this$.SetAssayAt(index, assay);
|
|
1646
|
+
}
|
|
1647
|
+
static setAssay(assayIdentifier, assay) {
|
|
1648
|
+
return (inv) => {
|
|
1649
|
+
const newInvestigation = inv.Copy();
|
|
1650
|
+
newInvestigation.SetAssay(assayIdentifier, assay);
|
|
1651
|
+
return newInvestigation;
|
|
1652
|
+
};
|
|
1653
|
+
}
|
|
1654
|
+
GetAssayIndex(assayIdentifier) {
|
|
1655
|
+
const this$ = this;
|
|
1656
|
+
const index = this$.Assays.findIndex((a) => (a.Identifier === assayIdentifier)) | 0;
|
|
1657
|
+
if (index === -1) {
|
|
1658
|
+
throw new Error(`Unable to find assay with specified identifier '${assayIdentifier}'!`);
|
|
1659
|
+
}
|
|
1660
|
+
return index | 0;
|
|
1661
|
+
}
|
|
1662
|
+
static getAssayIndex(assayIdentifier) {
|
|
1663
|
+
return (inv) => inv.GetAssayIndex(assayIdentifier);
|
|
1664
|
+
}
|
|
1665
|
+
GetAssayAt(index) {
|
|
1666
|
+
const this$ = this;
|
|
1667
|
+
return this$.Assays[index];
|
|
1668
|
+
}
|
|
1669
|
+
static getAssayAt(index) {
|
|
1670
|
+
return (inv) => {
|
|
1671
|
+
const newInvestigation = inv.Copy();
|
|
1672
|
+
return newInvestigation.GetAssayAt(index);
|
|
1673
|
+
};
|
|
1674
|
+
}
|
|
1675
|
+
GetAssay(assayIdentifier) {
|
|
1676
|
+
const this$ = this;
|
|
1677
|
+
const index = this$.GetAssayIndex(assayIdentifier) | 0;
|
|
1678
|
+
return this$.GetAssayAt(index);
|
|
1679
|
+
}
|
|
1680
|
+
static getAssay(assayIdentifier) {
|
|
1681
|
+
return (inv) => {
|
|
1682
|
+
const newInvestigation = inv.Copy();
|
|
1683
|
+
return newInvestigation.GetAssay(assayIdentifier);
|
|
1684
|
+
};
|
|
1685
|
+
}
|
|
1686
|
+
get RegisteredStudies() {
|
|
1687
|
+
const this$ = this;
|
|
1688
|
+
const arg = map_2((identifier) => this$.GetStudy(identifier), this$.RegisteredStudyIdentifiers);
|
|
1689
|
+
return Array.from(arg);
|
|
1690
|
+
}
|
|
1691
|
+
get StudyCount() {
|
|
1692
|
+
const this$ = this;
|
|
1693
|
+
return this$.Studies.length | 0;
|
|
1694
|
+
}
|
|
1695
|
+
get StudyIdentifiers() {
|
|
1696
|
+
const this$ = this;
|
|
1697
|
+
return map_2((x) => x.Identifier, this$.Studies);
|
|
1698
|
+
}
|
|
1699
|
+
AddStudy(study) {
|
|
1700
|
+
const this$ = this;
|
|
1701
|
+
const study_1 = study;
|
|
1702
|
+
const matchValue = tryFindIndex((x) => (x.Identifier === study_1.Identifier), this$.Studies);
|
|
1703
|
+
if (matchValue == null) {
|
|
1704
|
+
}
|
|
1705
|
+
else {
|
|
1706
|
+
throw new Error(`Cannot create study with name ${study_1.Identifier}, as study names must be unique and study at index ${matchValue} has the same name.`);
|
|
1707
|
+
}
|
|
1708
|
+
study.Investigation = this$;
|
|
1709
|
+
void (this$.Studies.push(study));
|
|
1710
|
+
}
|
|
1711
|
+
static addStudy(study) {
|
|
1712
|
+
return (inv) => {
|
|
1713
|
+
const copy = inv.Copy();
|
|
1714
|
+
copy.AddStudy(study);
|
|
1715
|
+
return copy;
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
InitStudy(studyIdentifier) {
|
|
1719
|
+
const this$ = this;
|
|
1720
|
+
const study = ArcStudy.init(studyIdentifier);
|
|
1721
|
+
this$.AddStudy(study);
|
|
1722
|
+
return study;
|
|
1723
|
+
}
|
|
1724
|
+
static initStudy(studyIdentifier) {
|
|
1725
|
+
return (inv) => {
|
|
1726
|
+
const copy = inv.Copy();
|
|
1727
|
+
return [copy, copy.InitStudy(studyIdentifier)];
|
|
1728
|
+
};
|
|
1729
|
+
}
|
|
1730
|
+
RegisterStudy(studyIdentifier) {
|
|
1731
|
+
const this$ = this;
|
|
1732
|
+
const studyIdent = studyIdentifier;
|
|
1733
|
+
const matchValue = tryFind((x) => (x === studyIdent), this$.StudyIdentifiers);
|
|
1734
|
+
if (matchValue != null) {
|
|
1735
|
+
}
|
|
1736
|
+
else {
|
|
1737
|
+
throw new Error(`The given study with identifier '${studyIdent}' must be added to Investigation before it can be registered.`);
|
|
1738
|
+
}
|
|
1739
|
+
const studyIdent_1 = studyIdentifier;
|
|
1740
|
+
if (contains(studyIdent_1, this$.RegisteredStudyIdentifiers, {
|
|
1741
|
+
Equals: (x_1, y) => (x_1 === y),
|
|
1742
|
+
GetHashCode: stringHash,
|
|
1743
|
+
})) {
|
|
1744
|
+
throw new Error(`Study with identifier '${studyIdent_1}' is already registered!`);
|
|
1745
|
+
}
|
|
1746
|
+
void (this$.RegisteredStudyIdentifiers.push(studyIdentifier));
|
|
1747
|
+
}
|
|
1748
|
+
static registerStudy(studyIdentifier) {
|
|
1749
|
+
return (inv) => {
|
|
1750
|
+
const copy = inv.Copy();
|
|
1751
|
+
copy.RegisterStudy(studyIdentifier);
|
|
1752
|
+
return copy;
|
|
1753
|
+
};
|
|
1754
|
+
}
|
|
1755
|
+
AddRegisteredStudy(study) {
|
|
1756
|
+
const this$ = this;
|
|
1757
|
+
this$.AddStudy(study);
|
|
1758
|
+
this$.RegisterStudy(study.Identifier);
|
|
1759
|
+
}
|
|
1760
|
+
static addRegisteredStudy(study) {
|
|
1761
|
+
return (inv) => {
|
|
1762
|
+
const copy = inv.Copy();
|
|
1763
|
+
const study_1 = study.Copy();
|
|
1764
|
+
copy.AddRegisteredStudy(study_1);
|
|
1765
|
+
return copy;
|
|
1766
|
+
};
|
|
1767
|
+
}
|
|
1768
|
+
RemoveStudyAt(index) {
|
|
1769
|
+
const this$ = this;
|
|
1770
|
+
this$.Studies.splice(index, 1);
|
|
1771
|
+
}
|
|
1772
|
+
static removeStudyAt(index) {
|
|
1773
|
+
return (inv) => {
|
|
1774
|
+
const newInv = inv.Copy();
|
|
1775
|
+
newInv.RemoveStudyAt(index);
|
|
1776
|
+
return newInv;
|
|
1777
|
+
};
|
|
1778
|
+
}
|
|
1779
|
+
RemoveStudy(studyIdentifier) {
|
|
1780
|
+
const this$ = this;
|
|
1781
|
+
removeInPlace(this$.GetStudy(studyIdentifier), this$.Studies, {
|
|
1782
|
+
Equals: equals,
|
|
1783
|
+
GetHashCode: safeHash,
|
|
1784
|
+
});
|
|
1785
|
+
}
|
|
1786
|
+
static removeStudy(studyIdentifier) {
|
|
1787
|
+
return (inv) => {
|
|
1788
|
+
const copy = inv.Copy();
|
|
1789
|
+
copy.RemoveStudy(studyIdentifier);
|
|
1790
|
+
return copy;
|
|
1791
|
+
};
|
|
1792
|
+
}
|
|
1793
|
+
SetStudyAt(index, study) {
|
|
1794
|
+
const this$ = this;
|
|
1795
|
+
const study_1 = study;
|
|
1796
|
+
const matchValue = tryFindIndex((x) => (x.Identifier === study_1.Identifier), removeAt(index, this$.Studies));
|
|
1797
|
+
if (matchValue == null) {
|
|
1798
|
+
}
|
|
1799
|
+
else {
|
|
1800
|
+
throw new Error(`Cannot create study with name ${study_1.Identifier}, as study names must be unique and study at index ${matchValue} has the same name.`);
|
|
1801
|
+
}
|
|
1802
|
+
study.Investigation = this$;
|
|
1803
|
+
this$.Studies[index] = study;
|
|
1804
|
+
}
|
|
1805
|
+
static setStudyAt(index, study) {
|
|
1806
|
+
return (inv) => {
|
|
1807
|
+
const newInv = inv.Copy();
|
|
1808
|
+
newInv.SetStudyAt(index, study);
|
|
1809
|
+
return newInv;
|
|
1810
|
+
};
|
|
1811
|
+
}
|
|
1812
|
+
SetStudy(studyIdentifier, study) {
|
|
1813
|
+
const this$ = this;
|
|
1814
|
+
const index = this$.GetStudyIndex(studyIdentifier) | 0;
|
|
1815
|
+
this$.SetStudyAt(index, study);
|
|
1816
|
+
}
|
|
1817
|
+
static setStudy(studyIdentifier, study) {
|
|
1818
|
+
return (inv) => {
|
|
1819
|
+
const newInv = inv.Copy();
|
|
1820
|
+
newInv.SetStudy(studyIdentifier, study);
|
|
1821
|
+
return newInv;
|
|
1822
|
+
};
|
|
1823
|
+
}
|
|
1824
|
+
GetStudyIndex(studyIdentifier) {
|
|
1825
|
+
const this$ = this;
|
|
1826
|
+
const index = this$.Studies.findIndex((s) => (s.Identifier === studyIdentifier)) | 0;
|
|
1827
|
+
if (index === -1) {
|
|
1828
|
+
throw new Error(`Unable to find study with specified identifier '${studyIdentifier}'!`);
|
|
1829
|
+
}
|
|
1830
|
+
return index | 0;
|
|
1831
|
+
}
|
|
1832
|
+
static getStudyIndex(studyIdentifier) {
|
|
1833
|
+
return (inv) => inv.GetStudyIndex(studyIdentifier);
|
|
1834
|
+
}
|
|
1835
|
+
GetStudyAt(index) {
|
|
1836
|
+
const this$ = this;
|
|
1837
|
+
return this$.Studies[index];
|
|
1838
|
+
}
|
|
1839
|
+
static getStudyAt(index) {
|
|
1840
|
+
return (inv) => {
|
|
1841
|
+
const newInv = inv.Copy();
|
|
1842
|
+
return newInv.GetStudyAt(index);
|
|
1843
|
+
};
|
|
1844
|
+
}
|
|
1845
|
+
GetStudy(studyIdentifier) {
|
|
1846
|
+
const this$ = this;
|
|
1847
|
+
return defaultArg(tryFind_1((s) => (s.Identifier === studyIdentifier), this$.Studies), defaultOf());
|
|
1848
|
+
}
|
|
1849
|
+
static getStudy(studyIdentifier) {
|
|
1850
|
+
return (inv) => {
|
|
1851
|
+
const newInv = inv.Copy();
|
|
1852
|
+
return newInv.GetStudy(studyIdentifier);
|
|
1853
|
+
};
|
|
1854
|
+
}
|
|
1855
|
+
RegisterAssayAt(studyIndex, assayIdentifier) {
|
|
1856
|
+
const this$ = this;
|
|
1857
|
+
const study = this$.GetStudyAt(studyIndex);
|
|
1858
|
+
const matchValue = tryFind((x) => (x === assayIdentifier), map_2((a) => a.Identifier, this$.Assays));
|
|
1859
|
+
if (matchValue != null) {
|
|
1860
|
+
}
|
|
1861
|
+
else {
|
|
1862
|
+
throw new Error("The given assay must be added to Investigation before it can be registered.");
|
|
1863
|
+
}
|
|
1864
|
+
const assayIdent_1 = assayIdentifier;
|
|
1865
|
+
const matchValue_1 = tryFindIndex((x_1) => (x_1 === assayIdent_1), study.RegisteredAssayIdentifiers);
|
|
1866
|
+
if (matchValue_1 == null) {
|
|
1867
|
+
}
|
|
1868
|
+
else {
|
|
1869
|
+
throw new Error(`Cannot create assay with name ${assayIdent_1}, as assay names must be unique and assay at index ${matchValue_1} has the same name.`);
|
|
1870
|
+
}
|
|
1871
|
+
study.RegisterAssay(assayIdentifier);
|
|
1872
|
+
}
|
|
1873
|
+
static registerAssayAt(studyIndex, assayIdentifier) {
|
|
1874
|
+
return (inv) => {
|
|
1875
|
+
const copy = inv.Copy();
|
|
1876
|
+
copy.RegisterAssayAt(studyIndex, assayIdentifier);
|
|
1877
|
+
return copy;
|
|
1878
|
+
};
|
|
1879
|
+
}
|
|
1880
|
+
RegisterAssay(studyIdentifier, assayIdentifier) {
|
|
1881
|
+
const this$ = this;
|
|
1882
|
+
const index = this$.GetStudyIndex(studyIdentifier) | 0;
|
|
1883
|
+
this$.RegisterAssayAt(index, assayIdentifier);
|
|
1884
|
+
}
|
|
1885
|
+
static registerAssay(studyIdentifier, assayIdentifier) {
|
|
1886
|
+
return (inv) => {
|
|
1887
|
+
const copy = inv.Copy();
|
|
1888
|
+
copy.RegisterAssay(studyIdentifier, assayIdentifier);
|
|
1889
|
+
return copy;
|
|
1890
|
+
};
|
|
1891
|
+
}
|
|
1892
|
+
DeregisterAssayAt(studyIndex, assayIdentifier) {
|
|
1893
|
+
const this$ = this;
|
|
1894
|
+
const study = this$.GetStudyAt(studyIndex);
|
|
1895
|
+
study.DeregisterAssay(assayIdentifier);
|
|
1896
|
+
}
|
|
1897
|
+
static deregisterAssayAt(studyIndex, assayIdentifier) {
|
|
1898
|
+
return (inv) => {
|
|
1899
|
+
const copy = inv.Copy();
|
|
1900
|
+
copy.DeregisterAssayAt(studyIndex, assayIdentifier);
|
|
1901
|
+
return copy;
|
|
1902
|
+
};
|
|
1903
|
+
}
|
|
1904
|
+
DeregisterAssay(studyIdentifier, assayIdentifier) {
|
|
1905
|
+
const this$ = this;
|
|
1906
|
+
const index = this$.GetStudyIndex(studyIdentifier) | 0;
|
|
1907
|
+
this$.DeregisterAssayAt(index, assayIdentifier);
|
|
1908
|
+
}
|
|
1909
|
+
static deregisterAssay(studyIdentifier, assayIdentifier) {
|
|
1910
|
+
return (inv) => {
|
|
1911
|
+
const copy = inv.Copy();
|
|
1912
|
+
copy.DeregisterAssay(studyIdentifier, assayIdentifier);
|
|
1913
|
+
return copy;
|
|
1914
|
+
};
|
|
1915
|
+
}
|
|
1916
|
+
DeregisterMissingAssays() {
|
|
1917
|
+
const this$ = this;
|
|
1918
|
+
const inv = this$;
|
|
1919
|
+
const existingAssays = inv.AssayIdentifiers;
|
|
1920
|
+
let enumerator = getEnumerator(inv.Studies);
|
|
1921
|
+
try {
|
|
1922
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1923
|
+
const study = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1924
|
+
let enumerator_1 = getEnumerator(Array.from(study.RegisteredAssayIdentifiers));
|
|
1925
|
+
try {
|
|
1926
|
+
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1927
|
+
const registeredAssay = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1928
|
+
if (!contains(registeredAssay, existingAssays, {
|
|
1929
|
+
Equals: (x, y) => (x === y),
|
|
1930
|
+
GetHashCode: stringHash,
|
|
1931
|
+
})) {
|
|
1932
|
+
const value_1 = study.DeregisterAssay(registeredAssay);
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
finally {
|
|
1937
|
+
disposeSafe(enumerator_1);
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
finally {
|
|
1942
|
+
disposeSafe(enumerator);
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
static deregisterMissingAssays() {
|
|
1946
|
+
return (inv) => {
|
|
1947
|
+
const copy = inv.Copy();
|
|
1948
|
+
copy.DeregisterMissingAssays();
|
|
1949
|
+
return copy;
|
|
1950
|
+
};
|
|
1951
|
+
}
|
|
1952
|
+
Copy() {
|
|
1953
|
+
const this$ = this;
|
|
1954
|
+
const nextAssays = [];
|
|
1955
|
+
const nextStudies = [];
|
|
1956
|
+
let enumerator = getEnumerator(this$.Assays);
|
|
1957
|
+
try {
|
|
1958
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1959
|
+
const assay = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1960
|
+
const copy = assay.Copy();
|
|
1961
|
+
void (nextAssays.push(copy));
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
finally {
|
|
1965
|
+
disposeSafe(enumerator);
|
|
1966
|
+
}
|
|
1967
|
+
let enumerator_1 = getEnumerator(this$.Studies);
|
|
1968
|
+
try {
|
|
1969
|
+
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
1970
|
+
const study = enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
1971
|
+
const copy_1 = study.Copy();
|
|
1972
|
+
void (nextStudies.push(copy_1));
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
finally {
|
|
1976
|
+
disposeSafe(enumerator_1);
|
|
1977
|
+
}
|
|
1978
|
+
const nextComments = map((c) => c.Copy(), this$.Comments);
|
|
1979
|
+
const nextRemarks = map((c_1) => c_1.Copy(), this$.Remarks);
|
|
1980
|
+
const nextContacts = map((c_2) => c_2.Copy(), this$.Contacts);
|
|
1981
|
+
const nextPublications = map((c_3) => c_3.Copy(), this$.Publications);
|
|
1982
|
+
const nextOntologySourceReferences = map((c_4) => c_4.Copy(), this$.OntologySourceReferences);
|
|
1983
|
+
const nextStudyIdentifiers = Array.from(this$.RegisteredStudyIdentifiers);
|
|
1984
|
+
return new ArcInvestigation(this$.Identifier, unwrap(this$.Title), unwrap(this$.Description), unwrap(this$.SubmissionDate), unwrap(this$.PublicReleaseDate), nextOntologySourceReferences, nextPublications, nextContacts, nextAssays, nextStudies, nextStudyIdentifiers, nextComments, nextRemarks);
|
|
1985
|
+
}
|
|
1986
|
+
ToInvestigation() {
|
|
1987
|
+
const this$ = this;
|
|
1988
|
+
const studies = Option_fromValueWithDefault(empty(), map_3((a) => a.ToStudy(), toList(this$.RegisteredStudies)));
|
|
1989
|
+
return Investigation_create_4AD66BBE(void 0, "isa.investigation.xlsx", isMissingIdentifier(this$.Identifier) ? void 0 : this$.Identifier, this$.Title, this$.Description, this$.SubmissionDate, this$.PublicReleaseDate, void 0, Option_fromValueWithDefault(empty(), ofArray(this$.Publications)), Option_fromValueWithDefault(empty(), ofArray(this$.Contacts)), studies, Option_fromValueWithDefault(empty(), ofArray(this$.Comments)));
|
|
1990
|
+
}
|
|
1991
|
+
static fromInvestigation(i) {
|
|
1992
|
+
let identifer;
|
|
1993
|
+
const matchValue = i.Identifier;
|
|
1994
|
+
identifer = ((matchValue == null) ? createMissingIdentifier() : matchValue);
|
|
1995
|
+
const patternInput = unzip(map_3((arg) => ArcStudy.fromStudy(arg), defaultArg(i.Studies, empty())));
|
|
1996
|
+
const studiesRaw = patternInput[0];
|
|
1997
|
+
const studies = Array.from(studiesRaw);
|
|
1998
|
+
let studyIdentifiers;
|
|
1999
|
+
const arg_1 = map_2((a) => a.Identifier, studiesRaw);
|
|
2000
|
+
studyIdentifiers = Array.from(arg_1);
|
|
2001
|
+
let assays;
|
|
2002
|
+
const arg_2 = distinctBy((a_1) => a_1.Identifier, concat(patternInput[1]), {
|
|
2003
|
+
Equals: (x, y) => (x === y),
|
|
2004
|
+
GetHashCode: stringHash,
|
|
2005
|
+
});
|
|
2006
|
+
assays = Array.from(arg_2);
|
|
2007
|
+
return ArcInvestigation.create(identifer, i.Title, i.Description, i.SubmissionDate, i.PublicReleaseDate, void 0, map_1(toArray_1, i.Publications), map_1(toArray_1, i.Contacts), assays, studies, studyIdentifiers, map_1(toArray_1, i.Comments));
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
export function ArcInvestigation_$reflection() {
|
|
2012
|
+
return class_type("ARCtrl.ISA.ArcInvestigation", void 0, ArcInvestigation);
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
export function ArcInvestigation_$ctor_21AB11E9(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, registeredStudyIdentifiers, comments, remarks) {
|
|
2016
|
+
return new ArcInvestigation(identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications, contacts, assays, studies, registeredStudyIdentifiers, comments, remarks);
|
|
2017
|
+
}
|
|
2018
|
+
|