nugen_barcode_splitter 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
data/bin/nugen_barcode_splitter
CHANGED
@@ -4,18 +4,17 @@ class NugenTemplate
|
|
4
4
|
|
5
5
|
def initialize(fastq_multx, options)
|
6
6
|
@template =<<EOF
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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.
|
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
|