Skip to content

Commit

Permalink
fix: Skip studies not found in staging during FTP sync (#178)
Browse files Browse the repository at this point in the history
* fix: Skip studies not found in staging during FTP sync

* chore: Bump version to 0.1.27b.7
  • Loading branch information
karatugo authored Jan 27, 2025
1 parent d74c126 commit cdcd64f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ftpSummaryStatsScript/ftp_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ def move_study_from_ftp_to_staging(self, study):
def sync_to_ftp(self):
# api AND staging AND NOT ftp
for study in self.to_release:
if study not in self.staging_studies_dict:
logger.warning(f"Study {study} is marked for release but not found in staging. Skipping.")
continue
logger.info("{} --> FTP".format(study))
source = self.staging_studies_dict[study]
self._generate_md5sums_for_contents(source)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup(
description='A variety of utilities for activities involved in the running of the GWAS Catalog',
name='gwasUtils',
version='0.1.27b.6',
version='0.1.27b.7',
data_files=[('r_scripts',['catalogPlots/dataReleaseTimer.R', 'catalogPlots/SumStats_plotter.R', 'catalogPlots/TA_vs_GWAS_publication.R']),
('nf', ['solrIndexerManager/solr_indexing.nf'])],
packages=['gwasAssociationFilter',
Expand Down

0 comments on commit cdcd64f

Please sign in to comment.