Skip to content

Commit

Permalink
Putting aside log file modification for now
Browse files Browse the repository at this point in the history
  • Loading branch information
slzarate committed Jul 13, 2018
1 parent c7b6601 commit 569ca18
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions dx_app_code/parliament2/parliament2.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@ def main(**job_inputs):
'sv_caller_results' : sv_caller_results_upload
}

if job_inputs['output_log_files']:
if job_inputs['run_breakseq'] or job_inputs['run_manta']:
log_file_names = glob.glob('/home/dnanexus/out/log_files/*')
log_file_upload = []
for name in log_file_names:
log_file_upload.append(dxpy.dxlink(dxpy.upload_local_file(name)))
output['log_files'] = log_file_upload
subprocess.check_call(['ls', '-sh', '/home/dnanexus/out/svtyped_vcfs/'])

# if job_inputs['output_log_files']:
# if job_inputs['run_breakseq'] or job_inputs['run_manta']:
# log_file_names = glob.glob('/home/dnanexus/out/log_files/*')
# log_file_upload = []
# for name in log_file_names:
# log_file_upload.append(dxpy.dxlink(dxpy.upload_local_file(name)))
# output['log_files'] = log_file_upload

if job_inputs['run_genotype_candidates']:
svtyped_vcf_names = glob.glob('/home/dnanexus/out/svtyped_vcfs/*')
Expand Down

0 comments on commit 569ca18

Please sign in to comment.