module Mspire::Ident::ProteinLike

Attributes

description[RW]

a description of the protein

id[RW]

an id for the protein

seq[RW]

the protein sequence

seq=[RW]

the protein sequence

sequence[RW]

the protein sequence

Public Instance Methods

gene_id() click to toggle source

if the GN=(+) regexp is found in the description, returns the first match, or nil if not found

# File lib/mspire/ident/protein.rb, line 19
def gene_id
  description.andand[/ GN=(\w+) ?/, 1]
end