@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,68 @@
|
|
|
1
|
+
import { Union } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
2
|
+
import { union_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
3
|
+
|
|
4
|
+
export class DataFile extends Union {
|
|
5
|
+
constructor(tag, fields) {
|
|
6
|
+
super();
|
|
7
|
+
this.tag = tag;
|
|
8
|
+
this.fields = fields;
|
|
9
|
+
}
|
|
10
|
+
cases() {
|
|
11
|
+
return ["RawDataFile", "DerivedDataFile", "ImageFile"];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function DataFile_$reflection() {
|
|
16
|
+
return union_type("ARCtrl.ISA.DataFile", [], DataFile, () => [[], [], []]);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function DataFile_get_RawDataFileJson() {
|
|
20
|
+
return "Raw Data File";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function DataFile_get_DerivedDataFileJson() {
|
|
24
|
+
return "Derived Data File";
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function DataFile_get_ImageFileJson() {
|
|
28
|
+
return "Image File";
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function DataFile__get_AsString(this$) {
|
|
32
|
+
switch (this$.tag) {
|
|
33
|
+
case 1:
|
|
34
|
+
return "DerivedDataFileJson";
|
|
35
|
+
case 2:
|
|
36
|
+
return "ImageFileJson";
|
|
37
|
+
default:
|
|
38
|
+
return "RawDataFileJson";
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DataFile__get_IsDerivedData(this$) {
|
|
43
|
+
if (this$.tag === 1) {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DataFile__get_IsRawData(this$) {
|
|
52
|
+
if (this$.tag === 0) {
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DataFile__get_IsImage(this$) {
|
|
61
|
+
if (this$.tag === 2) {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { OntologyAnnotation_$reflection, OntologyAnnotation } from "./OntologyAnnotation.js";
|
|
2
|
+
import { map, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
3
|
+
import { Option_fromValueWithDefault } from "../Helper.js";
|
|
4
|
+
import { filter, map as map_1, singleton, append, exists, tryFind } from "../../../fable_modules/fable-library.4.1.4/List.js";
|
|
5
|
+
import { equals } from "../../../fable_modules/fable-library.4.1.4/Util.js";
|
|
6
|
+
import { record_type, array_type, option_type, string_type, getRecordFields, makeRecord } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
7
|
+
import { map as map_2, map2 } from "../../../fable_modules/fable-library.4.1.4/Array.js";
|
|
8
|
+
import { Update_updateOnlyByExistingAppend, Update_updateOnlyByExisting, Update_updateAppend } from "../Helper.js";
|
|
9
|
+
import { Record, toString } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
10
|
+
import { Comment$_$reflection } from "./Comment.js";
|
|
11
|
+
|
|
12
|
+
export class Factor extends Record {
|
|
13
|
+
constructor(ID, Name, FactorType, Comments) {
|
|
14
|
+
super();
|
|
15
|
+
this.ID = ID;
|
|
16
|
+
this.Name = Name;
|
|
17
|
+
this.FactorType = FactorType;
|
|
18
|
+
this.Comments = Comments;
|
|
19
|
+
}
|
|
20
|
+
static make(id, name, factorType, comments) {
|
|
21
|
+
return new Factor(id, name, factorType, comments);
|
|
22
|
+
}
|
|
23
|
+
static create(Id, Name, FactorType, Comments) {
|
|
24
|
+
return Factor.make(Id, Name, FactorType, Comments);
|
|
25
|
+
}
|
|
26
|
+
static get empty() {
|
|
27
|
+
return Factor.create();
|
|
28
|
+
}
|
|
29
|
+
static fromString(name, term, source, accession, comments) {
|
|
30
|
+
const oa = OntologyAnnotation.fromString(term, source, accession, unwrap(comments));
|
|
31
|
+
const arg_1 = Option_fromValueWithDefault("", name);
|
|
32
|
+
const arg_2 = Option_fromValueWithDefault(OntologyAnnotation.empty, oa);
|
|
33
|
+
return Factor.make(void 0, arg_1, arg_2, void 0);
|
|
34
|
+
}
|
|
35
|
+
static toString(factor) {
|
|
36
|
+
const value = {
|
|
37
|
+
TermAccessionNumber: "",
|
|
38
|
+
TermName: "",
|
|
39
|
+
TermSourceREF: "",
|
|
40
|
+
};
|
|
41
|
+
return defaultArg(map((arg) => OntologyAnnotation.toString(arg), factor.FactorType), value);
|
|
42
|
+
}
|
|
43
|
+
get NameText() {
|
|
44
|
+
const this$ = this;
|
|
45
|
+
return defaultArg(this$.Name, "");
|
|
46
|
+
}
|
|
47
|
+
MapCategory(f) {
|
|
48
|
+
const this$ = this;
|
|
49
|
+
return new Factor(this$.ID, this$.Name, map(f, this$.FactorType), this$.Comments);
|
|
50
|
+
}
|
|
51
|
+
SetCategory(c) {
|
|
52
|
+
const this$ = this;
|
|
53
|
+
return new Factor(this$.ID, this$.Name, c, this$.Comments);
|
|
54
|
+
}
|
|
55
|
+
static tryGetByName(name, factors) {
|
|
56
|
+
return tryFind((f) => equals(f.Name, name), factors);
|
|
57
|
+
}
|
|
58
|
+
static existsByName(name, factors) {
|
|
59
|
+
return exists((f) => equals(f.Name, name), factors);
|
|
60
|
+
}
|
|
61
|
+
static add(factors, factor) {
|
|
62
|
+
return append(factors, singleton(factor));
|
|
63
|
+
}
|
|
64
|
+
static updateBy(predicate, updateOption, factor, factors) {
|
|
65
|
+
return exists(predicate, factors) ? map_1((f) => {
|
|
66
|
+
if (predicate(f)) {
|
|
67
|
+
const this$ = updateOption;
|
|
68
|
+
const recordType_1 = f;
|
|
69
|
+
const recordType_2 = factor;
|
|
70
|
+
return (this$.tag === 2) ? makeRecord(Factor_$reflection(), map2(Update_updateAppend, getRecordFields(recordType_1), getRecordFields(recordType_2))) : ((this$.tag === 1) ? makeRecord(Factor_$reflection(), map2(Update_updateOnlyByExisting, getRecordFields(recordType_1), getRecordFields(recordType_2))) : ((this$.tag === 3) ? makeRecord(Factor_$reflection(), map2(Update_updateOnlyByExistingAppend, getRecordFields(recordType_1), getRecordFields(recordType_2))) : recordType_2));
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
return f;
|
|
74
|
+
}
|
|
75
|
+
}, factors) : factors;
|
|
76
|
+
}
|
|
77
|
+
static updateByName(updateOption, factor, factors) {
|
|
78
|
+
return Factor.updateBy((f) => equals(f.Name, factor.Name), updateOption, factor, factors);
|
|
79
|
+
}
|
|
80
|
+
static removeByName(name, factors) {
|
|
81
|
+
return filter((f) => !equals(f.Name, name), factors);
|
|
82
|
+
}
|
|
83
|
+
static getComments(factor) {
|
|
84
|
+
return factor.Comments;
|
|
85
|
+
}
|
|
86
|
+
static mapComments(f, factor) {
|
|
87
|
+
return new Factor(factor.ID, factor.Name, factor.FactorType, map(f, factor.Comments));
|
|
88
|
+
}
|
|
89
|
+
static setComments(factor, comments) {
|
|
90
|
+
return new Factor(factor.ID, factor.Name, factor.FactorType, comments);
|
|
91
|
+
}
|
|
92
|
+
static getFactorType(factor) {
|
|
93
|
+
return factor.FactorType;
|
|
94
|
+
}
|
|
95
|
+
static mapFactorType(f, factor) {
|
|
96
|
+
return new Factor(factor.ID, factor.Name, map(f, factor.FactorType), factor.Comments);
|
|
97
|
+
}
|
|
98
|
+
static setFactorType(factor, factorType) {
|
|
99
|
+
return new Factor(factor.ID, factor.Name, factorType, factor.Comments);
|
|
100
|
+
}
|
|
101
|
+
static tryGetName(f) {
|
|
102
|
+
return f.Name;
|
|
103
|
+
}
|
|
104
|
+
static getNameAsString(f) {
|
|
105
|
+
return f.NameText;
|
|
106
|
+
}
|
|
107
|
+
static nameEqualsString(name, f) {
|
|
108
|
+
return f.NameText === name;
|
|
109
|
+
}
|
|
110
|
+
Copy() {
|
|
111
|
+
const this$ = this;
|
|
112
|
+
const arg_3 = map((array) => map_2((c) => c.Copy(), array), this$.Comments);
|
|
113
|
+
return Factor.make(this$.ID, this$.Name, this$.FactorType, arg_3);
|
|
114
|
+
}
|
|
115
|
+
Print() {
|
|
116
|
+
const this$ = this;
|
|
117
|
+
return toString(this$);
|
|
118
|
+
}
|
|
119
|
+
PrintCompact() {
|
|
120
|
+
const this$ = this;
|
|
121
|
+
return "OA " + this$.NameText;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function Factor_$reflection() {
|
|
126
|
+
return record_type("ARCtrl.ISA.Factor", [], Factor, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["FactorType", option_type(OntologyAnnotation_$reflection())], ["Comments", option_type(array_type(Comment$_$reflection()))]]);
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Record, toString } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
2
|
+
import { defaultArg, map } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
3
|
+
import { record_type, option_type, string_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
4
|
+
import { Factor, Factor_$reflection } from "./Factor.js";
|
|
5
|
+
import { Value_$reflection } from "./Value.js";
|
|
6
|
+
import { OntologyAnnotation_$reflection } from "./OntologyAnnotation.js";
|
|
7
|
+
import { int32ToString } from "../../../fable_modules/fable-library.4.1.4/Util.js";
|
|
8
|
+
import { printf, toText } from "../../../fable_modules/fable-library.4.1.4/String.js";
|
|
9
|
+
|
|
10
|
+
export class FactorValue extends Record {
|
|
11
|
+
constructor(ID, Category, Value, Unit) {
|
|
12
|
+
super();
|
|
13
|
+
this.ID = ID;
|
|
14
|
+
this.Category = Category;
|
|
15
|
+
this.Value = Value;
|
|
16
|
+
this.Unit = Unit;
|
|
17
|
+
}
|
|
18
|
+
Print() {
|
|
19
|
+
const this$ = this;
|
|
20
|
+
return toString(this$);
|
|
21
|
+
}
|
|
22
|
+
PrintCompact() {
|
|
23
|
+
let value_2, category_2, category_1, value_1;
|
|
24
|
+
const this$ = this;
|
|
25
|
+
const category = map((f) => f.NameText, this$.Category);
|
|
26
|
+
const unit = map((oa) => oa.NameText, this$.Unit);
|
|
27
|
+
const value = map((v) => {
|
|
28
|
+
const s = v.PrintCompact();
|
|
29
|
+
if (unit == null) {
|
|
30
|
+
return s;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
return (s + " ") + unit;
|
|
34
|
+
}
|
|
35
|
+
}, this$.Value);
|
|
36
|
+
return (category == null) ? ((value == null) ? "" : ((value_2 = value, value_2))) : ((value == null) ? ((category_2 = category, (category_2 + ":") + "No Value")) : ((category_1 = category, (value_1 = value, (category_1 + ":") + value_1))));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function FactorValue_$reflection() {
|
|
41
|
+
return record_type("ARCtrl.ISA.FactorValue", [], FactorValue, () => [["ID", option_type(string_type)], ["Category", option_type(Factor_$reflection())], ["Value", option_type(Value_$reflection())], ["Unit", option_type(OntologyAnnotation_$reflection())]]);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function FactorValue_make(id, category, value, unit) {
|
|
45
|
+
return new FactorValue(id, category, value, unit);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function FactorValue_create_18335379(Id, Category, Value, Unit) {
|
|
49
|
+
return FactorValue_make(Id, Category, Value, Unit);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function FactorValue_get_empty() {
|
|
53
|
+
return FactorValue_create_18335379();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function FactorValue__get_ValueText(this$) {
|
|
57
|
+
return defaultArg(map((oa) => {
|
|
58
|
+
switch (oa.tag) {
|
|
59
|
+
case 2:
|
|
60
|
+
return oa.fields[0].toString();
|
|
61
|
+
case 1:
|
|
62
|
+
return int32ToString(oa.fields[0]);
|
|
63
|
+
case 3:
|
|
64
|
+
return oa.fields[0];
|
|
65
|
+
default:
|
|
66
|
+
return oa.fields[0].NameText;
|
|
67
|
+
}
|
|
68
|
+
}, this$.Value), "");
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function FactorValue__get_ValueWithUnitText(this$) {
|
|
72
|
+
const unit = map((oa) => oa.NameText, this$.Unit);
|
|
73
|
+
const v = FactorValue__get_ValueText(this$);
|
|
74
|
+
if (unit == null) {
|
|
75
|
+
return v;
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
const u = unit;
|
|
79
|
+
return toText(printf("%s %s"))(v)(u);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function FactorValue__get_NameText(this$) {
|
|
84
|
+
return defaultArg(map((factor) => factor.NameText, this$.Category), "");
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function FactorValue__MapCategory_Z69DD836A(this$, f) {
|
|
88
|
+
return new FactorValue(this$.ID, map((p) => p.MapCategory(f), this$.Category), this$.Value, this$.Unit);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function FactorValue__SetCategory_Z4C0FE73C(this$, c) {
|
|
92
|
+
let matchValue, p;
|
|
93
|
+
return new FactorValue(this$.ID, (matchValue = this$.Category, (matchValue == null) ? Factor.create(void 0, void 0, c) : ((p = matchValue, p.SetCategory(c)))), this$.Value, this$.Unit);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Returns the name of the factor value as string
|
|
98
|
+
*/
|
|
99
|
+
export function FactorValue_getNameAsString_Z2623397E(fv) {
|
|
100
|
+
return FactorValue__get_NameText(fv);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Returns true if the given name matches the name of the factor value
|
|
105
|
+
*/
|
|
106
|
+
export function FactorValue_nameEqualsString(name, fv) {
|
|
107
|
+
return FactorValue__get_NameText(fv) === name;
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { Record } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
2
|
+
import { getRecordFields, makeRecord, record_type, list_type, option_type, string_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
3
|
+
import { OntologySourceReference_$reflection } from "./OntologySourceReference.js";
|
|
4
|
+
import { Publication_$reflection } from "./Publication.js";
|
|
5
|
+
import { Person_$reflection } from "./Person.js";
|
|
6
|
+
import { Study_update_7312BC8B, Study_$reflection } from "./Study.js";
|
|
7
|
+
import { Remark_$reflection, Comment$_$reflection } from "./Comment.js";
|
|
8
|
+
import { map, defaultArg } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
9
|
+
import { map as map_1, empty } from "../../../fable_modules/fable-library.4.1.4/List.js";
|
|
10
|
+
import { Option_mapDefault } from "../Helper.js";
|
|
11
|
+
import { map2 } from "../../../fable_modules/fable-library.4.1.4/Array.js";
|
|
12
|
+
import { Update_updateOnlyByExistingAppend, Update_updateOnlyByExisting, Update_updateAppend } from "../Helper.js";
|
|
13
|
+
import { toFail } from "../../../fable_modules/fable-library.4.1.4/String.js";
|
|
14
|
+
|
|
15
|
+
export class Investigation extends Record {
|
|
16
|
+
constructor(ID, FileName, Identifier, Title, Description, SubmissionDate, PublicReleaseDate, OntologySourceReferences, Publications, Contacts, Studies, Comments, Remarks) {
|
|
17
|
+
super();
|
|
18
|
+
this.ID = ID;
|
|
19
|
+
this.FileName = FileName;
|
|
20
|
+
this.Identifier = Identifier;
|
|
21
|
+
this.Title = Title;
|
|
22
|
+
this.Description = Description;
|
|
23
|
+
this.SubmissionDate = SubmissionDate;
|
|
24
|
+
this.PublicReleaseDate = PublicReleaseDate;
|
|
25
|
+
this.OntologySourceReferences = OntologySourceReferences;
|
|
26
|
+
this.Publications = Publications;
|
|
27
|
+
this.Contacts = Contacts;
|
|
28
|
+
this.Studies = Studies;
|
|
29
|
+
this.Comments = Comments;
|
|
30
|
+
this.Remarks = Remarks;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function Investigation_$reflection() {
|
|
35
|
+
return record_type("ARCtrl.ISA.Investigation", [], Investigation, () => [["ID", option_type(string_type)], ["FileName", option_type(string_type)], ["Identifier", option_type(string_type)], ["Title", option_type(string_type)], ["Description", option_type(string_type)], ["SubmissionDate", option_type(string_type)], ["PublicReleaseDate", option_type(string_type)], ["OntologySourceReferences", option_type(list_type(OntologySourceReference_$reflection()))], ["Publications", option_type(list_type(Publication_$reflection()))], ["Contacts", option_type(list_type(Person_$reflection()))], ["Studies", option_type(list_type(Study_$reflection()))], ["Comments", option_type(list_type(Comment$_$reflection()))], ["Remarks", list_type(Remark_$reflection())]]);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function Investigation_make(id, filename, identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReference, publications, contacts, studies, comments, remarks) {
|
|
39
|
+
return new Investigation(id, filename, identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReference, publications, contacts, studies, comments, remarks);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function Investigation_create_4AD66BBE(Id, FileName, Identifier, Title, Description, SubmissionDate, PublicReleaseDate, OntologySourceReferences, Publications, Contacts, Studies, Comments, Remarks) {
|
|
43
|
+
return Investigation_make(Id, FileName, Identifier, Title, Description, SubmissionDate, PublicReleaseDate, OntologySourceReferences, Publications, Contacts, Studies, Comments, defaultArg(Remarks, empty()));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function Investigation_get_empty() {
|
|
47
|
+
return Investigation_create_4AD66BBE();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Returns contacts of an investigation
|
|
52
|
+
*/
|
|
53
|
+
export function Investigation_getContacts_33B81164(investigation) {
|
|
54
|
+
return investigation.Contacts;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Applies function f on person of an investigation
|
|
59
|
+
*/
|
|
60
|
+
export function Investigation_mapContacts(f, investigation) {
|
|
61
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, Option_mapDefault(empty(), f, investigation.Contacts), investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Replaces persons of an investigation with the given person list
|
|
66
|
+
*/
|
|
67
|
+
export function Investigation_setContacts(investigation, persons) {
|
|
68
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, persons, investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Returns publications of an investigation
|
|
73
|
+
*/
|
|
74
|
+
export function Investigation_getPublications_33B81164(investigation) {
|
|
75
|
+
return investigation.Publications;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Applies function f on publications of an investigation
|
|
80
|
+
*/
|
|
81
|
+
export function Investigation_mapPublications(f, investigation) {
|
|
82
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, Option_mapDefault(empty(), f, investigation.Publications), investigation.Contacts, investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Replaces publications of an investigation with the given publication list
|
|
87
|
+
*/
|
|
88
|
+
export function Investigation_setPublications(investigation, publications) {
|
|
89
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, publications, investigation.Contacts, investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Returns ontology source ref of an investigation
|
|
94
|
+
*/
|
|
95
|
+
export function Investigation_getOntologies_33B81164(investigation) {
|
|
96
|
+
return investigation.OntologySourceReferences;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Applies function f on ontology source ref of an investigation
|
|
101
|
+
*/
|
|
102
|
+
export function Investigation_mapOntologies(f, investigation) {
|
|
103
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, Option_mapDefault(empty(), f, investigation.OntologySourceReferences), investigation.Publications, investigation.Contacts, investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Replaces ontology source ref of an investigation with the given ontology source ref list
|
|
108
|
+
*/
|
|
109
|
+
export function Investigation_setOntologies(investigation, ontologies) {
|
|
110
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, ontologies, investigation.Publications, investigation.Contacts, investigation.Studies, investigation.Comments, investigation.Remarks);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Returns studies of an investigation
|
|
115
|
+
*/
|
|
116
|
+
export function Investigation_getStudies_33B81164(investigation) {
|
|
117
|
+
return defaultArg(investigation.Studies, empty());
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Applies function f on studies of an investigation
|
|
122
|
+
*/
|
|
123
|
+
export function Investigation_mapStudies(f, investigation) {
|
|
124
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, Option_mapDefault(empty(), f, investigation.Studies), investigation.Comments, investigation.Remarks);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Replaces studies of an investigation with the given study list
|
|
129
|
+
*/
|
|
130
|
+
export function Investigation_setStudies(investigation, studies) {
|
|
131
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, studies, investigation.Comments, investigation.Remarks);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Returns comments of an investigation
|
|
136
|
+
*/
|
|
137
|
+
export function Investigation_getComments_33B81164(investigation) {
|
|
138
|
+
return investigation.Comments;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Applies function f on comments of an investigation
|
|
143
|
+
*/
|
|
144
|
+
export function Investigation_mapComments(f, investigation) {
|
|
145
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, investigation.Studies, Option_mapDefault(empty(), f, investigation.Comments), investigation.Remarks);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Replaces comments of an investigation with the given comment list
|
|
150
|
+
*/
|
|
151
|
+
export function Investigation_setComments(investigation, comments) {
|
|
152
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, investigation.Studies, comments, investigation.Remarks);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Returns remarks of an investigation
|
|
157
|
+
*/
|
|
158
|
+
export function Investigation_getRemarks_33B81164(investigation) {
|
|
159
|
+
return investigation.Remarks;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Applies function f on remarks of an investigation
|
|
164
|
+
*/
|
|
165
|
+
export function Investigation_mapRemarks(f, investigation) {
|
|
166
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, investigation.Studies, investigation.Comments, f(investigation.Remarks));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Replaces remarks of an investigation with the given remark list
|
|
171
|
+
*/
|
|
172
|
+
export function Investigation_setRemarks(investigation, remarks) {
|
|
173
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, investigation.Studies, investigation.Comments, remarks);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Update the investigation with the values of the given newInvestigation
|
|
178
|
+
*/
|
|
179
|
+
export function Investigation_updateBy(updateOption, investigation, newInvestigation) {
|
|
180
|
+
const this$ = updateOption;
|
|
181
|
+
const recordType_1 = investigation;
|
|
182
|
+
const recordType_2 = newInvestigation;
|
|
183
|
+
switch (this$.tag) {
|
|
184
|
+
case 2:
|
|
185
|
+
return makeRecord(Investigation_$reflection(), map2(Update_updateAppend, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
186
|
+
case 1:
|
|
187
|
+
return makeRecord(Investigation_$reflection(), map2(Update_updateOnlyByExisting, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
188
|
+
case 3:
|
|
189
|
+
return makeRecord(Investigation_$reflection(), map2(Update_updateOnlyByExistingAppend, getRecordFields(recordType_1), getRecordFields(recordType_2)));
|
|
190
|
+
default:
|
|
191
|
+
return recordType_2;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function Investigation_update_33B81164(investigation) {
|
|
196
|
+
try {
|
|
197
|
+
return new Investigation(investigation.ID, investigation.FileName, investigation.Identifier, investigation.Title, investigation.Description, investigation.SubmissionDate, investigation.PublicReleaseDate, investigation.OntologySourceReferences, investigation.Publications, investigation.Contacts, map((list) => map_1(Study_update_7312BC8B, list), investigation.Studies), investigation.Comments, investigation.Remarks);
|
|
198
|
+
}
|
|
199
|
+
catch (err) {
|
|
200
|
+
return toFail(`Could not update investigation ${investigation.Identifier}:
|
|
201
|
+
${err.message}`);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Record, toString } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
2
|
+
import { choose, empty, length } from "../../../fable_modules/fable-library.4.1.4/List.js";
|
|
3
|
+
import { defaultArg } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
4
|
+
import { printf, toText } from "../../../fable_modules/fable-library.4.1.4/String.js";
|
|
5
|
+
import { MaterialType_$reflection, MaterialType__get_AsString } from "./MaterialType.js";
|
|
6
|
+
import { record_type, list_type, option_type, string_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
7
|
+
import { MaterialAttributeValue_$reflection } from "./MaterialAttributeValue.js";
|
|
8
|
+
|
|
9
|
+
export class Material extends Record {
|
|
10
|
+
constructor(ID, Name, MaterialType, Characteristics, DerivesFrom) {
|
|
11
|
+
super();
|
|
12
|
+
this.ID = ID;
|
|
13
|
+
this.Name = Name;
|
|
14
|
+
this.MaterialType = MaterialType;
|
|
15
|
+
this.Characteristics = Characteristics;
|
|
16
|
+
this.DerivesFrom = DerivesFrom;
|
|
17
|
+
}
|
|
18
|
+
Print() {
|
|
19
|
+
const this$ = this;
|
|
20
|
+
return toString(this$);
|
|
21
|
+
}
|
|
22
|
+
PrintCompact() {
|
|
23
|
+
const this$ = this;
|
|
24
|
+
const chars = length(defaultArg(this$.Characteristics, empty())) | 0;
|
|
25
|
+
const matchValue = this$.MaterialType;
|
|
26
|
+
if (matchValue == null) {
|
|
27
|
+
const arg_3 = Material__get_NameText(this$);
|
|
28
|
+
return toText(printf("%s [%i characteristics]"))(arg_3)(chars);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
const t = matchValue;
|
|
32
|
+
const arg = Material__get_NameText(this$);
|
|
33
|
+
const arg_1 = MaterialType__get_AsString(t);
|
|
34
|
+
return toText(printf("%s [%s; %i characteristics]"))(arg)(arg_1)(chars);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function Material_$reflection() {
|
|
40
|
+
return record_type("ARCtrl.ISA.Material", [], Material, () => [["ID", option_type(string_type)], ["Name", option_type(string_type)], ["MaterialType", option_type(MaterialType_$reflection())], ["Characteristics", option_type(list_type(MaterialAttributeValue_$reflection()))], ["DerivesFrom", option_type(list_type(Material_$reflection()))]]);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function Material_make(id, name, materialType, characteristics, derivesFrom) {
|
|
44
|
+
return new Material(id, name, materialType, characteristics, derivesFrom);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function Material_create_Z31BE6CDD(Id, Name, MaterialType, Characteristics, DerivesFrom) {
|
|
48
|
+
return Material_make(Id, Name, MaterialType, Characteristics, DerivesFrom);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function Material_get_empty() {
|
|
52
|
+
return Material_create_Z31BE6CDD();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function Material__get_NameText(this$) {
|
|
56
|
+
return defaultArg(this$.Name, "");
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function Material_getUnits_Z42815C11(m) {
|
|
60
|
+
return choose((c) => c.Unit, defaultArg(m.Characteristics, empty()));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function Material_setCharacteristicValues(values, m) {
|
|
64
|
+
return new Material(m.ID, m.Name, m.MaterialType, values, m.DerivesFrom);
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Record, toString } from "../../../fable_modules/fable-library.4.1.4/Types.js";
|
|
2
|
+
import { record_type, option_type, string_type } from "../../../fable_modules/fable-library.4.1.4/Reflection.js";
|
|
3
|
+
import { OntologyAnnotation, OntologyAnnotation_$reflection } from "./OntologyAnnotation.js";
|
|
4
|
+
import { bind, map, defaultArg, unwrap } from "../../../fable_modules/fable-library.4.1.4/Option.js";
|
|
5
|
+
import { Option_fromValueWithDefault } from "../Helper.js";
|
|
6
|
+
|
|
7
|
+
export class MaterialAttribute extends Record {
|
|
8
|
+
constructor(ID, CharacteristicType) {
|
|
9
|
+
super();
|
|
10
|
+
this.ID = ID;
|
|
11
|
+
this.CharacteristicType = CharacteristicType;
|
|
12
|
+
}
|
|
13
|
+
Print() {
|
|
14
|
+
const this$ = this;
|
|
15
|
+
return toString(this$);
|
|
16
|
+
}
|
|
17
|
+
PrintCompact() {
|
|
18
|
+
const this$ = this;
|
|
19
|
+
return "OA " + MaterialAttribute__get_NameText(this$);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function MaterialAttribute_$reflection() {
|
|
24
|
+
return record_type("ARCtrl.ISA.MaterialAttribute", [], MaterialAttribute, () => [["ID", option_type(string_type)], ["CharacteristicType", option_type(OntologyAnnotation_$reflection())]]);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function MaterialAttribute_make(id, characteristicType) {
|
|
28
|
+
return new MaterialAttribute(id, characteristicType);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function MaterialAttribute_create_Z6C54B221(Id, CharacteristicType) {
|
|
32
|
+
return MaterialAttribute_make(Id, CharacteristicType);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function MaterialAttribute_get_empty() {
|
|
36
|
+
return MaterialAttribute_create_Z6C54B221();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Create a ISAJson MaterialAttribute from ISATab string entries
|
|
41
|
+
*/
|
|
42
|
+
export function MaterialAttribute_fromString_Z2304A83C(term, source, accession, comments) {
|
|
43
|
+
const oa = OntologyAnnotation.fromString(term, source, accession, unwrap(comments));
|
|
44
|
+
return MaterialAttribute_make(void 0, Option_fromValueWithDefault(OntologyAnnotation.empty, oa));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Get ISATab string entries from an ISAJson MaterialAttribute object
|
|
49
|
+
*/
|
|
50
|
+
export function MaterialAttribute_toString_Z5F39696D(ma) {
|
|
51
|
+
const value = {
|
|
52
|
+
TermAccessionNumber: "",
|
|
53
|
+
TermName: "",
|
|
54
|
+
TermSourceREF: "",
|
|
55
|
+
};
|
|
56
|
+
return defaultArg(map((arg) => OntologyAnnotation.toString(arg), ma.CharacteristicType), value);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Returns the name of the characteristic as string
|
|
61
|
+
*/
|
|
62
|
+
export function MaterialAttribute__get_NameText(this$) {
|
|
63
|
+
return defaultArg(map((oa) => oa.NameText, this$.CharacteristicType), "");
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Returns the name of the characteristic as string
|
|
68
|
+
*/
|
|
69
|
+
export function MaterialAttribute__get_TryNameText(this$) {
|
|
70
|
+
return bind((oa) => oa.TryNameText, this$.CharacteristicType);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function MaterialAttribute__MapCategory_Z69DD836A(this$, f) {
|
|
74
|
+
return new MaterialAttribute(this$.ID, map(f, this$.CharacteristicType));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function MaterialAttribute__SetCategory_Z4C0FE73C(this$, c) {
|
|
78
|
+
return new MaterialAttribute(this$.ID, c);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Returns the name of the characteristic as string if it exists
|
|
83
|
+
*/
|
|
84
|
+
export function MaterialAttribute_tryGetNameText_Z5F39696D(ma) {
|
|
85
|
+
return MaterialAttribute__get_NameText(ma);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Returns the name of the characteristic as string
|
|
90
|
+
*/
|
|
91
|
+
export function MaterialAttribute_getNameText_Z5F39696D(ma) {
|
|
92
|
+
return MaterialAttribute__get_TryNameText(ma);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Returns true if the given name matches the name of the characteristic
|
|
97
|
+
*/
|
|
98
|
+
export function MaterialAttribute_nameEqualsString(name, ma) {
|
|
99
|
+
return MaterialAttribute__get_NameText(ma) === name;
|
|
100
|
+
}
|
|
101
|
+
|