Skip to content

Commit

Permalink
new url for RCSB for downloading fasta
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsobolev committed Jun 12, 2020
1 parent 64c5832 commit b1dc8ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iotbx/pdb/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ def fetch(id, data_type="pdb", format="pdb", mirror="rcsb", log=None,
if (data_type in ["fasta", "seq"]):
# XXX the RCSB doesn't appear to have a simple URL for FASTA files
if (url is None) : # TODO PDBe equivalent doesn't exist?
url = "https://www.rcsb.org/pdb/download/downloadFastaFiles.do?structureIdList=%s&compressionType=uncompressed" % id
# url = "https://www.rcsb.org/pdb/download/downloadFastaFiles.do?structureIdList=%s&compressionType=uncompressed" % id
# Seems that this url should be working:
url = "https://www.rcsb.org/fasta/entry/%s" % id
try :
data = libtbx.utils.urlopen(url)
except HTTPError as e :
Expand Down

0 comments on commit b1dc8ab

Please sign in to comment.