Hallo,
I installed Bioruby with
jruby setup.rb.
then I run this script with jruby
--------------
#!/usr/bin/env jruby
require 'bio'
# creating a Bio::Sequence::NA object containing ambiguous alphabets
ambiguous_seq = Bio::Sequence::NA.new("atgcyrwskmbdhvn")
# show the contents and class of the DNA sequence object
p ambiguous_seq # => "atgcyrwskmbdhvn"
p ambiguous_seq.class # => Bio::Sequence::NA
# convert the sequence to a Regexp object
p ambiguous_seq.to_re # =>
/atgc[tc][ag][at][gc][tg][ac][tgc][atg][atc][agc][atgc]/
p ambiguous_seq.to_re.class # => Regexp
# example to match an ambiguous sequence to the rigid sequence
att_or_atc = Bio::Sequence::NA.new("aty").to_re
puts "match" if att_or_atc.match(Bio::Sequence::NA.new("att"))
if Bio::Sequence::NA.new("atc") =~ att_or_atc
puts "also match"
end
--------------
without any problems.
After this I run it with Java and I have got following problem:
jrubyc s01.rb an then java -cp /home/mitlox/jruby-1.4.0/lib/jruby.jar:.
s01
Exception in thread "main" s01.rb:3:in `require': no such file to load
-- bio (LoadError)
from s01.rb:3
...internal jruby stack elided...
from Kernel.require(s01.rb:3)
from (unknown).(unknown)(:1)
What did I wrong?
Best regards,
on 2010-02-05 23:55
on 2010-02-08 12:25
On Fri, Feb 5, 2010 at 23:55, Fla As <lists@ruby-forum.com> wrote: > > p ambiguous_seq.to_re.class # => Regexp > > > > > I've just installed bioruby as gem and it works adding require 'rubygems' at top. Both, plain .rb and compiled to .class --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 2010-02-09 13:31
gem compiles Bioruby to class if yes how can I get a jar file of Bioruby? Jesús GarcÃa Sáez wrote: > On Fri, Feb 5, 2010 at 23:55, Fla As <lists@ruby-forum.com> wrote: >> >> p ambiguous_seq.to_re.class �# => Regexp >> >> >> >> >> > > I've just installed bioruby as gem and it works adding require > 'rubygems' at top. Both, plain .rb and compiled to .class > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email
on 2010-02-09 13:45
Do: jar -cf bioruby.jar bioruby.class Then you can include bioruby.jar (which holds any other classes as well) in your jruby project To update the jar file jar -uf bioruby.jar bioruby.class otherthings.class .. On Tue, Feb 9, 2010 at 1:31 PM, Fla As <lists@ruby-forum.com> wrote: >>> >> Â Â http://xircles.codehaus.org/manage_email > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 2010-03-01 13:55
I did: gem install bio but in /jruby-1.4.0/lib/ruby/gems/1.8/gems/bio-1.4.0/lib/bio/ are only rb files and not class files. Where can I find bioruby.class and does this class file contain the complete bioruby? Maarten Mortier wrote: > Do: > > jar -cf bioruby.jar bioruby.class > > Then you can include bioruby.jar (which holds any other classes as > well) in your jruby project > > To update the jar file > > jar -uf bioruby.jar bioruby.class otherthings.class ..
on 2010-03-02 19:41
On Mon, Mar 1, 2010 at 6:55 AM, Fla As <lists@ruby-forum.com> wrote: > I did: > gem install bio > but in /jruby-1.4.0/lib/ruby/gems/1.8/gems/bio-1.4.0/lib/bio/ are only > rb files and not class files. > > Where can I find bioruby.class and does this class file contain the > complete bioruby? Do you need it in .class form? Generally Ruby applications ship in source form. Perhaps you can tell us what you're trying to accomplish? - Charlie --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
on 2010-03-03 13:40
Maybe class files could be faster than rb files and therefore I have tried to use class files. Charles Nutter wrote: > On Mon, Mar 1, 2010 at 6:55 AM, Fla As <lists@ruby-forum.com> wrote: > > Perhaps you can tell us what you're trying to accomplish? > > - Charlie
on 2010-03-03 14:48
In JRuby, whether you run from .class files or .rb files, your application code will eventually run as JVM bytecode. There's no need to compile to .class files to get better performance from JRuby. On Wed, Mar 3, 2010 at 6:40 AM, Fla As <lists@ruby-forum.com> wrote: > Maybe class files could be faster than rb files and therefore I have > tried to use class files. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.