X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Ffind_adaptor;h=ac3681a090c8e80c6139a4d1640ce4dd97664430;hb=b982cc677363d7458963b610ec53bf2c4f7476a9;hp=4fd559dd281b45b06b372134e6215cc600ef55a2;hpb=124ad80bd42309d1e6ea7d10dcffb86938c29069;p=biopieces.git diff --git a/bp_bin/find_adaptor b/bp_bin/find_adaptor index 4fd559d..ac3681a 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').revcomp.seq + options[:forward] = Seq.new("test", options[:forward_rc], 'dna').reverse.complement.seq end if options[:reverse_rc] - options[:reverse] = Seq.new("test", options[:reverse_rc], 'dna').revcomp.seq + options[:reverse] = Seq.new("test", options[:reverse_rc], 'dna').reverse.complement.seq end raise ArgumentError, "no adaptor specified" unless options[:forward] or options[:reverse]