nugen_barcode_splitter 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ require "nugen_barcode_splitter"
5
5
  require "fileutils"
6
6
 
7
7
  usage =<<EOF
8
- V E R S I O N - 0 . 0 . 14 - BETA
8
+ V E R S I O N - 0 . 0 . 16 - BETA
9
9
  #{$0} [options] -p project_dir -o out_dir -c sample_sheet_nugen
10
10
  _____________________________________________________________________________
11
11
 
@@ -168,7 +168,7 @@ Dir.glob(options[:project_dir]+"/*").each do |p|
168
168
  stats_handler.write(statistics.to_s)
169
169
  stats_handler.close()
170
170
  end
171
- next unless f =~ /_updated/
171
+ next unless f =~ /.updated/
172
172
  name = f.split("/")[-1]
173
173
  id = name.split(".")[1]
174
174
  sample_dir = outdir + "/Sample_#{id}"
@@ -177,8 +177,8 @@ Dir.glob(options[:project_dir]+"/*").each do |p|
177
177
  rescue Exception => e
178
178
  STDERR.puts e.message
179
179
  end
180
- name = name.gsub(/_updated/, "")
181
- cmd = `mv #{f} #{sample_dir}/name`
180
+ name = name.gsub(/.updated/, "")
181
+ cmd = "mv #{f} #{sample_dir}/#{name}"
182
182
  if options[:debug]
183
183
  STDERR.puts cmd if options[:debug]
184
184
  else
@@ -149,9 +149,9 @@ class Merger
149
149
  end
150
150
  stats = ""
151
151
  @sample_ids.each_with_index do |id,i|
152
- stats += id +"/t" + statistics[i].to_s + "/n"
152
+ stats += id +"\t" + statistics[i].to_s + "\n"
153
153
  end
154
- stats += "unmatched/t" + statistics[-2].to_s + "/n"
155
- stats += "total/t" + statistics[-1].to_s + "/n"
154
+ stats += "unmatched\t" + statistics[-2].to_s + "\n"
155
+ stats += "total\t" + statistics[-1].to_s + "\n"
156
156
  end
157
157
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nugen_barcode_splitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-15 00:00:00.000000000Z
12
+ date: 2012-02-22 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: ! "This gem is designed to demultiplex reads\n produced
15
15
  by Illumina with Nugen\n (http://www.nugeninc.com/nugen/) barcodes."