Skip to content

Commit

Permalink
Merge pull request #243 from RobokopU24/DnlRKorn-patch-5
Browse files Browse the repository at this point in the history
Update loadIA.py
  • Loading branch information
EvanDietzMorris authored Aug 13, 2024
2 parents 0cf45a0 + a45698f commit 9f75017
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions parsers/IntAct/src/loadIA.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def __init__(self, test_mode: bool = False, source_data_dir: str = None):
"""
super().__init__(test_mode=test_mode, source_data_dir=source_data_dir)

self.ftp_site = 'ftp.ebi.ac.uk'
self.ftp_dir = '/pub/databases/IntAct/current/psimitab/'

self.data_file: str = 'intact.zip'
self.source_db: str = 'IntAct Molecular Interaction Database'

Expand All @@ -100,7 +103,7 @@ def get_latest_source_version(self) -> str:
gd = GetData(self.logger.level)

# get the file date
ret_val: str = gd.get_ftp_file_date('ftp.ebi.ac.uk', '/pub/databases/IntAct/current/psimitab/', self.data_file)
ret_val: str = gd.get_ftp_file_date(self.ftp_site, self.ftp_dir, self.data_file)

# return to the caller
return ret_val
Expand All @@ -112,7 +115,7 @@ def get_data(self) -> int:
"""
# get a reference to the data gathering class
gd: GetData = GetData(self.logger.level)
file_count: int = gd.pull_via_ftp('ftp.ebi.ac.uk', '/pub/databases/IntAct/current/psimitab/', [self.data_file],
file_count: int = gd.pull_via_ftp(self.ftp_site, self.ftp_dir, [self.data_file],
self.data_path)
return file_count

Expand Down

0 comments on commit 9f75017

Please sign in to comment.