Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baminou committed Feb 14, 2018
1 parent 61eb04c commit 076aa5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/tools/generate_song_payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create_payload_json(bam, analysis, experiment, input_directory, output_file)

file_path = os.path.join(input_directory,bam.get('minibam').get('bam_file_name'))
minibam_payload = FilePayload(file_access=bam.get('minibam').get('access'),file_name=bam.get('minibam').get('bam_file_name'),
md5sum=hashlib.md5(open("nohup3.1.log",'rb').read()).hexdigest(),file_type='BAM',file_size=os.stat(file_path).st_size)
md5sum=hashlib.md5(open(file_path,'rb').read()).hexdigest(),file_type='BAM',file_size=os.stat(file_path).st_size)

file_path = os.path.join(input_directory,normal_bam.get('minibam').get('bai_file_name'))
minibai_payload = FilePayload(file_access=normal_bam.get('minibam').get('access'),file_name=normal_bam.get('minibam').get('bai_file_name'),md5sum=hashlib.md5(file_path),file_type='BAI',file_size=os.stat(file_path).st_size)
Expand Down

0 comments on commit 076aa5f

Please sign in to comment.