Entering edit mode
Hello,
I'm trying to generate a current version of the NHGRI/EBI GWAS catalog using makeCurrentGwascat() from the gwascat package and I get this error:
> library(gwascat) > gwascat <- makeCurrentGwascat() running read.delim on http://www.ebi.ac.uk/gwas/api/search/downloads/alternative... formatting gwaswloc instance... NOTE: input data had non-ASCII characters replaced by '*'. Error in `[[<-`(`*tmp*`, name, value = numeric(0)) : 0 elements in value to replace 24454 elements > gwascat <- makeCurrentGwascat(fixNonASCII=FALSE, genome="GRCh37") running read.delim on http://www.ebi.ac.uk/gwas/api/search/downloads/alternative... formatting gwaswloc instance... Error in `[[<-`(`*tmp*`, name, value = numeric(0)) : 0 elements in value to replace 24454 elements
Can anyone confirm this behaviour? I'm running R 3.2.2 with gwascat 2.2.0.
Thanks,
Enrico
I get a warning, but the command works for me:
That's with today's R-devel and updated packages.
Thanks for checking - I'll see if updating solves it.