Module: Mspire::Ident::ProteinLike

Included in:
Protein
Defined in:
lib/mspire/ident/protein.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

a description of the protein



15
16
17
# File 'lib/mspire/ident/protein.rb', line 15

def description
  @description
end

#idObject

an id for the protein



7
8
9
# File 'lib/mspire/ident/protein.rb', line 7

def id
  @id
end

#sequenceObject 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_idObject

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