Sha256: 7e190af796592e2e91cd5127c323fae6a9d424d8075f6a1cc74820c68a0adeaa
Contents?: true
Size: 821 Bytes
Versions: 3
Compression:
Stored size: 821 Bytes
Contents
## # QUALITY TRIMMING # module Lederhosen class CLI desc "trim", "trim reads based on quality scores" method_option :reads_dir, :type => :string, :required => true method_option :out_dir, :type => :string, :required => true def trim raw_reads = options[:reads_dir] out_dir = options[:out_dir] `mkdir -p #{out_dir}` raw_reads = Helpers.get_grouped_qseq_files raw_reads ohai "found #{raw_reads.length} pairs of reads" pbar = ProgressBar.new "trimming", raw_reads.length raw_reads.each do |a| pbar.inc out = File.join(out_dir, "#{File.basename(a[0])}.fasta") # TODO get total and trimmed total, trimmed = Helpers.trim_pairs a[1][0], a[1][1], out, :min_length => 70 end pbar.finish end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lederhosen-0.1.7 | lib/lederhosen/tasks/trim.rb |
lederhosen-0.1.6 | lib/lederhosen/tasks/trim.rb |
lederhosen-0.1.5 | lib/lederhosen/tasks/trim.rb |