ruby - Performing a BLAST search with BioRuby -
i attempting perform blast search using bioruby on windows xp machine ruby 1.9.3 , bioruby 1.4.3_0001. have installed necessary dependencies, e.g., cairo, output follows:
c:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `r equire': cannot load such file -- cairo.so (loaderror) c:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_requir e.rb:45:in `require' c:/ruby193/lib/ruby/gems/1.9.1/gems/cairo-1.12.6-x86-mingw32/lib/ca iro.rb:46:in `rescue in <top (required)>' c:/ruby193/lib/ruby/gems/1.9.1/gems/cairo-1.12.6-x86-mingw32/lib/ca iro.rb:42:in `<top (required)>' c:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_requir e.rb:110:in `require' c:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_requir e.rb:110:in `rescue in require' c:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_requir e.rb:35:in `require' c:/ruby193/lib/ruby/gems/1.9.1/gems/bio-graphics-1.4/lib/bio-graphi cs.rb:11:in `<top (required)>' c:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_requir e.rb:110:in `require' c:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_requir e.rb:110:in `rescue in require' c:/ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_requir e.rb:35:in `require' bio283.rb:2:in `<main>'
the sample code using follows:
require 'bio' require 'bio-graphics' remote_blast_factory = bio::blast.remote('blastp', 'swissprot', '-e 0.0001', 'genomenet') seq = bio::sequence::aa.new('mfrtkrsalvrrlwrsrapggedeeegagggggggelrge') # run actual blast querying factory report = remote_blast_factory.query(seq) # then, parse report, see bio::blast::report report.each |hit| puts hit.evalue # e-value puts hit.sw # smith-waterman score (*) puts hit.identity # % identity puts hit.overlap # length of overlapping region puts hit.query_id # identifier of query sequence puts hit.query_def # definition(comment line) of query sequence puts hit.query_len # length of query sequence puts hit.query_seq # sequence of homologous region puts hit.target_id # identifier of hit sequence puts hit.target_def # definition(comment line) of hit sequence puts hit.target_len # length of hit sequence puts hit.target_seq # hit of homologous region of hit sequence puts hit.query_start # start position of homologous # region in query sequence puts hit.query_end # end position of homologous region # in query sequence puts hit.target_start # start position of homologous region # in hit(target) sequence puts hit.target_end # end position of homologous region # in hit(target) sequence puts hit.lap_at # array of above 4 numbers end
could explain why problem occurring? noticed file name 'cairo.so' in output. relate linux/unix op. sys?
thanks,
caitlin
one of libraries installed depends on cairo. have install it. .so extension ruby library written in c, used in unix. in windows, need corresponding .dll file installed.
Comments
Post a Comment