Skip to content

mv_extract_exposures runs too slow when the number of instruments is large #637

Description

@ruoyao-shi

The mv_extract_exposures() function will run for a long time when there are about 400 instruments or more, and sometimes it will get time out.
For example: dat <-mv_extract_exposures(c("ebi-a-GCST90029070","ebi-a-GCST90002363","ukb-b-19953"))
I think the main stucking step is at the line:
d1 <- extract_outcome_data(exposure_dat$SNP, id_exposure, opengwas_jwt = opengwas_jwt, proxies = find_proxies)
I see actually you have the parameters for splitting chunks and smaller number of splitsize() may help to speed up since that will make the access by api faster. Is this a correct way to improve that? If so, could you add this parameter in mv_extract_exposures() function for changing the splitsize?

Thank you!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions