Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed indent

  • Loading branch information...
commit 1da690ac42bf1e0ca7fcdd765cf4c169185bd584 1 parent 84c2303
Mitsuteru Nakao authored

Showing 1 changed file with 49 additions and 49 deletions. Show diff stats Hide diff stats

  1. +49 49 lib/bio-chembl/chembldb.rb
98 lib/bio-chembl/chembldb.rb
@@ -64,9 +64,9 @@ class Activity < ActiveRecord::Base
64 64 belongs_to :assay
65 65 belongs_to :doc
66 66 belongs_to :record,
67   - :class_name => :CompoundRecord, :foreign_key => :record_id
  67 + :class_name => :CompoundRecord, :foreign_key => :record_id
68 68 belongs_to :molecule,
69   - :class_name => :Molecule, :foreign_key => :molregno
  69 + :class_name => :Molecule, :foreign_key => :molregno
70 70
71 71 end
72 72
@@ -77,8 +77,8 @@ class AssayType < ActiveRecord::Base
77 77 attr_accessible :assay_type,
78 78 :assay_desc
79 79
80   - has_many :assays,
81   - :foreign_key => :assay_type
  80 + has_many :assays,
  81 + :foreign_key => :assay_type
82 82 end
83 83
84 84
@@ -97,21 +97,21 @@ class Assay < ActiveRecord::Base
97 97 :assay_strain
98 98
99 99 belongs_to :assay_type_,
100   - :class_name => 'AssayType', :foreign_key => :assay_type
  100 + :class_name => 'AssayType', :foreign_key => :assay_type
101 101 belongs_to :doc
102 102 belongs_to :src,
103   - :class_name => 'Source'
  103 + :class_name => 'Source'
104 104 belongs_to :chembl_id_lookup,
105   - :class_name => 'ChemblIdLookup', :foreign_key => :chembl_id
  105 + :class_name => 'ChemblIdLookup', :foreign_key => :chembl_id
106 106 belongs_to :assay_tax,
107   - :foreign_key => :assay_tax_id, :class_name => 'OrganismClass', :primary_key => :tax_id
  107 + :foreign_key => :assay_tax_id, :class_name => 'OrganismClass', :primary_key => :tax_id
108 108
109 109 has_many :activities
110 110
111 111 # assays.assay_id = assay2taret.assay_id AND assay2target.tid = target_dictionary.tid
112 112 has_and_belongs_to_many :targets,
113   - :join_table => :assay2target,
114   - :class_name => 'Target', :association_foreign_key => :tid
  113 + :join_table => :assay2target,
  114 + :class_name => 'Target', :association_foreign_key => :tid
115 115 end
116 116
117 117
@@ -128,13 +128,13 @@ class Assay2target < ActiveRecord::Base
128 128
129 129 belongs_to :assay
130 130 belongs_to :target,
131   - :class_name => 'Target', :foreign_key => :tid
132   - belongs_to :relationship_type_,
133   - :class_name => 'RelationshipType', :foreign_key => :relationship_type
134   - belongs_to :confidence_score_lookup_,
135   - :class_name => 'ConfidenceScoreLookup', :foreign_key => :confidence_score
136   - belongs_to :curation_lookup,
137   - :foreign_key => :curated_by
  131 + :class_name => 'Target', :foreign_key => :tid
  132 + belongs_to :relationship_type_,
  133 + :class_name => 'RelationshipType', :foreign_key => :relationship_type
  134 + belongs_to :confidence_score_lookup_,
  135 + :class_name => 'ConfidenceScoreLookup', :foreign_key => :confidence_score
  136 + belongs_to :curation_lookup,
  137 + :foreign_key => :curated_by
138 138 end
139 139
140 140
@@ -154,8 +154,8 @@ class AtcClassification < ActiveRecord::Base
154 154 :level4_description
155 155
156 156 has_many :defined_daily_dose,
157   - :foreign_key => :atc_code,
158   - :class_name => 'DefinedDailyDose',:primary_key => :level5
  157 + :foreign_key => :atc_code,
  158 + :class_name => 'DefinedDailyDose',:primary_key => :level5
159 159 end
160 160
161 161
@@ -168,17 +168,17 @@ class ChemblIdLookup < ActiveRecord::Base
168 168 :status
169 169
170 170 has_one :assay,
171   - :primary_key => :entity_id,
172   - :class_name => 'Assay' , :foreign_key => :assay_id
  171 + :primary_key => :entity_id,
  172 + :class_name => 'Assay' , :foreign_key => :assay_id
173 173 has_one :target,
174   - :primary_key => :entity_id,
175   - :class_name => 'Target', :foreign_key => :tid
  174 + :primary_key => :entity_id,
  175 + :class_name => 'Target', :foreign_key => :tid
176 176 has_one :compound,
177   - :primary_key => :entity_id,
178   - :class_name => 'Molecule', :foreign_key => :molregno
  177 + :primary_key => :entity_id,
  178 + :class_name => 'Molecule', :foreign_key => :molregno
179 179 has_one :document,
180   - :primary_key => :entity_id,
181   - :class_name => 'Doc', :foreign_key => :doc_id
  180 + :primary_key => :entity_id,
  181 + :class_name => 'Doc', :foreign_key => :doc_id
