| Class | Ensembl::Core::Marker |
| In: |
lib/ensembl/core/activerecord.rb
|
| Parent: | CoreDBConnection |
The Marker class provides an interface to the marker table. This table contains primer sequences and PCR product lengths.
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.
marker = Marker.find(52194) puts marker.left_primer puts marker.right_primer puts marker.min_primer_dist.to_s
The Marker#find_all_by_name class method returns all markers with this name. If no marker is found, it returns an empty array.
| Arguments: | name |
| Returns: | empty array or array of Marker objects |
The Marker#find_by_name class method returns one marker with this name.
| Arguments: | name |
| Returns: | Marker object or nil |
The Marker#name method returns a comma-separated list of synonyms of this marker
marker = Marker.find(1) puts marker.name --> 58017,D29149