Class: Bio::GFFbrowser::FastaWriter
- Inherits:
-
Object
- Object
- Bio::GFFbrowser::FastaWriter
- Defined in:
- lib/bio/output/gfffastawriter.rb
Instance Method Summary collapse
-
#initialize(translate, validate) ⇒ FastaWriter
constructor
A new instance of FastaWriter.
- #put(id, seq) ⇒ Object
Constructor Details
#initialize(translate, validate) ⇒ FastaWriter
Returns a new instance of FastaWriter.
6 7 8 9 |
# File 'lib/bio/output/gfffastawriter.rb', line 6 def initialize translate, validate @do_translate = translate @do_validate = validate end |
Instance Method Details
#put(id, seq) ⇒ Object
11 12 13 14 |
# File 'lib/bio/output/gfffastawriter.rb', line 11 def put id, seq puts '>'+id put_seq id, seq end |