lib/ms/ident/protein.rb in mspire-0.6.2 vs lib/ms/ident/protein.rb in mspire-0.6.6

- old
+ new

@@ -9,16 +9,16 @@ # the protein sequence attr_accessor :sequence alias_method :seq, :sequence alias_method :seq=, :sequence= - # a description of the protein - attr_accessor :description + # a description of the protein + attr_accessor :description # if the GN=([^\s]+) regexp is found in the description, returns the first # match, or nil if not found def gene_id - description.andand.match(/ GN=(\w+) ?/)[1] + description.andand[/ GN=(\w+) ?/, 1] end end # a generic protein class that is ProteinLike class Protein