Skip to content

Commit

Permalink
[prism] change fetching pdbs from rcsb
Browse files Browse the repository at this point in the history
  • Loading branch information
j0kaso committed Jul 14, 2022
1 parent e53e6b1 commit 69737d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion software/scripts/pdb_to_prism.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from functools import reduce
import logging as log
import os
import urllib

import shutil
import subprocess
import sys
Expand All @@ -24,6 +26,7 @@
from Bio.PDB.DSSP import DSSP
import pandas as pd


# Local application imports
log_message="verbose"

Expand Down Expand Up @@ -265,7 +268,7 @@ def download_pdb(pdb_id, output_dir='.'):

def download_pdb2(pdb_id, output_dir = '.'):
pdb_path = os.path.join(output_dir, f'{pdb_id}.pdb')
pdb_fileurllib.request.urlretrieve(f'http://files.rcsb.org/download/{pdb_id}.pdb', pdb_path)
urllib.request.urlretrieve(f'http://files.rcsb.org/download/{pdb_id}.pdb', pdb_path)
return pdb_path


Expand Down

0 comments on commit 69737d6

Please sign in to comment.