drugforge.data.services.fragalysis.fragalysis_download.download
- drugforge.data.services.fragalysis.fragalysis_download.download(out_fn, api_call, extract=True, base_url='https://fragalysis.diamond.ac.uk/api/download_structures/')[source]
Download target structures from fragalysis.
- Parameters:
out_fn (Union[str, Path]) – Where to save the downloaded zip file
api_call (dict) – Dictionary containing args for the POST request. Target is specified here.
extract (bool, default=True) – Whether to extract the zip file after downloading. Extracts to the directory given by dirname(out_fn)