download_sdf
- download_sdf(version=None, *, prefix=None, return_version=False)[source]
Ensure the latest ChEMBL SDF dump is downloaded.
- Parameters:
version (
Optional
[str
]) – The version number of ChEMBL to get. If none specified, useslatest()
to look up the latest.prefix (
Optional
[Sequence
[str
]]) – The directory insidepystow
to usereturn_version (
bool
) – Should the version get returned? Turn this to true if you’re looking up the latest version and want to reduce redundant code.
- Return type:
- Returns:
If
return_version
is true, return a pair of the version and the local file path to the downloaded*.sdf.gz
file. Otherwise, just return the path.