nugen_barcode_splitter 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/bin/base_adder CHANGED
@@ -15,7 +15,7 @@ file_dir = ARGV[0]
15
15
  number_of_bases = ARGV[1].to_i
16
16
  out_dir = ARGV[2]
17
17
 
18
- fastq = Fastq.new("file_dir")
18
+ fastq = Fastq.new("#{file_dir}")
19
19
  fastq.add(number_of_bases, out_dir)
20
20
  fastq.close
21
21
 
@@ -155,10 +155,10 @@ Dir.glob(options[:project_dir]+"/*").each do |p|
155
155
  STDERR.puts cmd if options[:debug]
156
156
  else
157
157
  status = system(cmd)
158
- raise "Calling the template did not succeed!" if !status
158
+ raise "Calling base_adder did not succeed!" if !status
159
159
  cmd = "mv #{fwd}_added #{fwd}"
160
160
  status = system(cmd)
161
- raise "Was not ablde to rename file #{fwd}!" if status!=true
161
+ raise "Was not able to rename file #{fwd}!" if status!=true
162
162
  end
163
163
  end
164
164
 
@@ -30,6 +30,7 @@ class SampleSheet
30
30
  if current_lane != lane
31
31
  outfile = "#{prefix}_#{lane}.txt"
32
32
  current_lane = lane
33
+ handler.close()
33
34
  handler = File.new(outfile,'w')
34
35
  handler.write("# SampleName Barcode \n")
35
36
  end
@@ -11,7 +11,7 @@ class NugenBarcodeSplitterTest < Test::Unit::TestCase
11
11
  assert template.to_s.include?("fastq-multx")
12
12
  assert template.to_s.include?("<%= @fwd %>")
13
13
  temp = template.fill("Lane_3", "33", "~/Lane3/", "bc", "fwd", "rev")
14
- assert_equal(temp.to_s, "\n #!/bin/bash\n \#$ -pe DJ 4\n \#$ -l h_vmem=6G\n \#$ -j y\n \#$ -N fq.LaneLane_3.33\n \#$ -o ~/Lane3//nugen_demultiplexing.log\n\n fastq-multx -B bc \\\n <(gunzip -c fwd) <(gunzip -c rev) \\\n -o ~/Lane3//R1_33.%.fq ~/Lane3//R2_33.%.fq \\\n >> ~/Lane3//nugen_demultiplexing.log\n")
14
+ assert_equal(temp.to_s, "fastq-multx bc \\\n <(gunzip -c fwd) \\\n <(gunzip -c rev) \\\n -o ~/Lane3//R1_33.%.fq ~/Lane3//R2_33.%.fq \\\n >> ~/Lane3//nugen_demultiplexing.log\n")
15
15
  end
16
16
 
17
17
  def test_fastq
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.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: