X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Ffind_adaptor;h=c4df418f571556bf663c89cf3ab0f23f2f6074b5;hb=a30677c14f1738f6a76e8c12f2e732cdef9958d6;hp=f2f593d1ce90f11087b04ca9d2abc8a58a40b264;hpb=545eed9d7927e2c59a7c7d3c919aa8d8bed18c86;p=biopieces.git diff --git a/bp_bin/find_adaptor b/bp_bin/find_adaptor index f2f593d..c4df418 100755 --- a/bp_bin/find_adaptor +++ b/bp_bin/find_adaptor @@ -53,11 +53,11 @@ casts << {:long=>'deletions', :short=>'d', :type=>'uint', :mandatory=>false, options = Biopieces.options_parse(ARGV, casts) if options[:forward_rc] - options[:forward] = Seq.new("test", options[:forward_rc], :dna).reverse.complement.seq + options[:forward] = Seq.new(seq: options[:forward_rc], type: :dna).reverse.complement.seq end if options[:reverse_rc] - options[:reverse] = Seq.new("test", options[:reverse_rc], :dna).reverse.complement.seq + options[:reverse] = Seq.new(seq: options[:reverse_rc], type: :dna).reverse.complement.seq end raise ArgumentError, "no adaptor specified" unless options[:forward] or options[:reverse]