Class Ensembl::Core::MiscFeature
In: lib/ensembl/core/activerecord.rb
Parent: DBConnection


The MiscFeature class provides an interface to the misc_feature table. The actual type of feature is stored in the MiscSet class.

This class uses ActiveRecord to access data in the Ensembl database. See the general documentation of the Ensembl module for more information on what this means and what methods are available.

This class includes the mixin Sliceable, which means that it is mapped to a SeqRegion object and a Slice can be created for objects of this class. See Sliceable and Slice for more information.




Included Modules


External Aliases

misc_attribs -> attribs

Public Class methods


     # File lib/ensembl/core/activerecord.rb, line 947
947:       def self.find_all_by_attrib_type_value(code, value)
948:         code_id = AttribType.find_by_code(code)
949:         misc_attribs = MiscAttrib.find_all_by_attrib_type_id_and_value(code_id, value)
950:         answers =
951:         misc_attribs.each do |ma|
952:           answers.push(MiscFeature.find_all_by_misc_feature_id(ma.misc_feature_id))
953:         end
954:         answers.flatten!
955:         return answers
956:       end


     # File lib/ensembl/core/activerecord.rb, line 943
943:       def self.find_by_attrib_type_value(code, value)
944:         return self.find_all_by_attrib_type_value(code, value)[0]
945:       end