Skip to content

Commit 78959ad

Browse files
authored
Merge pull request #95 from icgc-argo/payload-gen-variant-calling.0.3.4.0
tested successfully
2 parents 6ca6dee + 87cc881 commit 78959ad

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tools/payload-gen-variant-calling/payload-gen-variant-calling.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323

2424
nextflow.enable.dsl = 2
25-
version = '0.3.3.0'
25+
version = '0.3.4.0'
2626

2727
params.normal_analysis = ""
2828
params.tumour_analysis = ""

tools/payload-gen-variant-calling/payload-gen-variant-calling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def calculate_md5(file_path):
6868
return md5.hexdigest()
6969

7070

71-
def get_files_info(file_to_upload, wf_short_name, wf_version, somatic_or_germline, normal_analysis, tumour_analysis):
71+
def get_files_info(file_to_upload, wf_short_name, wf_version, somatic_or_germline, normal_analysis, tumour_analysis, date_str):
7272
file_info = {
7373
'fileType': 'VCF' if file_to_upload.endswith('.vcf.gz') else file_to_upload.split(".")[-1].upper(),
7474
'fileSize': calculate_size(file_to_upload),
@@ -85,7 +85,6 @@ def get_files_info(file_to_upload, wf_short_name, wf_version, somatic_or_germli
8585
pass # should never happen
8686

8787
experimental_strategy = metadata['experiment']['experimental_strategy'].lower() if 'experimental_strategy' in metadata['experiment'] else metadata['experiment']['library_strategy'].lower()
88-
date_str = date.today().strftime("%Y%m%d")
8988

9089
variant_type = ''
9190
if wf_short_name in (['sanger-wgs', 'sanger-wxs']):
@@ -280,11 +279,12 @@ def main(args):
280279
}
281280

282281
analysis_type = 'variant_calling'
282+
date_str = date.today().strftime("%Y%m%d")
283283
for f in args.files_to_upload:
284284
if f.endswith('-supplement.tgz'): analysis_type = 'variant_calling_supplement'
285285
if f.endswith('_metrics.tgz'): analysis_type = 'qc_metrics'
286286

287-
file_info = get_files_info(f, args.wf_short_name, args.wf_version, somatic_or_germline, normal_analysis, tumour_analysis)
287+
file_info = get_files_info(f, args.wf_short_name, args.wf_version, somatic_or_germline, normal_analysis, tumour_analysis, date_str)
288288

289289
payload['files'].append(file_info)
290290

0 commit comments

Comments
 (0)