Skip to content

Commit

Permalink
fix md5
Browse files Browse the repository at this point in the history
  • Loading branch information
baminou committed Feb 14, 2018
1 parent fc24497 commit 61eb04c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion workflow/tools/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
task_dict = get_task_dict(sys.argv[1])
cwd = os.getcwd()

time.sleep(2*60)
#time.sleep(2*60)

def download_file(object_id, out_dir, file_name):
docker_container = "quay.io/baminou/minibam-collab-dckr:latest"
Expand Down
3 changes: 2 additions & 1 deletion workflow/tools/generate_song_payloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def create_payload_json(bam, analysis, experiment, input_directory, output_file)
experiment_payload = ExperimentPayload(aligned=experiment.get('aligned'),library_strategy=experiment.get('library_strategy'),reference_genome=experiment.get('reference_genome'))

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(file_path),file_type='BAM',file_size=os.stat(file_path).st_size)
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)

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 61eb04c

Please sign in to comment.