Skip to content

Commit 4616e84

Browse files
authored
Merge pull request #373 from Hammarn/md5
added sample name to md5 check
2 parents 69ca9e5 + 13750ac commit 4616e84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ngi_pipeline/engines/piper_ngi/launchers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,10 @@ def sbatch_piper_sample(command_line_list, workflow_name, project, sample,
393393
sbatch_text_list.append("\nPIPER_RETURN_CODE=$?")
394394

395395
#Precalcuate md5sums
396-
sbatch_text_list.append('MD5FILES="$SNIC_TMP/ANALYSIS/{}/piper_ngi/05_processed_alignments/*.bam'.format(project.project_id))
396+
sbatch_text_list.append('MD5FILES="$SNIC_TMP/ANALYSIS/{}/piper_ngi/05_processed_alignments/*{}*.bam'.format(project.project_id,sample.name))
397397
sbatch_text_list.append('$SNIC_TMP/ANALYSIS/{}/piper_ngi/05_processed_alignments/*.table'.format(project.project_id))
398-
sbatch_text_list.append('$SNIC_TMP/ANALYSIS/{}/piper_ngi/07_variant_calls/*.genomic.vcf.gz'.format(project.project_id))
399-
sbatch_text_list.append('$SNIC_TMP/ANALYSIS/{}/piper_ngi/07_variant_calls/*.annotated.vcf.gz"'.format(project.project_id))
398+
sbatch_text_list.append('$SNIC_TMP/ANALYSIS/{}/piper_ngi/07_variant_calls/*{}*.genomic.vcf.gz'.format(project.project_id,sample.name))
399+
sbatch_text_list.append('$SNIC_TMP/ANALYSIS/{}/piper_ngi/07_variant_calls/*{}*.annotated.vcf.gz"'.format(project.project_id,sample.name))
400400
sbatch_text_list.append('for f in $MD5FILES')
401401
sbatch_text_list.append('do')
402402
sbatch_text_list.append(" md5sum $f | awk '{printf $1}' > $f.md5 &")

0 commit comments

Comments
 (0)