Some GWAS summary statistics are stored on Google Drive. Use this task to access them.
Classes:
DownloadFromGoogleDriveTask
Bases: Task
Methods:
Attributes:
file_id
instance-attribute
execute
execute(scratch_dir: Path, fetch: Fetch, wf: WF) -> Asset
Source code in mecfs_bio/build_system/task/download_from_google_drive_task.py
| def execute(self, scratch_dir: Path, fetch: Fetch, wf: WF) -> Asset:
out_path = scratch_dir / self.file_id
gdown.download(id=self.file_id, output=str(out_path))
return FileAsset(out_path)
|