MRCIEU / TwoSampleMR

R package for performing 2-sample MR using MR-Base database
https://mrcieu.github.io/TwoSampleMR
Other
417 stars 176 forks source link

Problems with accessing google authentication #113

Open HMCNJ opened 5 years ago

HMCNJ commented 5 years ago

We try to extract_instrument from MR Base database, we failed to get a link to my Google account and the errors as follows: `a<-extract_instruments(outcomes=324) Requesting default values. Extracting from pre-clumped data 0 out of 1 requested outcomes have pre-calculated instruments. Extracting data from 1 GWAS(s) and performing LD clumping [>] 1 of 1 Error: Cannot read token from alleged .rds file: mrbase.oauthError in readRDS(token_path): error reading from connection'

luochihiro commented 5 years ago

I have the same question

SunnyWit commented 4 years ago

did you resolve this problem? i also meet this question

explodecomputer commented 4 years ago

hey it might be that you have an empty file, try removing the mrbase.oauth file and re-authenticating

SunnyWit commented 4 years ago

yes,I reauthenticate several times,but   mrbase.oauth file is always empty

---Original--- From: "gibran hemani"<notifications@github.com> Date: Fri, Nov 15, 2019 18:32 PM To: "MRCIEU/TwoSampleMR"<TwoSampleMR@noreply.github.com>; Cc: "Comment"<comment@noreply.github.com>;"SunnyWit"<2970138204@qq.com>; Subject: Re: [MRCIEU/TwoSampleMR] Problems with accessing google authentication (#113)

hey it might be that you have an empty file, try removing the mrbase.oauth file and re-authenticating

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

explodecomputer commented 4 years ago

Sorry I'm not sure why this is happening. I would just check that the mrbase.oauth file in the working directory is definitely being removed (e.g. check the time stamp of the newly created one), and if problems still persist then avoid using authentication by:

a<-extract_instruments(outcomes=324, access_token=NULL)
HMCNJ commented 4 years ago

did you resolve this problem? i also meet this question

you can only extract the avaliable trait id. ao<-available_outcomes(access_token = NULL)