Class: Ensembl::Variation::PhenotypeFeature
- Inherits:
-
ModelBase
- Object
- ActiveRecord::Base
- ConnectionPooledBase
- Connection
- ModelBase
- Ensembl::Variation::PhenotypeFeature
- Defined in:
- lib/ensembl/variation/activerecord.rb
Instance Method Summary collapse
- #description ⇒ Object
- #odds_ratio ⇒ Object
- #p_value ⇒ Object
-
#risk_allele ⇒ Object
def variation Variation.find_by name: object_id end.
Methods included from PrimaryKeyOverrides
Methods included from TableNameOverrides
Methods inherited from ConnectionPooledBase
Instance Method Details
#description ⇒ Object
268 269 270 |
# File 'lib/ensembl/variation/activerecord.rb', line 268 def description phenotype.description end |
#odds_ratio ⇒ Object
263 264 265 266 |
# File 'lib/ensembl/variation/activerecord.rb', line 263 def odds_ratio pf=phenotype_feature_attribs.odds_ratios.first pf.value unless pf.nil? end |
#p_value ⇒ Object
258 259 260 261 |
# File 'lib/ensembl/variation/activerecord.rb', line 258 def p_value pf=phenotype_feature_attribs.p_values.first pf.value unless pf.nil? end |
#risk_allele ⇒ Object
253 254 255 256 |
# File 'lib/ensembl/variation/activerecord.rb', line 253 def risk_allele pf=phenotype_feature_attribs.risk_alleles.first pf.value unless pf.nil? end |