-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoperator.json
More file actions
168 lines (168 loc) · 4.68 KB
/
Copy pathoperator.json
File metadata and controls
168 lines (168 loc) · 4.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"name": "Export Table",
"description": "Exports a data table defined on the crosstab area as CSV, TSV or XLSX.",
"container": "ghcr.io/tercen/export_table_operator",
"tags": [
"export",
"workflow"
],
"authors": [
"tercen"
],
"urls": [
"https://github.com/tercen/export_table_operator"
],
"properties": [
{
"kind": "EnumeratedProperty",
"name": "format",
"defaultValue": "CSV",
"values": [
"CSV",
"TSV",
"XLSX"
],
"description": "Desired file format."
},
{
"kind": "BooleanProperty",
"name": "collapse_cols",
"defaultValue": false,
"description": "If true, write a single header row with column factors joined by '_'. If false, write a multi-row crosstab header (one row per column factor plus a Y-axis row)."
},
{
"kind": "BooleanProperty",
"name": "collapse_rows",
"defaultValue": false,
"description": "If true, join all row factors into a single column with values separated by '_'. If false, keep each row factor as its own column."
},
{
"kind": "StringProperty",
"name": "filename_prefix",
"defaultValue": "Exported_Table",
"description": "Custom file name prefix. Workflow, group, data step names and a timestamp willbe added to the name."
},
{
"kind": "BooleanProperty",
"name": "export_to_project",
"defaultValue": false,
"description": "Whether to upload a copy of the generated file to the project folder."
},
{
"kind": "StringProperty",
"name": "export_subfolder_name",
"defaultValue": "",
"description": "Name of the export subfolder."
},
{
"kind": "StringProperty",
"name": "export_subfolder_id",
"defaultValue": "",
"description": "ID of the export subfolder. If not empty, subfolder name will be ignored."
},
{
"kind": "StringProperty",
"name": "na_encoding",
"defaultValue": "",
"description": "How to encode missing values."
},
{
"kind": "StringProperty",
"name": "decimal_character",
"defaultValue": ".",
"description": "How to encode the decimal symbol."
},
{
"kind": "StringProperty",
"name": "data_separator",
"defaultValue": ",",
"description": "How to encode data separator in CSV files (default is a comma)."
}
],
"operatorSpec": {
"kind": "OperatorSpec",
"ontologyUri": "https://tercen.com/_ontology/tercen",
"ontologyVersion": "0.0.1",
"inputSpecs": [
{
"kind": "CrosstabSpec",
"metaFactors": [
{
"kind": "MetaFactor",
"name": "Rows",
"type": "",
"description": "Output table rows.",
"ontologyMapping": "variable",
"crosstabMapping": "row",
"cardinality": "1..n",
"factors": []
},
{
"kind": "MetaFactor",
"name": "Columns",
"type": "",
"description": "Output table columns.",
"ontologyMapping": "observation",
"crosstabMapping": "column",
"cardinality": "1..n",
"factors": []
}
],
"axis": [
{
"kind": "AxisSpec",
"metaFactors": [
{
"kind": "MetaFactor",
"name": "Measurement",
"type": "double",
"description": "Output table measurement values.",
"ontologyMapping": "measurement",
"crosstabMapping": "y",
"cardinality": "1",
"factors": []
}
]
}
]
}
],
"outputSpecsV2": [
{
"kind": "OperatorJoinSpec",
"description": "Export operator - outputs CSV, TSV or XLSX file",
"joinOperators": [
{
"kind": "JoinOperator",
"joinType": "left",
"leftPair": {
"kind": "ColumnPair",
"lColumns": [],
"rColumns": []
},
"rightRelation": {
"kind": "TableRelation",
"attributes": [
{
"kind": "Attribute",
"name": "filename",
"type": "string"
},
{
"kind": "Attribute",
"name": "mimetype",
"type": "string"
},
{
"kind": "Attribute",
"name": ".content",
"type": "string"
}
]
}
}
]
}
]
}
}