mspire-lipid 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,50 @@
1
+
2
+ module Mspire
3
+ class Lipid
4
+ class Search
5
+ class ProbabilityDistribution
6
+ DEFAULT_TYPE = :ppm
7
+ R = Rserve::Simpler.new
8
+
9
+ # takes location, scale and shape parameters
10
+ attr_accessor :location, :scale, :shape
11
+ # type is :ppm or :delta_abs
12
+ attr_accessor :type
13
+ def initialize(location, scale, shape, type=DEFAULT_TYPE)
14
+ @location, @scale, @shape = location, scale, shape
15
+ @type = type
16
+ end
17
+
18
+ # takes a deviation and returns the pvalue
19
+ def pvalue(hit)
20
+ R.converse "pgev(log(#{hit.send(type)}), #{@location}, #{@scale}, #{@shape})"
21
+ end
22
+
23
+ # same as pvalue, just tries to limit the number of calls to R to
24
+ # speed things up!
25
+ def pvalues(hits)
26
+ deltas = hits.map {|v| v.send(type).abs }
27
+ reply = R.converse("sapply(r_devs, function(elt) pgev(log(elt), #{@location}, #{@scale}, #{@shape}))", :r_devs => deltas)
28
+ reply.is_a?(Array) ? reply : [reply]
29
+ end
30
+
31
+ def self.require_r_library(lib)
32
+ reply = R.converse "library(#{lib})"
33
+ unless reply.size > 4 # ~roughly
34
+ $stderr.puts "The libraries ismev and evd must be installed in your R env!"
35
+ $stderr.puts "From within R (works best if R is started with sudo or root for installing):"
36
+ $stderr.puts %Q{install.packages("ismev") ; install.packages("evd")}
37
+ raise "must have R (rserve) and ismev and evd installed!"
38
+ end
39
+ end
40
+
41
+ # returns an EVD object
42
+ def self.deviations_to_probability_distribution(type, devs)
43
+ %w(ismev evd).each {|lib| require_r_library(lib) }
44
+ params = R.converse("m <- gev.fit(log(devs_r))\n c(m$mle[1], m$mle[2], m$mle[3])", :devs_r => devs )
45
+ self.new(*params, type)
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,23 @@
1
+
2
+
3
+
4
+ module Mspire
5
+ class Lipid
6
+ class Search
7
+ class Query
8
+
9
+ # the experimentally observed lowest mz
10
+ attr_accessor :mz
11
+
12
+ # the index of search spectrum that the m/z was derived from
13
+ # this allows for the creation of an isotope envelope starting from a
14
+ # particular m/z value.
15
+ attr_accessor :index
16
+
17
+ def initialize(mz, index)
18
+ @mz, @index = mz, index
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,6 @@
1
+
2
+ module Mspire
3
+ class Lipid
4
+ VERSION = "0.2.0"
5
+ end
6
+ end
@@ -0,0 +1,110 @@
1
+ require 'mspire/lipid'
2
+ require 'mspire/mass'
3
+
4
+ module Mspire
5
+ module LipidMaps
6
+
7
+ DEFAULTS = {
8
+ :high_res_mass => true,
9
+ :rubabel_molecules => false,
10
+ :molecular_formula_objects => true,
11
+ }
12
+
13
+ # returns an array of Lipids
14
+ # if high_res_mass is true (default), then the formula is used to calculate a higher
15
+ # resolution mass than what is in lipidmaps
16
+ #
17
+ # :high_res_mass => true (ensures that a high res mass is present or calculated)
18
+ def self.parse_file(lipidmaps_tsv, opts={})
19
+ require 'rubabel' if opts[:rubabel_molecules]
20
+
21
+ opts = DEFAULTS.merge(opts)
22
+
23
+ io = File.open(lipidmaps_tsv)
24
+ header = io.readline.split("\t")
25
+ # the lipidmaps_filetype
26
+ lm_ft = case header.size
27
+ when 8
28
+ :programmatic
29
+ when 20
30
+ :download
31
+ when 21
32
+ :download_sd
33
+ when 22
34
+ :download_2013
35
+ when 23
36
+ :download_sd_2013 # <- have not test this yet
37
+ end
38
+ index_mapping =
39
+ case lm_ft
40
+ when :programmatic
41
+ (0...(Mspire::Lipid.members.size)).to_a
42
+ when :download, :download_sd
43
+ indices = {
44
+ :lm_id => 0,
45
+ :systematic_name => 1,
46
+ :category => 3,
47
+ :main_class => 4,
48
+ :mass => 5,
49
+ :formula => 6,
50
+ :pubchem_id => 7,
51
+ :inchi_key => 8,
52
+ :common_name => 11,
53
+ :kegg_id => 12,
54
+ :chebi_id => 13,
55
+ :sub_class => 14,
56
+ :structure => 20,
57
+ }
58
+ Mspire::Lipid.members.map {|key| indices[key] }
59
+ when :download_2013, :download_sd_2013
60
+ indices = {
61
+ :lm_id => 2,
62
+ :systematic_name => 3,
63
+ :category => 5,
64
+ :main_class => 6,
65
+ :mass => 7,
66
+ :formula => 8,
67
+ :pubchem_id => 9,
68
+ # add in future->?
69
+ #:pubchem_cid => 10,
70
+ :inchi_key => 11,
71
+ :common_name => 13,
72
+ :kegg_id => 14,
73
+ :chebi_id => 15,
74
+ :sub_class => 16,
75
+ :structure => 22,
76
+ }
77
+ Mspire::Lipid.members.map {|key| indices[key] }
78
+ end
79
+
80
+ formula_i = index_mapping[Mspire::Lipid.members.index(:formula)]
81
+
82
+ lipids = io.each_line.map do |line|
83
+ line.chomp!
84
+ data = line.split("\t")
85
+ if data[formula_i] =~ /[A-Z]/ # <- there is a formula!
86
+ lipid = Mspire::Lipid.new( *index_mapping.map {|i| data[i] } )
87
+ lipid.mass = lipid.mass.to_f
88
+ lipid
89
+ end
90
+ end.compact
91
+
92
+ if opts.values_at(:molecular_formula_objects, :rubabel_molecules).any? || (opts[:high_res_mass] && lm_ft == :programmatic)
93
+ lipids.each do |lipid|
94
+ if opts[:molecular_formula_objects]
95
+ lipid.formula = Mspire::MolecularFormula.from_string(lipid.formula)
96
+ end
97
+ if lm_ft == :programmatic && opts[:high_res_mass]
98
+ lipid.mass = lipid.formula.mass
99
+ end
100
+ if opts[:rubabel_molecules]
101
+ lipid.structure = Rubabel::Molecule.from_string(lipid.structure.gsub('|', "\n"), :sdf)
102
+ end
103
+ end
104
+ end
105
+ lipids
106
+ end
107
+ end
108
+ end
109
+
110
+
@@ -0,0 +1,38 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'mspire/lipid/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "mspire-lipid"
8
+ spec.version = Mspire::Lipid::VERSION
9
+ spec.authors = ["John T. Prince"]
10
+ spec.email = ["jtprince@gmail.com"]
11
+ spec.summary = %q{mass spectrometry based lipidomics - especially shotgun lipidomics}
12
+ spec.description = %q{mass spectrometry based lipidomics - especially shotgun lipidomics.}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ [
22
+ ["mspire-molecular_formula", "~> 0.1.0"],
23
+ ["rubabel", ">= 0.1.6"],
24
+ ].each do |args|
25
+ spec.add_dependency(*args)
26
+ end
27
+
28
+ [
29
+ ["bundler", "~> 1.6.2"],
30
+ ["rake"],
31
+ ["rspec", "~> 2.14.1"],
32
+ ["rdoc", "~> 4.1.1"],
33
+ ["simplecov", "~> 0.8.2"],
34
+ ["fftw3"], # just until not needed in mspire-molform
35
+ ].each do |args|
36
+ spec.add_development_dependency(*args)
37
+ end
38
+ end
@@ -0,0 +1,47 @@
1
+ get_in_stream
2
+ get_out_stream
3
+ set_in_stream
4
+ set_out_stream
5
+ set_in_and_out_formats
6
+ set_in_format
7
+ set_out_format
8
+ get_in_format
9
+ get_out_format
10
+ get_in_filename
11
+ get_in_pos
12
+ get_in_len
13
+ get_title
14
+ get_aux_conv
15
+ set_aux_conv
16
+ is_option
17
+ get_options
18
+ add_option
19
+ remove_option
20
+ set_options
21
+ copy_options
22
+ get_supported_input_format
23
+ get_supported_output_format
24
+ convert
25
+ full_convert
26
+ add_chem_object
27
+ get_chem_object
28
+ is_last
29
+ is_first_input
30
+ set_first_input
31
+ get_output_index
32
+ set_output_index
33
+ set_more_files_to_come
34
+ set_one_object_only
35
+ set_last
36
+ is_last_file
37
+ get_count
38
+ write
39
+ write_string
40
+ write_file
41
+ close_out_file
42
+ read
43
+ read_string
44
+ read_file
45
+ open_in_and_out_files
46
+ report_number_converted
47
+ num_input_objects
@@ -0,0 +1,145 @@
1
+ Visit=
2
+ Visit
3
+ duplicate
4
+ set_idx
5
+ set_id
6
+ set_hyb
7
+ set_atomic_num
8
+ set_isotope
9
+ set_implicit_valence
10
+ increment_implicit_valence
11
+ decrement_implicit_valence
12
+ set_formal_charge
13
+ set_spin_multiplicity
14
+ set_type
15
+ set_partial_charge
16
+ set_coord_ptr
17
+ set_vector
18
+ set_residue
19
+ set_parent
20
+ set_aromatic
21
+ unset_aromatic
22
+ set_clockwise_stereo
23
+ set_anti_clockwise_stereo
24
+ set_positive_stereo
25
+ set_negative_stereo
26
+ unset_stereo
27
+ set_in_ring
28
+ set_chiral
29
+ clear_coord_ptr
30
+ get_formal_charge
31
+ get_atomic_num
32
+ get_isotope
33
+ get_spin_multiplicity
34
+ get_atomic_mass
35
+ get_exact_mass
36
+ get_idx
37
+ get_index
38
+ get_id
39
+ get_coordinate_idx
40
+ get_cidx
41
+ get_valence
42
+ get_hyb
43
+ get_implicit_valence
44
+ get_hvy_valence
45
+ get_hetero_valence
46
+ get_type
47
+ get_x
48
+ get_y
49
+ get_z
50
+ x
51
+ y
52
+ z
53
+ get_coordinate
54
+ get_vector
55
+ get_partial_charge
56
+ get_residue
57
+ get_parent
58
+ get_new_bond_vector
59
+ get_bond
60
+ get_next_atom
61
+ begin_bonds
62
+ end_bonds
63
+ begin_bond
64
+ next_bond
65
+ begin_nbr_atom
66
+ next_nbr_atom
67
+ get_distance
68
+ get_angle
69
+ new_residue
70
+ add_residue
71
+ delete_residue
72
+ add_bond
73
+ insert_bond
74
+ delete_bond
75
+ clear_bond
76
+ hto_methyl
77
+ set_hyb_and_geom
78
+ force_no_h
79
+ has_no_hforced
80
+ force_impl_h
81
+ has_impl_hforced
82
+ count_free_oxygens
83
+ implicit_hydrogen_count
84
+ explicit_hydrogen_count
85
+ member_of_ring_count
86
+ member_of_ring_size
87
+ count_ring_bonds
88
+ smallest_bond_angle
89
+ average_bond_angle
90
+ bosum
91
+ kbosum
92
+ has_residue
93
+ is_hydrogen
94
+ is_carbon
95
+ is_nitrogen
96
+ is_oxygen
97
+ is_sulfur
98
+ is_phosphorus
99
+ is_aromatic
100
+ is_in_ring
101
+ is_in_ring_size
102
+ is_heteroatom
103
+ is_not_cor_h
104
+ is_connected
105
+ is_one_three
106
+ is_one_four
107
+ is_carboxyl_oxygen
108
+ is_phosphate_oxygen
109
+ is_sulfate_oxygen
110
+ is_nitro_oxygen
111
+ is_amide_nitrogen
112
+ is_polar_hydrogen
113
+ is_non_polar_hydrogen
114
+ is_aromatic_noxide
115
+ is_chiral
116
+ is_axial
117
+ is_clockwise
118
+ is_anti_clockwise
119
+ is_positive_stereo
120
+ is_negative_stereo
121
+ has_chirality_specified
122
+ has_chiral_volume
123
+ is_hbond_acceptor
124
+ is_hbond_donor
125
+ is_hbond_donor_h
126
+ has_alpha_beta_unsat
127
+ has_bond_of_order
128
+ count_bonds_of_order
129
+ has_non_single_bond
130
+ has_single_bond
131
+ has_double_bond
132
+ has_aromatic_bond
133
+ matches_smarts
134
+ clear
135
+ do_transformations
136
+ get_title
137
+ set_title
138
+ has_data
139
+ delete_data
140
+ clone_data
141
+ data_size
142
+ get_all_data
143
+ get_data
144
+ begin_data
145
+ end_data
@@ -0,0 +1,867 @@
1
+ Visit=
2
+ Visit
3
+ set_idx
4
+ set_id
5
+ set_bo
6
+ set_bond_order
7
+ set_begin
8
+ set_end
9
+ set_parent
10
+ set_length
11
+ set
12
+ set_ksingle
13
+ set_kdouble
14
+ set_ktriple
15
+ set_aromatic
16
+ set_wedge
17
+ set_hash
18
+ set_wedge_or_hash
19
+ set_up
20
+ set_down
21
+ set_in_ring
22
+ set_closure
23
+ unset_hash
24
+ unset_wedge
25
+ unset_up
26
+ unset_down
27
+ unset_aromatic
28
+ unset_kekule
29
+ get_idx
30
+ get_id
31
+ get_bo
32
+ get_bond_order
33
+ get_flags
34
+ get_begin_atom_idx
35
+ get_end_atom_idx
36
+ get_begin_atom
37
+ get_end_atom
38
+ get_nbr_atom
39
+ get_parent
40
+ get_equib_length
41
+ get_length
42
+ get_nbr_atom_idx
43
+ find_smallest_ring
44
+ is_aromatic
45
+ is_in_ring
46
+ is_rotor
47
+ is_amide
48
+ is_primary_amide
49
+ is_secondary_amide
50
+ is_tertiary_amide
51
+ is_ester
52
+ is_carbonyl
53
+ is_single
54
+ is_double
55
+ is_triple
56
+ is_ksingle
57
+ is_kdouble
58
+ is_ktriple
59
+ is_closure
60
+ is_up
61
+ is_down
62
+ is_wedge
63
+ is_hash
64
+ is_wedge_or_hash
65
+ is_cis_or_trans
66
+ is_double_bond_geometry
67
+ clear
68
+ do_transformations
69
+ get_title
70
+ set_title
71
+ has_data
72
+ delete_data
73
+ clone_data
74
+ data_size
75
+ get_all_data
76
+ get_data
77
+ begin_data
78
+ end_data
79
+ Visit=
80
+ Visit
81
+ set_idx
82
+ set_id
83
+ set_bo
84
+ set_bond_order
85
+ set_begin
86
+ set_end
87
+ set_parent
88
+ set_length
89
+ set
90
+ set_ksingle
91
+ set_kdouble
92
+ set_ktriple
93
+ set_aromatic
94
+ set_wedge
95
+ set_hash
96
+ set_wedge_or_hash
97
+ set_up
98
+ set_down
99
+ set_in_ring
100
+ set_closure
101
+ unset_hash
102
+ unset_wedge
103
+ unset_up
104
+ unset_down
105
+ unset_aromatic
106
+ unset_kekule
107
+ get_idx
108
+ get_id
109
+ get_bo
110
+ get_bond_order
111
+ get_flags
112
+ get_begin_atom_idx
113
+ get_end_atom_idx
114
+ get_begin_atom
115
+ get_end_atom
116
+ get_nbr_atom
117
+ get_parent
118
+ get_equib_length
119
+ get_length
120
+ get_nbr_atom_idx
121
+ find_smallest_ring
122
+ is_aromatic
123
+ is_in_ring
124
+ is_rotor
125
+ is_amide
126
+ is_primary_amide
127
+ is_secondary_amide
128
+ is_tertiary_amide
129
+ is_ester
130
+ is_carbonyl
131
+ is_single
132
+ is_double
133
+ is_triple
134
+ is_ksingle
135
+ is_kdouble
136
+ is_ktriple
137
+ is_closure
138
+ is_up
139
+ is_down
140
+ is_wedge
141
+ is_hash
142
+ is_wedge_or_hash
143
+ is_cis_or_trans
144
+ is_double_bond_geometry
145
+ clear
146
+ do_transformations
147
+ get_title
148
+ set_title
149
+ has_data
150
+ delete_data
151
+ clone_data
152
+ data_size
153
+ get_all_data
154
+ get_data
155
+ begin_data
156
+ end_data
157
+ Visit=
158
+ Visit
159
+ set_idx
160
+ set_id
161
+ set_bo
162
+ set_bond_order
163
+ set_begin
164
+ set_end
165
+ set_parent
166
+ set_length
167
+ set
168
+ set_ksingle
169
+ set_kdouble
170
+ set_ktriple
171
+ set_aromatic
172
+ set_wedge
173
+ set_hash
174
+ set_wedge_or_hash
175
+ set_up
176
+ set_down
177
+ set_in_ring
178
+ set_closure
179
+ unset_hash
180
+ unset_wedge
181
+ unset_up
182
+ unset_down
183
+ unset_aromatic
184
+ unset_kekule
185
+ get_idx
186
+ get_id
187
+ get_bo
188
+ get_bond_order
189
+ get_flags
190
+ get_begin_atom_idx
191
+ get_end_atom_idx
192
+ get_begin_atom
193
+ get_end_atom
194
+ get_nbr_atom
195
+ get_parent
196
+ get_equib_length
197
+ get_length
198
+ get_nbr_atom_idx
199
+ find_smallest_ring
200
+ is_aromatic
201
+ is_in_ring
202
+ is_rotor
203
+ is_amide
204
+ is_primary_amide
205
+ is_secondary_amide
206
+ is_tertiary_amide
207
+ is_ester
208
+ is_carbonyl
209
+ is_single
210
+ is_double
211
+ is_triple
212
+ is_ksingle
213
+ is_kdouble
214
+ is_ktriple
215
+ is_closure
216
+ is_up
217
+ is_down
218
+ is_wedge
219
+ is_hash
220
+ is_wedge_or_hash
221
+ is_cis_or_trans
222
+ is_double_bond_geometry
223
+ clear
224
+ do_transformations
225
+ get_title
226
+ set_title
227
+ has_data
228
+ delete_data
229
+ clone_data
230
+ data_size
231
+ get_all_data
232
+ get_data
233
+ begin_data
234
+ end_data
235
+ Visit=
236
+ Visit
237
+ set_idx
238
+ set_id
239
+ set_bo
240
+ set_bond_order
241
+ set_begin
242
+ set_end
243
+ set_parent
244
+ set_length
245
+ set
246
+ set_ksingle
247
+ set_kdouble
248
+ set_ktriple
249
+ set_aromatic
250
+ set_wedge
251
+ set_hash
252
+ set_wedge_or_hash
253
+ set_up
254
+ set_down
255
+ set_in_ring
256
+ set_closure
257
+ unset_hash
258
+ unset_wedge
259
+ unset_up
260
+ unset_down
261
+ unset_aromatic
262
+ unset_kekule
263
+ get_idx
264
+ get_id
265
+ get_bo
266
+ get_bond_order
267
+ get_flags
268
+ get_begin_atom_idx
269
+ get_end_atom_idx
270
+ get_begin_atom
271
+ get_end_atom
272
+ get_nbr_atom
273
+ get_parent
274
+ get_equib_length
275
+ get_length
276
+ get_nbr_atom_idx
277
+ find_smallest_ring
278
+ is_aromatic
279
+ is_in_ring
280
+ is_rotor
281
+ is_amide
282
+ is_primary_amide
283
+ is_secondary_amide
284
+ is_tertiary_amide
285
+ is_ester
286
+ is_carbonyl
287
+ is_single
288
+ is_double
289
+ is_triple
290
+ is_ksingle
291
+ is_kdouble
292
+ is_ktriple
293
+ is_closure
294
+ is_up
295
+ is_down
296
+ is_wedge
297
+ is_hash
298
+ is_wedge_or_hash
299
+ is_cis_or_trans
300
+ is_double_bond_geometry
301
+ clear
302
+ do_transformations
303
+ get_title
304
+ set_title
305
+ has_data
306
+ delete_data
307
+ clone_data
308
+ data_size
309
+ get_all_data
310
+ get_data
311
+ begin_data
312
+ end_data
313
+ Visit=
314
+ Visit
315
+ set_idx
316
+ set_id
317
+ set_bo
318
+ set_bond_order
319
+ set_begin
320
+ set_end
321
+ set_parent
322
+ set_length
323
+ set
324
+ set_ksingle
325
+ set_kdouble
326
+ set_ktriple
327
+ set_aromatic
328
+ set_wedge
329
+ set_hash
330
+ set_wedge_or_hash
331
+ set_up
332
+ set_down
333
+ set_in_ring
334
+ set_closure
335
+ unset_hash
336
+ unset_wedge
337
+ unset_up
338
+ unset_down
339
+ unset_aromatic
340
+ unset_kekule
341
+ get_idx
342
+ get_id
343
+ get_bo
344
+ get_bond_order
345
+ get_flags
346
+ get_begin_atom_idx
347
+ get_end_atom_idx
348
+ get_begin_atom
349
+ get_end_atom
350
+ get_nbr_atom
351
+ get_parent
352
+ get_equib_length
353
+ get_length
354
+ get_nbr_atom_idx
355
+ find_smallest_ring
356
+ is_aromatic
357
+ is_in_ring
358
+ is_rotor
359
+ is_amide
360
+ is_primary_amide
361
+ is_secondary_amide
362
+ is_tertiary_amide
363
+ is_ester
364
+ is_carbonyl
365
+ is_single
366
+ is_double
367
+ is_triple
368
+ is_ksingle
369
+ is_kdouble
370
+ is_ktriple
371
+ is_closure
372
+ is_up
373
+ is_down
374
+ is_wedge
375
+ is_hash
376
+ is_wedge_or_hash
377
+ is_cis_or_trans
378
+ is_double_bond_geometry
379
+ clear
380
+ do_transformations
381
+ get_title
382
+ set_title
383
+ has_data
384
+ delete_data
385
+ clone_data
386
+ data_size
387
+ get_all_data
388
+ get_data
389
+ begin_data
390
+ end_data
391
+ Visit=
392
+ Visit
393
+ set_idx
394
+ set_id
395
+ set_bo
396
+ set_bond_order
397
+ set_begin
398
+ set_end
399
+ set_parent
400
+ set_length
401
+ set
402
+ set_ksingle
403
+ set_kdouble
404
+ set_ktriple
405
+ set_aromatic
406
+ set_wedge
407
+ set_hash
408
+ set_wedge_or_hash
409
+ set_up
410
+ set_down
411
+ set_in_ring
412
+ set_closure
413
+ unset_hash
414
+ unset_wedge
415
+ unset_up
416
+ unset_down
417
+ unset_aromatic
418
+ unset_kekule
419
+ get_idx
420
+ get_id
421
+ get_bo
422
+ get_bond_order
423
+ get_flags
424
+ get_begin_atom_idx
425
+ get_end_atom_idx
426
+ get_begin_atom
427
+ get_end_atom
428
+ get_nbr_atom
429
+ get_parent
430
+ get_equib_length
431
+ get_length
432
+ get_nbr_atom_idx
433
+ find_smallest_ring
434
+ is_aromatic
435
+ is_in_ring
436
+ is_rotor
437
+ is_amide
438
+ is_primary_amide
439
+ is_secondary_amide
440
+ is_tertiary_amide
441
+ is_ester
442
+ is_carbonyl
443
+ is_single
444
+ is_double
445
+ is_triple
446
+ is_ksingle
447
+ is_kdouble
448
+ is_ktriple
449
+ is_closure
450
+ is_up
451
+ is_down
452
+ is_wedge
453
+ is_hash
454
+ is_wedge_or_hash
455
+ is_cis_or_trans
456
+ is_double_bond_geometry
457
+ clear
458
+ do_transformations
459
+ get_title
460
+ set_title
461
+ has_data
462
+ delete_data
463
+ clone_data
464
+ data_size
465
+ get_all_data
466
+ get_data
467
+ begin_data
468
+ end_data
469
+ Visit=
470
+ Visit
471
+ set_idx
472
+ set_id
473
+ set_bo
474
+ set_bond_order
475
+ set_begin
476
+ set_end
477
+ set_parent
478
+ set_length
479
+ set
480
+ set_ksingle
481
+ set_kdouble
482
+ set_ktriple
483
+ set_aromatic
484
+ set_wedge
485
+ set_hash
486
+ set_wedge_or_hash
487
+ set_up
488
+ set_down
489
+ set_in_ring
490
+ set_closure
491
+ unset_hash
492
+ unset_wedge
493
+ unset_up
494
+ unset_down
495
+ unset_aromatic
496
+ unset_kekule
497
+ get_idx
498
+ get_id
499
+ get_bo
500
+ get_bond_order
501
+ get_flags
502
+ get_begin_atom_idx
503
+ get_end_atom_idx
504
+ get_begin_atom
505
+ get_end_atom
506
+ get_nbr_atom
507
+ get_parent
508
+ get_equib_length
509
+ get_length
510
+ get_nbr_atom_idx
511
+ find_smallest_ring
512
+ is_aromatic
513
+ is_in_ring
514
+ is_rotor
515
+ is_amide
516
+ is_primary_amide
517
+ is_secondary_amide
518
+ is_tertiary_amide
519
+ is_ester
520
+ is_carbonyl
521
+ is_single
522
+ is_double
523
+ is_triple
524
+ is_ksingle
525
+ is_kdouble
526
+ is_ktriple
527
+ is_closure
528
+ is_up
529
+ is_down
530
+ is_wedge
531
+ is_hash
532
+ is_wedge_or_hash
533
+ is_cis_or_trans
534
+ is_double_bond_geometry
535
+ clear
536
+ do_transformations
537
+ get_title
538
+ set_title
539
+ has_data
540
+ delete_data
541
+ clone_data
542
+ data_size
543
+ get_all_data
544
+ get_data
545
+ begin_data
546
+ end_data
547
+ Visit=
548
+ Visit
549
+ set_idx
550
+ set_id
551
+ set_bo
552
+ set_bond_order
553
+ set_begin
554
+ set_end
555
+ set_parent
556
+ set_length
557
+ set
558
+ set_ksingle
559
+ set_kdouble
560
+ set_ktriple
561
+ set_aromatic
562
+ set_wedge
563
+ set_hash
564
+ set_wedge_or_hash
565
+ set_up
566
+ set_down
567
+ set_in_ring
568
+ set_closure
569
+ unset_hash
570
+ unset_wedge
571
+ unset_up
572
+ unset_down
573
+ unset_aromatic
574
+ unset_kekule
575
+ get_idx
576
+ get_id
577
+ get_bo
578
+ get_bond_order
579
+ get_flags
580
+ get_begin_atom_idx
581
+ get_end_atom_idx
582
+ get_begin_atom
583
+ get_end_atom
584
+ get_nbr_atom
585
+ get_parent
586
+ get_equib_length
587
+ get_length
588
+ get_nbr_atom_idx
589
+ find_smallest_ring
590
+ is_aromatic
591
+ is_in_ring
592
+ is_rotor
593
+ is_amide
594
+ is_primary_amide
595
+ is_secondary_amide
596
+ is_tertiary_amide
597
+ is_ester
598
+ is_carbonyl
599
+ is_single
600
+ is_double
601
+ is_triple
602
+ is_ksingle
603
+ is_kdouble
604
+ is_ktriple
605
+ is_closure
606
+ is_up
607
+ is_down
608
+ is_wedge
609
+ is_hash
610
+ is_wedge_or_hash
611
+ is_cis_or_trans
612
+ is_double_bond_geometry
613
+ clear
614
+ do_transformations
615
+ get_title
616
+ set_title
617
+ has_data
618
+ delete_data
619
+ clone_data
620
+ data_size
621
+ get_all_data
622
+ get_data
623
+ begin_data
624
+ end_data
625
+ Visit=
626
+ Visit
627
+ set_idx
628
+ set_id
629
+ set_bo
630
+ set_bond_order
631
+ set_begin
632
+ set_end
633
+ set_parent
634
+ set_length
635
+ set
636
+ set_ksingle
637
+ set_kdouble
638
+ set_ktriple
639
+ set_aromatic
640
+ set_wedge
641
+ set_hash
642
+ set_wedge_or_hash
643
+ set_up
644
+ set_down
645
+ set_in_ring
646
+ set_closure
647
+ unset_hash
648
+ unset_wedge
649
+ unset_up
650
+ unset_down
651
+ unset_aromatic
652
+ unset_kekule
653
+ get_idx
654
+ get_id
655
+ get_bo
656
+ get_bond_order
657
+ get_flags
658
+ get_begin_atom_idx
659
+ get_end_atom_idx
660
+ get_begin_atom
661
+ get_end_atom
662
+ get_nbr_atom
663
+ get_parent
664
+ get_equib_length
665
+ get_length
666
+ get_nbr_atom_idx
667
+ find_smallest_ring
668
+ is_aromatic
669
+ is_in_ring
670
+ is_rotor
671
+ is_amide
672
+ is_primary_amide
673
+ is_secondary_amide
674
+ is_tertiary_amide
675
+ is_ester
676
+ is_carbonyl
677
+ is_single
678
+ is_double
679
+ is_triple
680
+ is_ksingle
681
+ is_kdouble
682
+ is_ktriple
683
+ is_closure
684
+ is_up
685
+ is_down
686
+ is_wedge
687
+ is_hash
688
+ is_wedge_or_hash
689
+ is_cis_or_trans
690
+ is_double_bond_geometry
691
+ clear
692
+ do_transformations
693
+ get_title
694
+ set_title
695
+ has_data
696
+ delete_data
697
+ clone_data
698
+ data_size
699
+ get_all_data
700
+ get_data
701
+ begin_data
702
+ end_data
703
+ Visit=
704
+ Visit
705
+ set_idx
706
+ set_id
707
+ set_bo
708
+ set_bond_order
709
+ set_begin
710
+ set_end
711
+ set_parent
712
+ set_length
713
+ set
714
+ set_ksingle
715
+ set_kdouble
716
+ set_ktriple
717
+ set_aromatic
718
+ set_wedge
719
+ set_hash
720
+ set_wedge_or_hash
721
+ set_up
722
+ set_down
723
+ set_in_ring
724
+ set_closure
725
+ unset_hash
726
+ unset_wedge
727
+ unset_up
728
+ unset_down
729
+ unset_aromatic
730
+ unset_kekule
731
+ get_idx
732
+ get_id
733
+ get_bo
734
+ get_bond_order
735
+ get_flags
736
+ get_begin_atom_idx
737
+ get_end_atom_idx
738
+ get_begin_atom
739
+ get_end_atom
740
+ get_nbr_atom
741
+ get_parent
742
+ get_equib_length
743
+ get_length
744
+ get_nbr_atom_idx
745
+ find_smallest_ring
746
+ is_aromatic
747
+ is_in_ring
748
+ is_rotor
749
+ is_amide
750
+ is_primary_amide
751
+ is_secondary_amide
752
+ is_tertiary_amide
753
+ is_ester
754
+ is_carbonyl
755
+ is_single
756
+ is_double
757
+ is_triple
758
+ is_ksingle
759
+ is_kdouble
760
+ is_ktriple
761
+ is_closure
762
+ is_up
763
+ is_down
764
+ is_wedge
765
+ is_hash
766
+ is_wedge_or_hash
767
+ is_cis_or_trans
768
+ is_double_bond_geometry
769
+ clear
770
+ do_transformations
771
+ get_title
772
+ set_title
773
+ has_data
774
+ delete_data
775
+ clone_data
776
+ data_size
777
+ get_all_data
778
+ get_data
779
+ begin_data
780
+ end_data
781
+ Visit=
782
+ Visit
783
+ set_idx
784
+ set_id
785
+ set_bo
786
+ set_bond_order
787
+ set_begin
788
+ set_end
789
+ set_parent
790
+ set_length
791
+ set
792
+ set_ksingle
793
+ set_kdouble
794
+ set_ktriple
795
+ set_aromatic
796
+ set_wedge
797
+ set_hash
798
+ set_wedge_or_hash
799
+ set_up
800
+ set_down
801
+ set_in_ring
802
+ set_closure
803
+ unset_hash
804
+ unset_wedge
805
+ unset_up
806
+ unset_down
807
+ unset_aromatic
808
+ unset_kekule
809
+ get_idx
810
+ get_id
811
+ get_bo
812
+ get_bond_order
813
+ get_flags
814
+ get_begin_atom_idx
815
+ get_end_atom_idx
816
+ get_begin_atom
817
+ get_end_atom
818
+ get_nbr_atom
819
+ get_parent
820
+ get_equib_length
821
+ get_length
822
+ get_nbr_atom_idx
823
+ find_smallest_ring
824
+ is_aromatic
825
+ is_in_ring
826
+ is_rotor
827
+ is_amide
828
+ is_primary_amide
829
+ is_secondary_amide
830
+ is_tertiary_amide
831
+ is_ester
832
+ is_carbonyl
833
+ is_single
834
+ is_double
835
+ is_triple
836
+ is_ksingle
837
+ is_kdouble
838
+ is_ktriple
839
+ is_closure
840
+ is_up
841
+ is_down
842
+ is_wedge
843
+ is_hash
844
+ is_wedge_or_hash
845
+ is_cis_or_trans
846
+ is_double_bond_geometry
847
+ clear
848
+ do_transformations
849
+ get_title
850
+ set_title
851
+ has_data
852
+ delete_data
853
+ clone_data
854
+ data_size
855
+ get_all_data
856
+ get_data
857
+ begin_data
858
+ end_data
859
+ to_i
860
+ to_f
861
+ to_a
862
+ &
863
+ |
864
+ ^
865
+ to_r
866
+ rationalize
867
+ to_c