3 require 'Maasha/biopieces'
6 options = GetoptLong.new(
7 [ '--help', '-?', GetoptLong::NO_ARGUMENT ],
8 [ '--stream_in', '-I', GetoptLong::REQUIRED_ARGUMENT ],
9 [ '--stream_out', '-O', GetoptLong::REQUIRED_ARGUMENT ],
10 [ '--verbose', '-v', GetoptLong::NO_ARGUMENT ]
13 if ARGV.length == 0 then
14 biopiece = $0.split( "/" ).last
15 exec "print_wiki --data_in #{ ENV[ 'BP_DIR' ] }/bp_usage/#{ biopiece }.wiki"
18 options.each do | opt, arg |
19 puts "option: #{ opt } argument: #{ arg }"
23 biopiece = $0.split( "/" ).last
24 exec "print_wiki --data_in #{ ENV[ 'BP_DIR' ] }/bp_usage/#{ biopiece }.wiki --help"
27 stream = File.open( arg )
31 puts "blababnlbalbalbalbalab"
35 bp_stream = BioPieces.new( "test.stream" )
37 puts bp_stream.record_get