[BioRuby] trouble on the FASTA.QUAL format (Bio::FastaNumericFormat)

MISHIMA, Hiroyuki missy at be.to
Wed Jan 20 09:17:50 UTC 2010


Hi all,

I am using BioRuby 1.4.0., and have a trouble in handling the FASTA.QUAL
format using Bio::FastaNumericFormat.

Please see the following code:
========================
require 'rubygems'
require 'bio'

FASTA_QUAL =<<'EOS'
>SAMPLE1
30 30 29 42
EOS

qual = Bio::FastaNumericFormat.new(FASTA_QUAL)
bs = qual.to_biosequence
puts bs.output(:raw)
=========================

The last line raise an error:

=========================
(eval):2:in `__get__seq': undefined method `seq' for 
#<Bio::FastaNumericFormat:0x2b182810ceb0> (NoMethodError)
         from (eval):4:in `seq'
         from 
/home/misshie/.gem/ruby/1.8/gems/bio-1.4.0/lib/bio/sequence/format_raw.rb:19:in 
`output'
         from 
/home/misshie/.gem/ruby/1.8/gems/bio-1.4.0/lib/bio/sequence/format.rb:97:in 
`output'
         from 
/home/misshie/.gem/ruby/1.8/gems/bio-1.4.0/lib/bio/sequence/format.rb:172:in 
`output'
         from fasta_numeric_format.rb:11
=========================

In the last line, using :fasta, :fasta_numeric etc. make same results.

Please let me know if you have ideas to solve this problem.

Hiro.
-- 
MISHIMA, Hiroyuki, DDS, Ph.D.
COE Research Fellow
Department of Human Genetics
Nagasaki University Graduate School of Biomedical Sciences



More information about the BioRuby mailing list