annotate data/models.R @ 14:00079fadc240 draft

" master branch Updating"
author lain
date Tue, 01 Jun 2021 09:47:15 +0000
parents a174cbbb12dd
children d8112d636210
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
1
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
2 tryCatch({
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
3 DBModelR::ModelDefinition(table="yui", fields=list(yui="INTEGER"))
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
4 }, error=function(e) {
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
5 stop("Please, install DBModelR before you source this file.")
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
6 })
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
7
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
8 list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
9 adduct=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
10 table="adduct",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
11 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
12 name="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
13 mass="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
14 charge="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
15 multi="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
16 formula_add="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
17 formula_ded="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
18 sign="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
19 oidscore="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
20 quasi="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
21 ips="FLOAT"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
22 )
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
23 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
24 cluster=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
25 table="cluster",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
26 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
27 clusterID="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
28 formula="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
29 annotation="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
30 coeff="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
31 r_squared="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
32 charge="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
33 mean_rt="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
34 score="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
35 deviation="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
36 status="TEXT",
14
00079fadc240 " master branch Updating"
lain
parents: 0
diff changeset
37 # adduct="TEXT",
0
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
38 curent_group="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
39 pc_group="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
40 align_group="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
41 xcms_group="INTEGER"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
42 ),
14
00079fadc240 " master branch Updating"
lain
parents: 0
diff changeset
43 one=list("compound", "adduct", "sample")
0
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
44 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
45 compound=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
46 table="compound",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
47 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
48 name="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
49 common_name="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
50 formula="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
51 charge="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
52 date="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
53 mz="FLOAT"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
54 )
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
55 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
56 feature=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
57 table="feature",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
58 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
59 featureID="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
60 mz="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
61 mz_min="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
62 mz_max="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
63 rt="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
64 rt_min="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
65 rt_max="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
66 int_o="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
67 int_b="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
68 max_o="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
69 iso="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
70 abundance="FLOAT"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
71 ),
14
00079fadc240 " master branch Updating"
lain
parents: 0
diff changeset
72 one=list("cluster"),
00079fadc240 " master branch Updating"
lain
parents: 0
diff changeset
73 many=list("sample")
0
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
74 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
75 instrument=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
76 table="instrument",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
77 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
78 model="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
79 manufacturer="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
80 analyzer="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
81 detector_type="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
82 ion_source="TEXT"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
83 )
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
84 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
85 instrument_config=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
86 table="instrument_config",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
87 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
88 resolution="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
89 agc_target="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
90 maximum_IT="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
91 number_of_scan_range="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
92 scan_range="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
93 version="TEXT"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
94 )
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
95 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
96 project=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
97 table="project",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
98 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
99 name="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
100 comment="TEXT"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
101 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
102 one=list("sample")
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
103 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
104 sample=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
105 table="sample",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
106 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
107 name="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
108 path="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
109 polarity="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
110 kind="TEXT", ## rdata or mxml or enriched_rdata
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
111 raw="BLOB"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
112 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
113 one=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
114 "peak_picking_parameters",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
115 "pairing_parameters",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
116 "alignmenmt_parameters",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
117 "camera_parameters",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
118 "instrument",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
119 "instrument_config",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
120 "software",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
121 "smol_xcms_set"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
122 )
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
123 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
124 smol_xcms_set=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
125 table="smol_xcms_set",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
126 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
127 raw="BLOB"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
128 )
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
129 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
130 software=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
131 table="software",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
132 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
133 name="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
134 version="TEXT"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
135 )
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
136 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
137 # camera_parameters=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
138 # table="camera_parameters",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
139 # fields=list()
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
140 # ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
141 # pairing_parameters=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
142 # table="pairing_parameters",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
143 # fields=list()
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
144 # ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
145 peak_picking_parameters=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
146 table="peak_picking_parameters",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
147 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
148 ppm="FLOAT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
149 peakwidth="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
150 snthresh="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
151 prefilterStep="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
152 prefilterLevel="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
153 mzdiff="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
154 fitgauss="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
155 noise="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
156 mzCenterFun="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
157 integrate="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
158 firstBaselineCheck="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
159 snthreshIsoROIs="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
160 maxCharge="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
161 maxIso="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
162 mzIntervalExtension="TEXT"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
163 )
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
164 ),
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
165 alignmenmt_parameters=DBModelR::ModelDefinition(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
166 table="alignmenmt_parameters",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
167 fields=list(
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
168 binSize="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
169 centerSample="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
170 response="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
171 distFun="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
172 gapInit="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
173 gapExtend="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
174 factorDiag="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
175 factorGap="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
176 localAlignment="INTEGER",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
177 initPenalty="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
178 bw="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
179 minFraction="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
180 minSamples="TEXT",
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
181 maxFeatures="TEXT"
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
182 )
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
183 )
a174cbbb12dd " master branch Updating"
lain
parents:
diff changeset
184 )