Skip to content

Commit

Permalink
Merge pull request #233 from X-lab-3D/update_zenodo_db
Browse files Browse the repository at this point in the history
Update zenodo link. Hotfix cmd_pandora commands and defsault database…
  • Loading branch information
DarioMarzella authored Feb 27, 2023
2 parents 3fe9967 + 181750f commit 3a653e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions PANDORA/Database/Database.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,14 @@ def create_db_folders(db_path=None):
else:
print(f'WARNING: folder {D} already exists!')

def fetch_database(db_out_path, db_url='https://sandbox.zenodo.org/record/1129456/files/default.tar.gz?download=1'):
def fetch_database(db_out_path, db_url='https://sandbox.zenodo.org/record/1163695/files/default.tar.gz?download=1'):
"""Downloads the pre-generated database from zotero.
Args:
db_out_path (str): Path to the database to be downloaded,
should be pointing at a "PANDORA_databases" folder.
db_url (str, optional): URL for the zenodo database.
Defaults to 'https://sandbox.zenodo.org/record/1129456/files/default.tar.gz?download=1'.
Defaults to 'https://sandbox.zenodo.org/record/1163695/files/default.tar.gz?download=1'.
Raises:
Exception: If the PANDORA_database.pkl file is not found in the destination folder,
Expand Down
2 changes: 1 addition & 1 deletion PANDORA/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
data = json.load(f)
data_folder = data['data_folder_name']
else:
data_folder = '~/PANDORA_database/default'
data_folder = '~/PANDORA_databases/default'

PANDORA_data = os.path.expanduser(data_folder)

Expand Down
4 changes: 2 additions & 2 deletions PANDORA/cmd_pandora.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def cmd_run_pandora():
)

parser.add_argument(
'-c','--clip-Ccdomain', type=str,
'-c','--clip-C-domain',
help='If provided, ignores C-like domains and Beta-2 microglobulin and only \
models binding groove and peptide',
action='store_true'
Expand Down Expand Up @@ -145,7 +145,7 @@ def cmd_run_wrapper():
)

parser.add_argument(
'-c','--clip-Ccdomain', type=str,
'-c','--clip-C-domain',
help='If provided, ignores C-like domains and Beta-2 microglobulin and only \
models binding groove and peptide',
action='store_true'
Expand Down

0 comments on commit 3a653e6

Please sign in to comment.