https://github.com/jhbadger/scripts
Tip revision: 6ad694835e70be1c38b4cc13806c5b4361f669fc authored by Jonathan Badger on 12 January 2024, 20:33:42 UTC
report misses in virtualPCR
report misses in virtualPCR
Tip revision: 6ad6948
fixQIIMEMothurClass
#!/usr/bin/env ruby
require 'optimist'
ARGV.push("--help") if ARGV.empty?
opts = Optimist::options do
banner File.basename($0)
opt :input, "input file", :required=>true, :type=>:string
end
File.new(opts.input).each do |line|
if line.index("\\_")
line = line.split("\\_").first
line = line.chop.chop
end
if line.index("str__")
line = line.split("str__").first
line = line.chop.chop
end
print line + "\n"
end