@nfdi4plants/arctrl 3.0.0-alpha.4 → 3.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -8
- package/dist/ts/cjs/ts/ARC.js +31 -20
- package/dist/ts/cjs/ts/Conversion.js +122 -76
- package/dist/ts/cjs/ts/Core/ArcTypes.js +1 -1
- package/dist/ts/cjs/ts/Core/Conversion.js +110 -43
- package/dist/ts/cjs/ts/Core/Data.js +4 -2
- package/dist/ts/cjs/ts/Core/Helper/Collections.js +69 -1
- package/dist/ts/cjs/ts/Core/OntologyAnnotation.js +27 -23
- package/dist/ts/cjs/ts/Core/Table/ArcTable.js +234 -217
- package/dist/ts/cjs/ts/Core/Table/ArcTableAux.js +904 -255
- package/dist/ts/cjs/ts/Core/Table/ArcTables.js +12 -19
- package/dist/ts/cjs/ts/Core/Table/CompositeColumn.js +4 -2
- package/dist/ts/cjs/ts/FileSystem/DefaultGitattributes.js +1 -1
- package/dist/ts/cjs/ts/Json/Decode.js +105 -0
- package/dist/ts/cjs/ts/Json/Encode.js +42 -0
- package/dist/ts/cjs/ts/Json/Table/ArcTable.js +100 -113
- package/dist/ts/cjs/ts/Json.js +46 -1
- package/dist/ts/cjs/ts/ROCrateIO.js +12 -1
- package/dist/ts/cjs/ts/Spreadsheet/AnnotationTable/ArcTable.js +15 -4
- package/dist/ts/cjs/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +77 -6
- package/dist/ts/cjs/ts/Spreadsheet/ArcInvestigation.js +31 -15
- package/dist/ts/cjs/ts/Spreadsheet/DataMapTable/DataMapHeader.js +1 -1
- package/dist/ts/cjs/ts/Spreadsheet/Metadata/SparseTable.js +2 -5
- package/dist/ts/esm/ts/ARC.js +34 -23
- package/dist/ts/esm/ts/Conversion.js +128 -82
- package/dist/ts/esm/ts/Core/ArcTypes.js +1 -1
- package/dist/ts/esm/ts/Core/Conversion.js +112 -45
- package/dist/ts/esm/ts/Core/Data.js +7 -5
- package/dist/ts/esm/ts/Core/Helper/Collections.js +61 -1
- package/dist/ts/esm/ts/Core/OntologyAnnotation.js +29 -25
- package/dist/ts/esm/ts/Core/Table/ArcTable.js +243 -226
- package/dist/ts/esm/ts/Core/Table/ArcTableAux.js +897 -264
- package/dist/ts/esm/ts/Core/Table/ArcTables.js +15 -22
- package/dist/ts/esm/ts/Core/Table/CompositeColumn.js +5 -3
- package/dist/ts/esm/ts/FileSystem/DefaultGitattributes.js +1 -1
- package/dist/ts/esm/ts/Json/Decode.js +105 -3
- package/dist/ts/esm/ts/Json/Encode.js +42 -2
- package/dist/ts/esm/ts/Json/Table/ArcTable.js +108 -121
- package/dist/ts/esm/ts/Json.js +39 -0
- package/dist/ts/esm/ts/ROCrateIO.js +14 -3
- package/dist/ts/esm/ts/Spreadsheet/AnnotationTable/ArcTable.js +17 -7
- package/dist/ts/esm/ts/Spreadsheet/AnnotationTable/CompositeColumn.js +78 -9
- package/dist/ts/esm/ts/Spreadsheet/ArcInvestigation.js +33 -17
- package/dist/ts/esm/ts/Spreadsheet/DataMapTable/DataMapHeader.js +1 -1
- package/dist/ts/esm/ts/Spreadsheet/Metadata/SparseTable.js +3 -6
- package/dist/ts/types/ts/ARC.d.ts +2 -2
- package/dist/ts/types/ts/ARC.d.ts.map +1 -1
- package/dist/ts/types/ts/Conversion.d.ts +15 -16
- package/dist/ts/types/ts/Conversion.d.ts.map +1 -1
- package/dist/ts/types/ts/Core/ArcTypes.d.ts +2 -0
- package/dist/ts/types/ts/Core/ArcTypes.d.ts.map +1 -1
- package/dist/ts/types/ts/Core/Conversion.d.ts +14 -15
- package/dist/ts/types/ts/Core/Conversion.d.ts.map +1 -1
- package/dist/ts/types/ts/Core/Data.d.ts.map +1 -1
- package/dist/ts/types/ts/Core/Helper/Collections.d.ts +8 -0
- package/dist/ts/types/ts/Core/Helper/Collections.d.ts.map +1 -1
- package/dist/ts/types/ts/Core/OntologyAnnotation.d.ts +9 -0
- package/dist/ts/types/ts/Core/OntologyAnnotation.d.ts.map +1 -1
- package/dist/ts/types/ts/Core/Table/ArcTable.d.ts +35 -28
- package/dist/ts/types/ts/Core/Table/ArcTable.d.ts.map +1 -1
- package/dist/ts/types/ts/Core/Table/ArcTableAux.d.ts +83 -35
- package/dist/ts/types/ts/Core/Table/ArcTableAux.d.ts.map +1 -1
- package/dist/ts/types/ts/Core/Table/ArcTables.d.ts.map +1 -1
- package/dist/ts/types/ts/Core/Table/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/types/ts/FileSystem/DefaultGitattributes.d.ts +1 -1
- package/dist/ts/types/ts/FileSystem/DefaultGitattributes.d.ts.map +1 -1
- package/dist/ts/types/ts/Json/Decode.d.ts +6 -0
- package/dist/ts/types/ts/Json/Decode.d.ts.map +1 -1
- package/dist/ts/types/ts/Json/Encode.d.ts +2 -0
- package/dist/ts/types/ts/Json/Encode.d.ts.map +1 -1
- package/dist/ts/types/ts/Json/Table/ArcTable.d.ts +4 -3
- package/dist/ts/types/ts/Json/Table/ArcTable.d.ts.map +1 -1
- package/dist/ts/types/ts/Json.d.ts +17 -0
- package/dist/ts/types/ts/Json.d.ts.map +1 -1
- package/dist/ts/types/ts/ROCrateIO.d.ts +1 -1
- package/dist/ts/types/ts/ROCrateIO.d.ts.map +1 -1
- package/dist/ts/types/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts +5 -0
- package/dist/ts/types/ts/Spreadsheet/AnnotationTable/ArcTable.d.ts.map +1 -1
- package/dist/ts/types/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts +7 -0
- package/dist/ts/types/ts/Spreadsheet/AnnotationTable/CompositeColumn.d.ts.map +1 -1
- package/dist/ts/types/ts/Spreadsheet/ArcInvestigation.d.ts.map +1 -1
- package/dist/ts/types/ts/Spreadsheet/Metadata/SparseTable.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ts/esm/ts/Json.js
CHANGED
|
@@ -5,6 +5,7 @@ import { ARCtrl_ArcAssay__ArcAssay_toROCrateJsonString_Static_5CABCA47, ARCtrl_A
|
|
|
5
5
|
import { ARCtrl_ArcStudy__ArcStudy_toROCrateJsonString_Static_3BA23086, ARCtrl_ArcStudy__ArcStudy_toISAJsonString_Static_Z3FD920F1, ARCtrl_ArcStudy__ArcStudy_toCompressedJsonString_Static_71136F3F, ARCtrl_ArcStudy__ArcStudy_toJsonString_Static_71136F3F, ARCtrl_ArcStudy__ArcStudy_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromISAJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcStudy__ArcStudy_fromJsonString_Static_Z721C83C5 } from "./JsonIO/Study.js";
|
|
6
6
|
import { ARCtrl_ArcInvestigation__ArcInvestigation_toROCrateJsonString_Static_71136F3F, ARCtrl_ArcInvestigation__ArcInvestigation_toISAJsonString_Static_Z3B036AA, ARCtrl_ArcInvestigation__ArcInvestigation_toCompressedJsonString_Static_71136F3F, ARCtrl_ArcInvestigation__ArcInvestigation_toJsonString_Static_71136F3F, ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ArcInvestigation__ArcInvestigation_fromISAJsonString_Static_Z721C83C5, ARCtrl_ArcInvestigation__ArcInvestigation_fromCompressedJsonString_Static_Z721C83C5, ARCtrl_ArcInvestigation__ArcInvestigation_fromJsonString_Static_Z721C83C5 } from "./JsonIO/Investigation.js";
|
|
7
7
|
import { ARC } from "./ARC.js";
|
|
8
|
+
import { ARCtrl_ROCrate_LDNode__LDNode_toROCrateJsonString_Static_71136F3F, ARCtrl_ROCrate_LDNode__LDNode_fromROCrateJsonString_Static_Z721C83C5, ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F, ARCtrl_ROCrate_LDGraph__LDGraph_fromROCrateJsonString_Static_Z721C83C5 } from "./JsonIO/LDObject.js";
|
|
8
9
|
export class JsonHelper_OntologyAnnotationJson {
|
|
9
10
|
constructor() {
|
|
10
11
|
}
|
|
@@ -151,6 +152,38 @@ export function JsonHelper_ARCJson_$reflection() {
|
|
|
151
152
|
export function JsonHelper_ARCJson_$ctor() {
|
|
152
153
|
return new JsonHelper_ARCJson();
|
|
153
154
|
}
|
|
155
|
+
export class JsonHelper_LDGraphJson {
|
|
156
|
+
constructor() {
|
|
157
|
+
}
|
|
158
|
+
fromROCrateJsonString(s) {
|
|
159
|
+
return ARCtrl_ROCrate_LDGraph__LDGraph_fromROCrateJsonString_Static_Z721C83C5(s);
|
|
160
|
+
}
|
|
161
|
+
toROCrateJsonString(spaces) {
|
|
162
|
+
return ARCtrl_ROCrate_LDGraph__LDGraph_toROCrateJsonString_Static_71136F3F(unwrap(spaces));
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
export function JsonHelper_LDGraphJson_$reflection() {
|
|
166
|
+
return class_type("ARCtrl.JsonHelper.LDGraphJson", undefined, JsonHelper_LDGraphJson);
|
|
167
|
+
}
|
|
168
|
+
export function JsonHelper_LDGraphJson_$ctor() {
|
|
169
|
+
return new JsonHelper_LDGraphJson();
|
|
170
|
+
}
|
|
171
|
+
export class JsonHelper_LDNodeJson {
|
|
172
|
+
constructor() {
|
|
173
|
+
}
|
|
174
|
+
fromROCrateJsonString(s) {
|
|
175
|
+
return ARCtrl_ROCrate_LDNode__LDNode_fromROCrateJsonString_Static_Z721C83C5(s);
|
|
176
|
+
}
|
|
177
|
+
toROCrateJsonString(spaces) {
|
|
178
|
+
return ARCtrl_ROCrate_LDNode__LDNode_toROCrateJsonString_Static_71136F3F(unwrap(spaces));
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
export function JsonHelper_LDNodeJson_$reflection() {
|
|
182
|
+
return class_type("ARCtrl.JsonHelper.LDNodeJson", undefined, JsonHelper_LDNodeJson);
|
|
183
|
+
}
|
|
184
|
+
export function JsonHelper_LDNodeJson_$ctor() {
|
|
185
|
+
return new JsonHelper_LDNodeJson();
|
|
186
|
+
}
|
|
154
187
|
export class JsonController {
|
|
155
188
|
constructor() {
|
|
156
189
|
}
|
|
@@ -169,6 +202,12 @@ export class JsonController {
|
|
|
169
202
|
static get ARC() {
|
|
170
203
|
return new JsonHelper_ARCJson();
|
|
171
204
|
}
|
|
205
|
+
static get LDGraph() {
|
|
206
|
+
return new JsonHelper_LDGraphJson();
|
|
207
|
+
}
|
|
208
|
+
static get LDNode() {
|
|
209
|
+
return new JsonHelper_LDNodeJson();
|
|
210
|
+
}
|
|
172
211
|
}
|
|
173
212
|
export function JsonController_$reflection() {
|
|
174
213
|
return class_type("ARCtrl.JsonController", undefined, JsonController);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { class_type } from "@fable-org/fable-library-js/Reflection.js";
|
|
2
2
|
import { LDRef, LDNode } from "./ROCrate/LDObject.js";
|
|
3
|
-
import { unwrap, value } from "@fable-org/fable-library-js/Option.js";
|
|
3
|
+
import { unwrap, value as value_1 } from "@fable-org/fable-library-js/Option.js";
|
|
4
4
|
import { ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8, ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation } from "./Conversion.js";
|
|
5
5
|
import { LDDataset } from "./ROCrate/Generic/Dataset.js";
|
|
6
6
|
import { now } from "@fable-org/fable-library-js/Date.js";
|
|
@@ -8,6 +8,8 @@ import { LDContext } from "./ROCrate/LDContext.js";
|
|
|
8
8
|
import { initBioschemasContext, initV1_1 } from "./ROCrate/ROCrateContext.js";
|
|
9
9
|
import { decoder, encoder } from "./Json/ROCrate/LDGraph.js";
|
|
10
10
|
import { map } from "./fable_modules/Thoth.Json.Core.0.4.0/Decode.fs.js";
|
|
11
|
+
import { ResizeArray_choose } from "./Core/Helper/Collections.js";
|
|
12
|
+
import { LDFile } from "./ROCrate/Generic/File.js";
|
|
11
13
|
import { exactlyOne } from "@fable-org/fable-library-js/Seq.js";
|
|
12
14
|
import { decoder as decoder_1 } from "./Json/ROCrate/LDNode.js";
|
|
13
15
|
export class ROCrate {
|
|
@@ -27,7 +29,7 @@ export function ROCrate_get_metadataFileDescriptor() {
|
|
|
27
29
|
return node;
|
|
28
30
|
}
|
|
29
31
|
export function ROCrate_encoder_8A8D439(isa, license) {
|
|
30
|
-
const license_2 = (license == null) ? ROCrate_getDefaultLicense() :
|
|
32
|
+
const license_2 = (license == null) ? ROCrate_getDefaultLicense() : value_1(license);
|
|
31
33
|
const isa_1 = ARCtrl_ArcInvestigation__ArcInvestigation_ToROCrateInvestigation(isa);
|
|
32
34
|
LDDataset.setSDDatePublishedAsDateTime(isa_1, now());
|
|
33
35
|
LDDataset.setLicenseAsCreativeWork(isa_1, license_2);
|
|
@@ -45,7 +47,16 @@ export function ROCrate_get_decoder() {
|
|
|
45
47
|
throw new Error("RO-Crate graph did not contain root data Entity");
|
|
46
48
|
}
|
|
47
49
|
else {
|
|
48
|
-
|
|
50
|
+
const node = value_1(matchValue);
|
|
51
|
+
const files = ResizeArray_choose((n) => {
|
|
52
|
+
if (LDFile.validate(n, unwrap(graph.TryGetContext())) && !(n.Id.indexOf("#") >= 0)) {
|
|
53
|
+
return n.Id;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
}, graph.Nodes);
|
|
59
|
+
return [ARCtrl_ArcInvestigation__ArcInvestigation_fromROCrateInvestigation_Static_Z6839B9E8(node, graph, unwrap(graph.TryGetContext())), files];
|
|
49
60
|
}
|
|
50
61
|
}, decoder);
|
|
51
62
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { iterateIndexed, length, sortBy, collect as collect_1, exists, toArray, ofArray, empty, tail, head, isEmpty, cons, singleton, fold, map, reverse } from "@fable-org/fable-library-js/List.js";
|
|
2
|
-
import { item, map as map_1 } from "@fable-org/fable-library-js/Array.js";
|
|
1
|
+
import { iterateIndexed, length, ofSeq, sortBy, collect as collect_1, exists, toArray, ofArray, empty, tail, head, isEmpty, cons, singleton, fold, map, reverse } from "@fable-org/fable-library-js/List.js";
|
|
2
|
+
import { unzip, item, map as map_1 } from "@fable-org/fable-library-js/Array.js";
|
|
3
3
|
import { fold as fold_1, singleton as singleton_1, collect, map as map_2, delay, toArray as toArray_1, tryFind } from "@fable-org/fable-library-js/Seq.js";
|
|
4
4
|
import { FsWorksheet } from "../../fable_modules/FsSpreadsheet.6.3.1/FsWorksheet.fs.js";
|
|
5
5
|
import { value as value_1 } from "@fable-org/fable-library-js/Option.js";
|
|
6
|
-
import { toStringCellColumns, fixDeprecatedIOHeader, fromStringCellColumns } from "./CompositeColumn.js";
|
|
6
|
+
import { toStringCellColumns, fixDeprecatedIOHeader, ColumnValueRefs_fromStringCellColumns, fromStringCellColumns } from "./CompositeColumn.js";
|
|
7
|
+
import { comparePrimitives } from "@fable-org/fable-library-js/Util.js";
|
|
8
|
+
import { ArcTableValues } from "../../Core/Table/ArcTableAux.js";
|
|
7
9
|
import { printf, toFail } from "@fable-org/fable-library-js/String.js";
|
|
8
10
|
import { Dictionary_tryGet, FsCellsCollection__TryGetCell_Z37302880 } from "../../fable_modules/FsSpreadsheet.6.3.1/Cells/FsCellsCollection.fs.js";
|
|
9
11
|
import { rangeDouble } from "@fable-org/fable-library-js/Range.js";
|
|
@@ -11,7 +13,6 @@ import { FsAddress_$ctor_Z37302880, FsAddress__get_ColumnNumber, FsAddress__get_
|
|
|
11
13
|
import { FsRangeAddress_$ctor_7E77A4A0, FsRangeAddress__get_LastAddress } from "../../fable_modules/FsSpreadsheet.6.3.1/Ranges/FsRangeAddress.fs.js";
|
|
12
14
|
import { FsRangeBase__Cell_Z3407A44B, FsRangeBase__get_RangeAddress } from "../../fable_modules/FsSpreadsheet.6.3.1/Ranges/FsRangeBase.fs.js";
|
|
13
15
|
import { ArcTable } from "../../Core/Table/ArcTable.js";
|
|
14
|
-
import { comparePrimitives } from "@fable-org/fable-library-js/Util.js";
|
|
15
16
|
import { max } from "@fable-org/fable-library-js/Double.js";
|
|
16
17
|
import { addToDict } from "@fable-org/fable-library-js/MapUtil.js";
|
|
17
18
|
/**
|
|
@@ -81,6 +82,15 @@ export function tryAnnotationTable(sheet) {
|
|
|
81
82
|
export function composeColumns(stringCellColumns) {
|
|
82
83
|
return map_1(fromStringCellColumns, groupColumnsByHeader(stringCellColumns));
|
|
83
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Groups and parses a collection of single columns into the according ISA composite columns
|
|
87
|
+
*/
|
|
88
|
+
export function composeArcTableValues(stringCellColumns) {
|
|
89
|
+
const valueMap = new Map([]);
|
|
90
|
+
const rowCount = (item(0, stringCellColumns).length - 1) | 0;
|
|
91
|
+
const patternInput = unzip(map_1((columns) => ColumnValueRefs_fromStringCellColumns(valueMap, columns), groupColumnsByHeader(stringCellColumns)));
|
|
92
|
+
return [patternInput[0], ArcTableValues.fromRefColumns(patternInput[1], valueMap, rowCount)];
|
|
93
|
+
}
|
|
84
94
|
/**
|
|
85
95
|
* Returns the protocol described by the headers and a function for parsing the values of the matrix to the processes of this protocol
|
|
86
96
|
*/
|
|
@@ -92,7 +102,7 @@ export function tryFromFsWorksheet(sheet) {
|
|
|
92
102
|
}
|
|
93
103
|
else {
|
|
94
104
|
const t = value_1(matchValue);
|
|
95
|
-
const
|
|
105
|
+
const patternInput = composeArcTableValues(map_1(fixDeprecatedIOHeader, toArray_1(delay(() => map_2((c) => toArray_1(delay(() => collect((r) => {
|
|
96
106
|
const matchValue_1 = FsCellsCollection__TryGetCell_Z37302880(sheet.CellCollection, r, c);
|
|
97
107
|
if (matchValue_1 == null) {
|
|
98
108
|
return singleton_1("");
|
|
@@ -102,7 +112,7 @@ export function tryFromFsWorksheet(sheet) {
|
|
|
102
112
|
return singleton_1(cell.ValueAsString());
|
|
103
113
|
}
|
|
104
114
|
}, rangeDouble(1, 1, FsAddress__get_RowNumber(FsRangeAddress__get_LastAddress(FsRangeBase__get_RangeAddress(t))))))), rangeDouble(1, 1, FsAddress__get_ColumnNumber(FsRangeAddress__get_LastAddress(FsRangeBase__get_RangeAddress(t)))))))));
|
|
105
|
-
return ArcTable.
|
|
115
|
+
return ArcTable.fromArcTableValues(sheet.Name, Array.from(patternInput[0]), patternInput[1]);
|
|
106
116
|
}
|
|
107
117
|
}
|
|
108
118
|
catch (err) {
|
|
@@ -118,7 +128,7 @@ export function toFsWorksheet(index, table) {
|
|
|
118
128
|
return ws;
|
|
119
129
|
}
|
|
120
130
|
else {
|
|
121
|
-
const columns = collect_1(toStringCellColumns, sortBy(classifyColumnOrder,
|
|
131
|
+
const columns = collect_1(toStringCellColumns, sortBy(classifyColumnOrder, ofSeq(table.Columns), {
|
|
122
132
|
Compare: comparePrimitives,
|
|
123
133
|
}));
|
|
124
134
|
let tableRowCount;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { tryItem, map, setItem, item, skip } from "@fable-org/fable-library-js/Array.js";
|
|
2
2
|
import { CompositeHeader_Output, CompositeHeader_Input, IOType_Source, IOType } from "../../Core/Table/CompositeHeader.js";
|
|
3
|
-
import { toString } from "@fable-org/fable-library-js/Types.js";
|
|
3
|
+
import { FSharpRef, toString } from "@fable-org/fable-library-js/Types.js";
|
|
4
4
|
import { toStringCells, fromStringCells } from "./CompositeHeader.js";
|
|
5
|
-
import { singleton, append, toList, exists, map as map_1, delay, toArray } from "@fable-org/fable-library-js/Seq.js";
|
|
5
|
+
import { reduce, singleton, append, toList, exists, map as map_1, delay, toArray } from "@fable-org/fable-library-js/Seq.js";
|
|
6
6
|
import { rangeDouble } from "@fable-org/fable-library-js/Range.js";
|
|
7
7
|
import { CompositeColumn } from "../../Core/Table/CompositeColumn.js";
|
|
8
8
|
import { FsCell } from "../../fable_modules/FsSpreadsheet.6.3.1/Cells/FsCell.fs.js";
|
|
9
9
|
import { toStringCells as toStringCells_1 } from "./CompositeCell.js";
|
|
10
|
-
import { defaultArg } from "@fable-org/fable-library-js/Option.js";
|
|
10
|
+
import { value as value_1, defaultArg } from "@fable-org/fable-library-js/Option.js";
|
|
11
11
|
import { map as map_2, singleton as singleton_1, ofArray } from "@fable-org/fable-library-js/List.js";
|
|
12
|
+
import { defaultOf, stringHash } from "@fable-org/fable-library-js/Util.js";
|
|
13
|
+
import { ColumnValueRefs_Constant, ensureCellHashInValueMap, ColumnValueRefs_Sparse } from "../../Core/Table/ArcTableAux.js";
|
|
14
|
+
import { mergeHashes } from "../../Core/Helper/HashCodes.js";
|
|
15
|
+
import { getItemFromDict, tryGetValue } from "@fable-org/fable-library-js/MapUtil.js";
|
|
12
16
|
/**
|
|
13
17
|
* Checks if the column header is a deprecated IO Header. If so, fixes it.
|
|
14
18
|
*
|
|
@@ -38,9 +42,15 @@ export function fixDeprecatedIOHeader(stringCellCol) {
|
|
|
38
42
|
export function fromStringCellColumns(columns) {
|
|
39
43
|
const patternInput = fromStringCells(map((c) => item(0, c), columns));
|
|
40
44
|
const l = item(0, columns).length | 0;
|
|
41
|
-
const cells = toArray(delay(() => map_1((i) => patternInput[1](map((c_1) => item(i, c_1), columns)), rangeDouble(1, 1, l - 1))));
|
|
45
|
+
const cells = Array.from(toArray(delay(() => map_1((i) => patternInput[1](map((c_1) => item(i, c_1), columns)), rangeDouble(1, 1, l - 1)))));
|
|
42
46
|
return CompositeColumn.create(patternInput[0], cells);
|
|
43
47
|
}
|
|
48
|
+
export function stringCellColumnsOfFsColumns(columns) {
|
|
49
|
+
return map((c) => {
|
|
50
|
+
c.ToDenseColumn();
|
|
51
|
+
return map((cell) => cell.ValueAsString(), toArray(c.Cells));
|
|
52
|
+
}, columns);
|
|
53
|
+
}
|
|
44
54
|
export function fromFsColumns(columns) {
|
|
45
55
|
return fromStringCellColumns(map((c) => {
|
|
46
56
|
c.ToDenseColumn();
|
|
@@ -52,21 +62,80 @@ export function toStringCellColumns(column) {
|
|
|
52
62
|
const isTerm = column.Header.IsTermColumn;
|
|
53
63
|
const isData = column.Header.IsDataColumn && exists((c_1) => c_1.isData, column.Cells);
|
|
54
64
|
const header = toStringCells(hasUnit, column.Header);
|
|
55
|
-
const
|
|
65
|
+
const compositeCells = toArray(column.Cells);
|
|
66
|
+
const cells = map((cell) => toStringCells_1(isTerm, hasUnit, cell), toArray(column.Cells));
|
|
56
67
|
const getCellOrDefault = (ri, ci, cells_1) => defaultArg(tryItem(ci, item(ri, cells_1)), "");
|
|
57
68
|
if (hasUnit) {
|
|
58
|
-
return ofArray([toList(delay(() => append(singleton(item(0, header)), delay(() => map_1((i) => getCellOrDefault(i, 0, cells), rangeDouble(0, 1,
|
|
69
|
+
return ofArray([toList(delay(() => append(singleton(item(0, header)), delay(() => map_1((i) => getCellOrDefault(i, 0, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(1, header)), delay(() => map_1((i_1) => getCellOrDefault(i_1, 1, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(2, header)), delay(() => map_1((i_2) => getCellOrDefault(i_2, 2, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(3, header)), delay(() => map_1((i_3) => getCellOrDefault(i_3, 3, cells), rangeDouble(0, 1, compositeCells.length - 1))))))]);
|
|
59
70
|
}
|
|
60
71
|
else if (isTerm) {
|
|
61
|
-
return ofArray([toList(delay(() => append(singleton(item(0, header)), delay(() => map_1((i_4) => getCellOrDefault(i_4, 0, cells), rangeDouble(0, 1,
|
|
72
|
+
return ofArray([toList(delay(() => append(singleton(item(0, header)), delay(() => map_1((i_4) => getCellOrDefault(i_4, 0, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(1, header)), delay(() => map_1((i_5) => getCellOrDefault(i_5, 1, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(2, header)), delay(() => map_1((i_6) => getCellOrDefault(i_6, 2, cells), rangeDouble(0, 1, compositeCells.length - 1))))))]);
|
|
62
73
|
}
|
|
63
74
|
else if (isData) {
|
|
64
|
-
return ofArray([toList(delay(() => append(singleton(item(0, header)), delay(() => map_1((i_7) => getCellOrDefault(i_7, 0, cells), rangeDouble(0, 1,
|
|
75
|
+
return ofArray([toList(delay(() => append(singleton(item(0, header)), delay(() => map_1((i_7) => getCellOrDefault(i_7, 0, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(1, header)), delay(() => map_1((i_8) => getCellOrDefault(i_8, 1, cells), rangeDouble(0, 1, compositeCells.length - 1)))))), toList(delay(() => append(singleton(item(2, header)), delay(() => map_1((i_9) => getCellOrDefault(i_9, 2, cells), rangeDouble(0, 1, compositeCells.length - 1))))))]);
|
|
65
76
|
}
|
|
66
77
|
else {
|
|
67
|
-
return singleton_1(toList(delay(() => append(singleton(item(0, header)), delay(() => map_1((i_10) => item(0, item(i_10, cells)), rangeDouble(0, 1,
|
|
78
|
+
return singleton_1(toList(delay(() => append(singleton(item(0, header)), delay(() => map_1((i_10) => item(0, item(i_10, cells)), rangeDouble(0, 1, compositeCells.length - 1)))))));
|
|
68
79
|
}
|
|
69
80
|
}
|
|
70
81
|
export function toFsColumns(column) {
|
|
71
82
|
return map_2((c) => map_2((s) => (new FsCell(s)), c), toStringCellColumns(column));
|
|
72
83
|
}
|
|
84
|
+
export function ColumnValueRefs_fromStringCellColumns(valueMap, columns) {
|
|
85
|
+
let cellHash;
|
|
86
|
+
const hashMap = new Map([]);
|
|
87
|
+
const cells = new Map([]);
|
|
88
|
+
let constant = true;
|
|
89
|
+
const patternInput = fromStringCells(map((c) => item(0, c), columns));
|
|
90
|
+
const header = patternInput[0];
|
|
91
|
+
const cellParser = patternInput[1];
|
|
92
|
+
const l = item(0, columns).length | 0;
|
|
93
|
+
if (l === 1) {
|
|
94
|
+
return [header, ColumnValueRefs_Sparse(cells)];
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
for (let i = 1; i <= (l - 1); i++) {
|
|
98
|
+
const strings = map((c_1) => item(i, c_1), columns);
|
|
99
|
+
const hash_2 = reduce(mergeHashes, map_1(stringHash, strings)) | 0;
|
|
100
|
+
let matchValue;
|
|
101
|
+
let patternInput_1;
|
|
102
|
+
let outArg = defaultOf();
|
|
103
|
+
patternInput_1 = [tryGetValue(hashMap, hash_2, new FSharpRef(() => outArg, (v) => {
|
|
104
|
+
outArg = (v | 0);
|
|
105
|
+
})), outArg];
|
|
106
|
+
matchValue = (patternInput_1[0] ? patternInput_1[1] : undefined);
|
|
107
|
+
if (matchValue == null) {
|
|
108
|
+
if (i === 1) {
|
|
109
|
+
const cellHash_3 = ensureCellHashInValueMap(cellParser(strings), valueMap) | 0;
|
|
110
|
+
hashMap.set(hash_2, cellHash_3);
|
|
111
|
+
cells.set(i - 1, cellHash_3);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
if (constant) {
|
|
115
|
+
constant = false;
|
|
116
|
+
for (let j = 0; j <= (i - 1); j++) {
|
|
117
|
+
const cellHash_4 = getItemFromDict(cells, 0) | 0;
|
|
118
|
+
cells.set(j, cellHash_4);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
const cellHash_5 = ensureCellHashInValueMap(cellParser(strings), valueMap) | 0;
|
|
122
|
+
hashMap.set(hash_2, cellHash_5);
|
|
123
|
+
cells.set(i - 1, cellHash_5);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
else if ((cellHash = (value_1(matchValue) | 0), constant)) {
|
|
127
|
+
const cellHash_1 = value_1(matchValue) | 0;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
const cellHash_2 = value_1(matchValue) | 0;
|
|
131
|
+
cells.set(i - 1, cellHash_2);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (constant) {
|
|
135
|
+
return [header, ColumnValueRefs_Constant(getItemFromDict(cells, 0))];
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
return [header, ColumnValueRefs_Sparse(cells)];
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Record } from "@fable-org/fable-library-js/Types.js";
|
|
2
|
-
import { head, tail, isEmpty, ofSeq, concat, unzip, append, reverse, cons, empty, map, ofArray } from "@fable-org/fable-library-js/List.js";
|
|
2
|
+
import { head, tail, isEmpty as isEmpty_1, ofSeq, concat, unzip, append, reverse, cons, empty, map, ofArray } from "@fable-org/fable-library-js/List.js";
|
|
3
3
|
import { Remark, Comment$_$reflection } from "../Core/Comment.js";
|
|
4
4
|
import { comparePrimitives, getEnumerator, stringHash } from "@fable-org/fable-library-js/Util.js";
|
|
5
5
|
import { record_type, list_type, string_type } from "@fable-org/fable-library-js/Reflection.js";
|
|
@@ -10,11 +10,11 @@ import { value as value_1, defaultArg } from "@fable-org/fable-library-js/Option
|
|
|
10
10
|
import { Option_fromValueWithDefault, ResizeArray_iter } from "../Core/Helper/Collections.js";
|
|
11
11
|
import { List_distinctBy, List_distinct } from "@fable-org/fable-library-js/Seq2.js";
|
|
12
12
|
import { ArcStudy, ArcInvestigation } from "../Core/ArcTypes.js";
|
|
13
|
+
import { iterateIndexed, tryFind as tryFind_1, map as map_1, toList, collect, singleton, append as append_1, delay, isEmpty } from "@fable-org/fable-library-js/Seq.js";
|
|
13
14
|
import { toRows, fromRows } from "./Metadata/OntologySourceReference.js";
|
|
14
15
|
import { toRows as toRows_1, fromRows as fromRows_1 } from "./Metadata/Publication.js";
|
|
15
16
|
import { toRows as toRows_2, fromRows as fromRows_2 } from "./Metadata/Contacts.js";
|
|
16
17
|
import { toRows as toRows_3, fromRows as fromRows_3 } from "./Metadata/Study.js";
|
|
17
|
-
import { iterateIndexed, tryFind as tryFind_1, map as map_1, toList, collect, singleton, append as append_1, delay } from "@fable-org/fable-library-js/Seq.js";
|
|
18
18
|
import { tryFind, ofList } from "@fable-org/fable-library-js/Map.js";
|
|
19
19
|
import { FsWorksheet } from "../fable_modules/FsSpreadsheet.6.3.1/FsWorksheet.fs.js";
|
|
20
20
|
import { FsWorkbook } from "../fable_modules/FsSpreadsheet.6.3.1/FsWorkbook.fs.js";
|
|
@@ -86,6 +86,9 @@ export function ArcInvestigation_fromParts(investigationInfo, ontologySourceRefe
|
|
|
86
86
|
return ArcInvestigation.make(investigationInfo.Identifier, title, description, submissionDate, publicReleaseDate, ontologySourceReferences, publications_1, contacts_1, assays_1, studies_1, [], [], registeredStudyIdentifiers, comments, remarks_1);
|
|
87
87
|
}
|
|
88
88
|
export function ArcInvestigation_fromRows(rows) {
|
|
89
|
+
if (isEmpty(rows)) {
|
|
90
|
+
throw new Error("isa_investigation sheet in Investigation file is empty");
|
|
91
|
+
}
|
|
89
92
|
const en = getEnumerator(rows);
|
|
90
93
|
const emptyInvestigationInfo = ArcInvestigation_InvestigationInfo_create("", "", "", "", "", empty());
|
|
91
94
|
const loop = (lastLine_mut, ontologySourceReferences_mut, investigationInfo_mut, publications_mut, contacts_mut, studies_mut, remarks_mut, lineNumber_mut) => {
|
|
@@ -204,25 +207,38 @@ export function ArcInvestigation_fromRows(rows) {
|
|
|
204
207
|
continue loop;
|
|
205
208
|
}
|
|
206
209
|
}
|
|
207
|
-
default:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
210
|
+
default:
|
|
211
|
+
if (en["System.Collections.IEnumerator.MoveNext"]()) {
|
|
212
|
+
lastLine_mut = SparseRowModule_tryGetValueAt(0, en["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
213
|
+
ontologySourceReferences_mut = ontologySourceReferences;
|
|
214
|
+
investigationInfo_mut = investigationInfo;
|
|
215
|
+
publications_mut = publications;
|
|
216
|
+
contacts_mut = contacts;
|
|
217
|
+
studies_mut = studies;
|
|
218
|
+
remarks_mut = remarks;
|
|
219
|
+
lineNumber_mut = lineNumber;
|
|
220
|
+
continue loop;
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
let patternInput_5;
|
|
224
|
+
const tupledArg = unzip(studies);
|
|
225
|
+
patternInput_5 = [reverse(tupledArg[0]), List_distinctBy((a_1) => a_1.Identifier, concat(tupledArg[1]), {
|
|
226
|
+
Equals: (x, y) => (x === y),
|
|
227
|
+
GetHashCode: stringHash,
|
|
228
|
+
})];
|
|
229
|
+
return ArcInvestigation_fromParts(investigationInfo, ontologySourceReferences, publications, contacts, patternInput_5[0], patternInput_5[1], remarks);
|
|
230
|
+
}
|
|
216
231
|
}
|
|
217
232
|
break;
|
|
218
233
|
}
|
|
219
234
|
};
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
throw new Error("
|
|
235
|
+
let arcInvestigation;
|
|
236
|
+
en["System.Collections.IEnumerator.MoveNext"]();
|
|
237
|
+
arcInvestigation = loop(SparseRowModule_tryGetValueAt(0, en["System.Collections.Generic.IEnumerator`1.get_Current"]()), empty(), emptyInvestigationInfo, empty(), empty(), empty(), empty(), 1);
|
|
238
|
+
if (arcInvestigation.Identifier === "") {
|
|
239
|
+
throw new Error("Mandatory Investigation identifier is not present");
|
|
225
240
|
}
|
|
241
|
+
return arcInvestigation;
|
|
226
242
|
}
|
|
227
243
|
export function ArcInvestigation_toRows(investigation) {
|
|
228
244
|
let remarks, rows;
|
|
@@ -239,7 +255,7 @@ export function ArcInvestigation_toRows(investigation) {
|
|
|
239
255
|
const i = i_mut, l = l_mut, nl = nl_mut;
|
|
240
256
|
const matchValue = tryFind(i, rm);
|
|
241
257
|
if (matchValue == null) {
|
|
242
|
-
if (!
|
|
258
|
+
if (!isEmpty_1(l)) {
|
|
243
259
|
i_mut = (i + 1);
|
|
244
260
|
l_mut = tail(l);
|
|
245
261
|
nl_mut = cons(head(l), nl);
|
|
@@ -459,5 +459,5 @@ export function fromFsCells(cells) {
|
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
461
|
export function toFsCells(commentKeys) {
|
|
462
|
-
return toList(delay(() => append([new FsCell("Data"), new FsCell("Data Format"), new FsCell("Data Selector Format")], delay(() => append([new FsCell("Explication"), new FsCell("Term Source REF"), new FsCell("Term Accession Number")], delay(() => append([new FsCell("Unit"), new FsCell("Term Source REF"), new FsCell("Term Accession Number")], delay(() => append([new FsCell("Object Type"), new FsCell("Term Source REF"), new FsCell("Term Accession Number")], delay(() => append([new FsCell("Description")], delay(() => append([new FsCell("Generated By")], delay(() => append([new FsCell("Label")], delay(() => map_2((ck) => (new FsCell(ck)), commentKeys)))))))))))))))));
|
|
462
|
+
return toList(delay(() => append([new FsCell("Data"), new FsCell("Data Format"), new FsCell("Data Selector Format")], delay(() => append([new FsCell("Explication"), new FsCell("Term Source REF"), new FsCell("Term Accession Number")], delay(() => append([new FsCell("Unit"), new FsCell("Term Source REF"), new FsCell("Term Accession Number")], delay(() => append([new FsCell("Object Type"), new FsCell("Term Source REF"), new FsCell("Term Accession Number")], delay(() => append([new FsCell("Description")], delay(() => append([new FsCell("Generated By")], delay(() => append([new FsCell("Label")], delay(() => map_2((ck) => (new FsCell(`Comment [${ck}]`)), commentKeys)))))))))))))))));
|
|
463
463
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { append as append_1, delay, tryItem, length as length_1, isEmpty, iterate, fold, tryPick, maxBy, initialize, choose, map, indexed } from "@fable-org/fable-library-js/Seq.js";
|
|
2
2
|
import { defaultArg, value as value_1, map as map_1 } from "@fable-org/fable-library-js/Option.js";
|
|
3
3
|
import { tryFind, ofSeq } from "@fable-org/fable-library-js/Map.js";
|
|
4
|
-
import {
|
|
4
|
+
import { equals, comparePrimitives } from "@fable-org/fable-library-js/Util.js";
|
|
5
5
|
import { DataType_String } from "../../fable_modules/FsSpreadsheet.6.3.1/Cells/FsCell.fs.js";
|
|
6
6
|
import { RowBuilder_get_Empty, RowBuilder__Combine_19F30600, RowBuilder_$ctor } from "../../fable_modules/FsSpreadsheet.6.3.1/DSL/RowBuilder.fs.js";
|
|
7
7
|
import { RowElement_IndexedCell, ColumnIndex, RowElement_UnindexedCell } from "../../fable_modules/FsSpreadsheet.6.3.1/DSL/Types.fs.js";
|
|
@@ -14,7 +14,7 @@ import { Record } from "@fable-org/fable-library-js/Types.js";
|
|
|
14
14
|
import { record_type, list_type, class_type, tuple_type, int32_type, string_type } from "@fable-org/fable-library-js/Reflection.js";
|
|
15
15
|
import { Seq_trySkip, Dictionary_tryGetValue } from "../CollectionAux.js";
|
|
16
16
|
import { addToDict, getItemFromDict } from "@fable-org/fable-library-js/MapUtil.js";
|
|
17
|
-
import {
|
|
17
|
+
import { Dictionary_init } from "../../Core/Helper/Collections.js";
|
|
18
18
|
import { printf, toFail } from "@fable-org/fable-library-js/String.js";
|
|
19
19
|
import { Comment$, Remark } from "../../Core/Comment.js";
|
|
20
20
|
import { Comment_wrapCommentKey, Comment_$007CComment$007C_$007C, Remark_$007CRemark$007C_$007C } from "./Comment.js";
|
|
@@ -296,10 +296,7 @@ export function SparseTable__TryGetValueDefault_5BAE6133(this$, defaultValue, ke
|
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
export function SparseTable_Create_Z2192E64B(matrix, keys, commentKeys, length) {
|
|
299
|
-
return new SparseTable(defaultArg(matrix,
|
|
300
|
-
Equals: equalArrays,
|
|
301
|
-
GetHashCode: arrayHash,
|
|
302
|
-
})), defaultArg(keys, empty()), defaultArg(commentKeys, empty()), defaultArg(length, 0));
|
|
299
|
+
return new SparseTable(defaultArg(matrix, Dictionary_init()), defaultArg(keys, empty()), defaultArg(commentKeys, empty()), defaultArg(length, 0));
|
|
303
300
|
}
|
|
304
301
|
export function SparseTable_AddRow(key, values, matrix) {
|
|
305
302
|
iterate((tupledArg) => {
|
|
@@ -17,7 +17,7 @@ import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
|
17
17
|
export declare class ARC extends ArcInvestigation {
|
|
18
18
|
_cwl: Option<void>;
|
|
19
19
|
_fs: FileSystem;
|
|
20
|
-
"init@
|
|
20
|
+
"init@90": int32;
|
|
21
21
|
constructor(identifier: string, title?: string, description?: string, submissionDate?: string, publicReleaseDate?: string, ontologySourceReferences?: OntologySourceReference[], publications?: Publication[], contacts?: Person[], assays?: ArcAssay[], studies?: ArcStudy[], workflows?: ArcWorkflow[], runs?: ArcRun[], registeredStudyIdentifiers?: string[], comments?: Comment$[], remarks?: Remark[], cwl?: Option<void>, fs?: FileSystem);
|
|
22
22
|
get FileSystem(): FileSystem;
|
|
23
23
|
set FileSystem(fs: FileSystem);
|
|
@@ -48,7 +48,7 @@ export declare class ARC extends ArcInvestigation {
|
|
|
48
48
|
UpdateFileSystem(): void;
|
|
49
49
|
GetWriteContracts(skipUpdateFS?: boolean): Contract[];
|
|
50
50
|
GetUpdateContracts(skipUpdateFS?: boolean): Contract[];
|
|
51
|
-
GetGitInitContracts(branch?: string, repositoryAddress?: string, defaultGitignore?: boolean): Contract[];
|
|
51
|
+
GetGitInitContracts(branch?: string, repositoryAddress?: string, defaultGitignore?: boolean, defaultGitattributes?: boolean): Contract[];
|
|
52
52
|
static getCloneContract(remoteUrl: string, merge?: boolean, branch?: string, token?: [string, string], nolfs?: boolean): Contract;
|
|
53
53
|
Copy(): ARC;
|
|
54
54
|
GetRegisteredPayload(IgnoreHidden?: boolean): FileSystemTree_$union;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ARC.d.ts","sourceRoot":"","sources":["../../../../src/ARCtrl/ts/ARC.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAsC,MAAM,EAAU,MAAM,uCAAuC,CAAC;AAC3G,OAAO,EAAyP,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtV,OAAO,EAA2C,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AACvH,OAAO,EAAW,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAM3D,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,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rate/LDObject.js";
|
|
4
|
-
import { IMap } from "@fable-org/fable-library-js/Util.js";
|
|
5
4
|
import { TypeInfo } from "@fable-org/fable-library-js/Reflection.js";
|
|
6
5
|
import { Comment$ } from "./Core/Comment.js";
|
|
7
6
|
import { LDContext } from "./ROCrate/LDContext.js";
|
|
@@ -10,8 +9,8 @@ import { Data } from "./Core/Data.js";
|
|
|
10
9
|
import { CompositeCell_$union } from "./Core/Table/CompositeCell.js";
|
|
11
10
|
import { CompositeHeader_$union } from "./Core/Table/CompositeHeader.js";
|
|
12
11
|
import { DataContext } from "./Core/DataContext.js";
|
|
13
|
-
import { FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
14
12
|
import { ArcTable } from "./Core/Table/ArcTable.js";
|
|
13
|
+
import { FSharpList } from "@fable-org/fable-library-js/List.js";
|
|
15
14
|
import { ArcTables } from "./Core/Table/ArcTables.js";
|
|
16
15
|
import { DataMap } from "./Core/DataMap.js";
|
|
17
16
|
import { Person } from "./Core/Person.js";
|
|
@@ -123,56 +122,56 @@ export declare function ProcessConversion_decomposeProcessName_Z721C83C5(name: s
|
|
|
123
122
|
/**
|
|
124
123
|
* If the given headers depict a component, returns a function for parsing the values of the matrix to the values of this component
|
|
125
124
|
*/
|
|
126
|
-
export declare function ProcessConversion_tryComponentGetter(generalI: int32, valueI: int32, valueHeader: CompositeHeader_$union): Option<((arg0:
|
|
125
|
+
export declare function ProcessConversion_tryComponentGetter(generalI: int32, valueI: int32, valueHeader: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => LDNode))>;
|
|
127
126
|
/**
|
|
128
127
|
* If the given headers depict a parameter, returns a function for parsing the values of the matrix to the values of this type
|
|
129
128
|
*/
|
|
130
|
-
export declare function ProcessConversion_tryParameterGetter(generalI: int32, valueI: int32, valueHeader: CompositeHeader_$union): Option<((arg0:
|
|
129
|
+
export declare function ProcessConversion_tryParameterGetter(generalI: int32, valueI: int32, valueHeader: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => LDNode))>;
|
|
131
130
|
/**
|
|
132
131
|
* If the given headers depict a factor, returns a function for parsing the values of the matrix to the values of this type
|
|
133
132
|
*/
|
|
134
|
-
export declare function ProcessConversion_tryFactorGetter(generalI: int32, valueI: int32, valueHeader: CompositeHeader_$union): Option<((arg0:
|
|
133
|
+
export declare function ProcessConversion_tryFactorGetter(generalI: int32, valueI: int32, valueHeader: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => LDNode))>;
|
|
135
134
|
/**
|
|
136
135
|
* If the given headers depict a protocolType, returns a function for parsing the values of the matrix to the values of this type
|
|
137
136
|
*/
|
|
138
|
-
export declare function ProcessConversion_tryCharacteristicGetter(generalI: int32, valueI: int32, valueHeader: CompositeHeader_$union): Option<((arg0:
|
|
137
|
+
export declare function ProcessConversion_tryCharacteristicGetter(generalI: int32, valueI: int32, valueHeader: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => LDNode))>;
|
|
139
138
|
/**
|
|
140
139
|
* If the given headers depict a protocolType, returns a function for parsing the values of the matrix to the values of this type
|
|
141
140
|
*/
|
|
142
|
-
export declare function ProcessConversion_tryGetProtocolTypeGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0:
|
|
141
|
+
export declare function ProcessConversion_tryGetProtocolTypeGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => LDNode))>;
|
|
143
142
|
/**
|
|
144
143
|
* If the given headers depict a protocolREF, returns a function for parsing the values of the matrix to the values of this type
|
|
145
144
|
*/
|
|
146
|
-
export declare function ProcessConversion_tryGetProtocolREFGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0:
|
|
145
|
+
export declare function ProcessConversion_tryGetProtocolREFGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => string))>;
|
|
147
146
|
/**
|
|
148
147
|
* If the given headers depict a protocolDescription, returns a function for parsing the values of the matrix to the values of this type
|
|
149
148
|
*/
|
|
150
|
-
export declare function ProcessConversion_tryGetProtocolDescriptionGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0:
|
|
149
|
+
export declare function ProcessConversion_tryGetProtocolDescriptionGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => string))>;
|
|
151
150
|
/**
|
|
152
151
|
* If the given headers depict a protocolURI, returns a function for parsing the values of the matrix to the values of this type
|
|
153
152
|
*/
|
|
154
|
-
export declare function ProcessConversion_tryGetProtocolURIGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0:
|
|
153
|
+
export declare function ProcessConversion_tryGetProtocolURIGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => string))>;
|
|
155
154
|
/**
|
|
156
155
|
* If the given headers depict a protocolVersion, returns a function for parsing the values of the matrix to the values of this type
|
|
157
156
|
*/
|
|
158
|
-
export declare function ProcessConversion_tryGetProtocolVersionGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0:
|
|
157
|
+
export declare function ProcessConversion_tryGetProtocolVersionGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => string))>;
|
|
159
158
|
/**
|
|
160
159
|
* If the given headers depict an input, returns a function for parsing the values of the matrix to the values of this type
|
|
161
160
|
*/
|
|
162
|
-
export declare function ProcessConversion_tryGetInputGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0:
|
|
161
|
+
export declare function ProcessConversion_tryGetInputGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => LDNode))>;
|
|
163
162
|
/**
|
|
164
163
|
* If the given headers depict an output, returns a function for parsing the values of the matrix to the values of this type
|
|
165
164
|
*/
|
|
166
|
-
export declare function ProcessConversion_tryGetOutputGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0:
|
|
165
|
+
export declare function ProcessConversion_tryGetOutputGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => LDNode))>;
|
|
167
166
|
/**
|
|
168
167
|
* If the given headers depict a comment, returns a function for parsing the values of the matrix to the values of this type
|
|
169
168
|
*/
|
|
170
|
-
export declare function ProcessConversion_tryGetCommentGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0:
|
|
171
|
-
export declare function ProcessConversion_tryGetPerformerGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0:
|
|
169
|
+
export declare function ProcessConversion_tryGetCommentGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => string))>;
|
|
170
|
+
export declare function ProcessConversion_tryGetPerformerGetter(generalI: int32, header: CompositeHeader_$union): Option<((arg0: ArcTable) => ((arg0: int32) => LDNode))>;
|
|
172
171
|
/**
|
|
173
172
|
* Given the header sequence of an ArcTable, returns a function for parsing each row of the table to a process
|
|
174
173
|
*/
|
|
175
|
-
export declare function ProcessConversion_getProcessGetter(assayName: Option<string>, studyName: Option<string>, processNameRoot: string, headers: Iterable<CompositeHeader_$union>): ((arg0:
|
|
174
|
+
export declare function ProcessConversion_getProcessGetter(assayName: Option<string>, studyName: Option<string>, processNameRoot: string, headers: Iterable<CompositeHeader_$union>): ((arg0: ArcTable) => ((arg0: int32) => LDNode));
|
|
176
175
|
/**
|
|
177
176
|
* Groups processes by their name, or by the name of the protocol they execute
|
|
178
177
|
*
|