Skip to content

mecfs_bio.build_system.task.download_from_google_drive_task

Some GWAS summary statistics are stored on Google Drive. Use this task to access them.

Classes:

DownloadFromGoogleDriveTask

Bases: Task

Methods:

Attributes:

deps property

deps: list[Task]

file_id instance-attribute

file_id: str

meta property

meta: Meta

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)