182 182
183 183 def entity
184 184 # eval entity_type.downcase
@@ -216,7 +216,7 @@ class CompoundProperty < ActiveRecord::Base
216 216 :full_mwt
217 217
218 218 belongs_to :molecule,
219   - :class_name => 'Molecule', :foreign_key => :molregno
  219 + :class_name => 'Molecule', :foreign_key => :molregno
220 220 end
221 221
222 222
@@ -251,7 +251,7 @@ class CompoundStructure < ActiveRecord::Base
251 251 :molformula
252 252
253 253 belongs_to :molecule,
254   - :class_name => 'Molecule', :foreign_key => :molregno
  254 + :class_name => 'Molecule', :foreign_key => :molregno
255 255 end
256 256
257 257
@@ -263,7 +263,7 @@ class ConfidenceScoreLookup < ActiveRecord::Base
263 263 :target_mapping
264 264
265 265 belongs_to :assay2target,
266   - :class_name => 'Assay2target', :foreign_key => :confidence_score
  266 + :class_name => 'Assay2target', :foreign_key => :confidence_score
267 267 end
268 268
269 269
@@ -274,7 +274,7 @@ class CurationLookup < ActiveRecord::Base
274 274 :decription
275 275
276 276 has_many :assay2targets,
277   - :class_name => 'Assay2target', :foreign_key => :curated_by
  277 + :class_name => 'Assay2target', :foreign_key => :curated_by
278 278 end
279 279
280 280
@@ -289,8 +289,8 @@ class DefinedDailyDose < ActiveRecord::Base
289 289 :ddd_id
290 290
291 291 belongs_to :atc_classification,
292   - :foreign_key => :atc_code,
293   - :class_name => 'AtcClassification', :primary_key => :level5
  292 + :foreign_key => :atc_code,
  293 + :class_name => 'AtcClassification', :primary_key => :level5
294 294 end
295 295
296 296
@@ -309,12 +309,12 @@ class Doc < ActiveRecord::Base
309 309 :doc_type
310 310
311 311 belongs_to :chembl_id_lookup,
312   - :class_name => 'ChemblIdLookup', :foreign_key => :chembl_id
  312 + :class_name => 'ChemblIdLookup', :foreign_key => :chembl_id
313 313
314   - has_many :assays,
315   - :class_name => 'Assay'
316   - has_many :compound_records,
317   - :class_name => 'CompoundRecord'
  314 + has_many :assays,
  315 + :class_name => 'Assay'
  316 + has_many :compound_records,
  317 + :class_name => 'CompoundRecord'
318 318 end
319 319
320 320
@@ -327,8 +327,8 @@ class Formulation < ActiveRecord::Base
327 327 :molregno
328 328
329 329 belongs_to :product
330   - belongs_to :molecule,
331   - :class_name => 'Molecule', :foreign_key => :molregno
  330 + belongs_to :molecule,
  331 + :class_name => 'Molecule', :foreign_key => :molregno
332 332 end
333 333
334 334
@@ -393,12 +393,12 @@ class MoleculeHierarchy < ActiveRecord::Base
393 393 :parent_molregno,
394 394 :active_molregno
395 395
396   - belongs_to :molecule,
397   - :class_name => 'Molecule', :foreign_key => :molregno
  396 + belongs_to :molecule,
  397 + :class_name => 'Molecule', :foreign_key => :molregno
398 398 belongs_to :parent,
399   - :class_name => 'Molecule', :foreign_key => :parent_molregno
400   - belongs_to :active,
401   - :class_name => 'Molecule', :foreign_key => :active_molregno
  399 + :class_name => 'Molecule', :foreign_key => :parent_molregno
  400 + belongs_to :active,
  401 + :class_name => 'Molecule', :foreign_key => :active_molregno
402 402 end
403 403
404 404
@@ -411,7 +411,7 @@ class MoleculeSynonym < ActiveRecord::Base
411 411 :research_stem
412 412
413 413 belongs_to :molecule,
414   - :class_name => 'Molecule', :foreign_key => :molregno
  414 + :class_name => 'Molecule', :foreign_key => :molregno
415 415 has_many :research_codes,
416 416 :class_name => 'ResearchCode', :primary_key => :research_stem, :foreign_key => :stem
417 417 end
@@ -561,9 +561,9 @@ class Target < ActiveRecord::Base
561 561 :class_name => 'TargetClass', :foreign_key => :tid
562 562
563 563 # assays.assay_id = assay2taret.assay_id AND assay2target.tid = target_dictionary.tid
564   - has_and_belongs_to_many :assays,
565   - :join_table => :assay2target, :foreign_key => :tid,
566   - :class_name => 'Assay', :association_foreign_key => :assay_id
  564 + has_and_belongs_to_many :assays,
  565 + :join_table => :assay2target, :foreign_key => :tid,
  566 + :class_name => 'Assay', :association_foreign_key => :assay_id
567 567 end
568 568
569 569

0 comments on commit 1da690a

Please sign in to comment.
Something went wrong with that request. Please try again.