mutations_caller_pipeline_aws 0.0.16 → 0.0.17
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.
@@ -30,7 +30,7 @@ ________________________________________________________________________________
|
|
30
30
|
Also you should have the indices for bwa and GATK prepared.
|
31
31
|
NOTE: Only paired end reads are supported!
|
32
32
|
|
33
|
-
+++ C L U S T E R V E R S I O N - 0.0.
|
33
|
+
+++ C L U S T E R V E R S I O N - 0.0.17 +++
|
34
34
|
|
35
35
|
config.yml should look like this:
|
36
36
|
# config.yml
|
@@ -157,8 +157,8 @@ def run(options)
|
|
157
157
|
job_number = options[:job_number]
|
158
158
|
bam_file = "aligned_#{job_number}.bam"
|
159
159
|
bam_file_sorted = "sorted_#{job_number}.bam"
|
160
|
-
|
161
|
-
|
160
|
+
bam_file_sorted_duplicates = options[:step_one_bam_file]
|
161
|
+
duplicate_metrcis = "GATK_files/duplicates.metrics"
|
162
162
|
job_prefix = "#{job_number}"
|
163
163
|
log_file = "log/#{options[:sample_name]}.log"
|
164
164
|
|
@@ -181,8 +181,8 @@ def run(options)
|
|
181
181
|
puts cmd
|
182
182
|
end
|
183
183
|
|
184
|
-
cmd = PicardCaller.
|
185
|
-
|
184
|
+
cmd = PicardCaller.mark_duplicates(bam_file_sorted, bam_file_sorted_duplicates,
|
185
|
+
duplicate_metrcis, options[:picard_tools], log_file, job_prefix,
|
186
186
|
options[:account])
|
187
187
|
|
188
188
|
if options[:debug] == 1
|
@@ -191,7 +191,7 @@ def run(options)
|
|
191
191
|
puts cmd
|
192
192
|
end
|
193
193
|
|
194
|
-
cmd = PicardCaller.build_index(
|
194
|
+
cmd = PicardCaller.build_index(bam_file_sorted_duplicates,
|
195
195
|
options[:picard_tools], log_file, job_prefix, options[:account])
|
196
196
|
|
197
197
|
if options[:debug] == 1
|
@@ -13,16 +13,16 @@ class PicardCaller
|
|
13
13
|
end
|
14
14
|
|
15
15
|
|
16
|
-
#
|
17
|
-
def self.
|
16
|
+
#mark_duplicates = "java -jar ~/Downloads/picard-tools-1.56/picard-tools-1.56/MarkDuplicates.jar I=WT_aligned_sorted_rg.bam O=marked_dublicates.bam M=dublicate.metrcis AS=true VALIDATION_STRINGENCY=LENIENT"
|
17
|
+
def self.mark_duplicates(bam_file_sorted, bam_file_sorted_duplicates, duplicate_metrcis, picard_tools, log_file, job_prefix, account)
|
18
18
|
cmd = "qsub -o #{log_file} -e #{log_file}_duplicates_errors -V -cwd -b y -hold_jid sort_#{job_prefix} -N duplicates_#{job_prefix} -l h_vmem=7G #{account} \
|
19
|
-
java -Xmx3g -jar #{picard_tools}/MarkDuplicates.jar I=#{bam_file_sorted} O=#{
|
19
|
+
java -Xmx3g -jar #{picard_tools}/MarkDuplicates.jar I=#{bam_file_sorted} O=#{bam_file_sorted_duplicates} M=#{duplicate_metrcis} \
|
20
20
|
AS=true VALIDATION_STRINGENCY=LENIENT"
|
21
21
|
end
|
22
22
|
|
23
23
|
#build_index = "java -jar ~/Downloads/picard-tools-1.56/picard-tools-1.56/BuildBamIndex.jar I=marked_dublicates.bam VALIDATION_STRINGENCY=LENIENT"
|
24
|
-
def self.build_index(
|
25
|
-
cmd = "qsub -o #{log_file} -e #{log_file}_index_errors -V -cwd -b y -hold_jid
|
26
|
-
java -Xmx3g -jar #{picard_tools}/BuildBamIndex.jar I=#{
|
24
|
+
def self.build_index(bam_file_sorted_duplicates, picard_tools, log_file, job_prefix, account)
|
25
|
+
cmd = "qsub -o #{log_file} -e #{log_file}_index_errors -V -cwd -b y -hold_jid duplicates_#{job_prefix} -N index_#{job_prefix} -l h_vmem=7G #{account} \
|
26
|
+
java -Xmx3g -jar #{picard_tools}/BuildBamIndex.jar I=#{bam_file_sorted_duplicates} VALIDATION_STRINGENCY=LENIENT"
|
27
27
|
end
|
28
28
|
end
|