Method: Bio::Sequence#initialize
- Defined in:
- lib/bio/sequence.rb
#initialize(str) ⇒ Sequence
Create a new Bio::Sequence object
s = Bio::Sequence.new('atgc')
puts s #=> 'atgc'
Note that this method does not intialize the contained sequence as any kind of bioruby object, only as a simple string
puts s.seq.class #=> String
See Bio::Sequence#na, Bio::Sequence#aa, and Bio::Sequence#auto for methods to transform the basic String of a just created Bio::Sequence object to a proper bioruby object
Arguments:
-
(required) str: String or Bio::Sequence::NA/AA object
- Returns
-
Bio::Sequence object
99 100 101 |
# File 'lib/bio/sequence.rb', line 99 def initialize(str) @seq = str end |