Module: Mspire::Ident::ProteinLike
- Included in:
- Protein
- Defined in:
- lib/mspire/ident/protein.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
a description of the protein.
-
#id ⇒ Object
an id for the protein.
-
#sequence ⇒ Object
(also: #seq)
the protein sequence.
Instance Method Summary collapse
-
#gene_id ⇒ Object
if the GN=(+) regexp is found in the description, returns the first match, or nil if not found.
Instance Attribute Details
#description ⇒ Object
a description of the protein
15 16 17 |
# File 'lib/mspire/ident/protein.rb', line 15 def description @description end |
#id ⇒ Object
an id for the protein
7 8 9 |
# File 'lib/mspire/ident/protein.rb', line 7 def id @id end |
#sequence ⇒ Object Also known as: seq
the protein sequence
10 11 12 |
# File 'lib/mspire/ident/protein.rb', line 10 def sequence @sequence end |
Instance Method Details
#gene_id ⇒ Object
if the GN=(+) regexp is found in the description, returns the first match, or nil if not found
19 20 21 |
# File 'lib/mspire/ident/protein.rb', line 19 def gene_id description.andand[/ GN=(\w+) ?/, 1] end |