def download_sifts_from_ebi(identifier, override=False):
"""
Downloads a SIFTS xml from the EBI FTP to the filesystem.
:param identifier: (str) PDB ID
:param override: (boolean)
:return: (side effects)
"""
filename = "{}.xml.gz".format(identifier)
outputfile = os.path.join(config.db_root, config.db_sifts, filename)
os.makedirs(os.path.join(config.db_root, config.db_sifts), exist_ok=True)
url_root = config.ftp_sifts
url_endpoint = "{}.xml.gz".format(identifier)
url = url_root + url_endpoint
Downloader(url=url, outputfile=outputfile,
decompress=True, override=override)
return
评论列表
文章目录