Method: Bio::GCG::Seq#seq
- Defined in:
- lib/bio/appl/gcg/seq.rb
#seq ⇒ Object
Sequence data. The class of the sequence is Bio::Sequence::NA, Bio::Sequence::AA or Bio::Sequence::Generic, according to the sequence type.
88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/bio/appl/gcg/seq.rb', line 88 def seq unless @seq then case @seq_type when 'N', 'n' k = Bio::Sequence::NA when 'P', 'p' k = Bio::Sequence::AA else k = Bio::Sequence end @seq = k.new(@data.tr('^-a-zA-Z.~', '')) end @seq end |