nugen_barcode_splitter 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +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 . 3
8
9
  #{$0} [options] -p project_dir -o out_dir -c sample_sheet_nugen
9
10
  _____________________________________________________________________________
10
11
 
@@ -4,18 +4,17 @@ class NugenTemplate
4
4
 
5
5
  def initialize(fastq_multx, options)
6
6
  @template =<<EOF
7
-
8
- #!/bin/bash
9
- #\$ -pe DJ 4
10
- #\$ -l h_vmem=6G
11
- #\$ -j y
12
- #\$ -N fq.Lane<%= @lane %>.<%= @number %>
13
- #\$ -o <%= @lane_dir %>/nugen_demultiplexing.log
14
-
15
- #{fastq_multx} #{options} -B <%= @barcodes %> \\
16
- <(gunzip -c <%= @fwd %>) <(gunzip -c <%= @rev %>) \\
17
- -o <%= @lane_dir %>/<%= @r1 %>.%.fq <%= @lane_dir %>/<%= @r2 %>.%.fq \\
18
- >> <%= @lane_dir %>/nugen_demultiplexing.log
7
+ #!/bin/bash
8
+ #\$ -pe DJ 4
9
+ #\$ -l h_vmem=6G
10
+ #\$ -j y
11
+ #\$ -N fq.Lane<%= @lane %>.<%= @number %>
12
+ #\$ -o <%= @lane_dir %>/nugen_demultiplexing.log
13
+
14
+ #{fastq_multx} #{options} -B <%= @barcodes %> \\
15
+ <(gunzip -c <%= @fwd %>) <(gunzip -c <%= @rev %>) \\
16
+ -o <%= @lane_dir %>/<%= @r1 %>.%.fq <%= @lane_dir %>/<%= @r2 %>.%.fq \\
17
+ >> <%= @lane_dir %>/nugen_demultiplexing.log
19
18
  EOF
20
19
  end
21
20
 
@@ -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.Lane_3.33\n \#$ -o ~/Lane3//nugen_demultiplexing.log\n\n fastq-multx -B bc \\\n fwd rev \\\n -o R1_33.%.fq R2_33.%.fq\n")
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")
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.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: