Skip to content

Commit

Permalink
Dev (#130)
Browse files Browse the repository at this point in the history
* Update parse_sumstats_ftp_logs.py

fix counting failures after ftp restructure

* gwas-utils#127, new harmonisation wrapper script

* add working dir to harm wrapper

* update nextflow starter script

* Update solr_indexing.nf

* use pattern matching for moving harmonised files
  • Loading branch information
jdhayhurst authored Nov 24, 2022
1 parent 69a1a17 commit d615020
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ftpSummaryStatsScript/ftp_sync.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def release_files_for_harmonisation(self):
date_today = datetime.datetime.now().strftime("%Y%m%d")
dest_dir = os.path.join(self.harmonise_path, date_today)
self.make_dir(dest_dir)
self.rsync_pattern(source, dest_dir, pattern="GCST*")
self.rsync_dir(source, dest_dir)

def update_lastrun_file(self):
Expand Down Expand Up @@ -322,7 +323,7 @@ def rsync_pattern(source, dest, pattern):
logger.info("Sync {} --> {}".format(source, dest))
subprocess.call(
['rsync', '-rpvh', '--chmod=Du=rwx,Dg=rwx,Do=rx,Fu=rw,Fg=rw,Fo=r', '--size-only',
f'--include={pattern}', source, dest])
f'--include={pattern}', '--exclude=*', source, dest])
except OSError as e:
logger.error(e)

Expand Down

0 comments on commit d615020

Please sign in to comment.