Method: Bio::Sim4#query
- Defined in:
- lib/bio/appl/sim4.rb
#query(seq1) ⇒ Object
Executes the sim4 program. seq1 shall be a Bio::Sequence object. Returns a Bio::Sim4::Report object.
79 80 81 82 83 84 85 86 |
# File 'lib/bio/appl/sim4.rb', line 79 def query(seq1) tf = Tempfile.open('sim4') tf.print seq1.to_fasta('seq1', 70) tf.close(false) r = exec_local(tf.path) tf.close(true) r end |