Code Monkey home page Code Monkey logo

Comments (10)

ramiromagno avatar ramiromagno commented on May 28, 2024 1

Hi @peranti:

It is the first time I am seeing this type of error. It seems that the response from the GWAS Catalog server was not completed, hence the End of File (EOF) error.

I noticed that GWAS Catalog REST API service has been pretty bumpy today. I am not sure what's going on. I have sent a couple of emails to the GWAS Dev Team, but I haven't got a response yet.

I am not sure your problem is related to these other issues. It could be.

If you want, I am glad to look more carefully into your example but I will need the value of the gene_list variable.

from gwasrapidd.

ramiromagno avatar ramiromagno commented on May 28, 2024 1

I would still split your queries though. The GWAS Catalog team does not have any details regarding API throttling, but I am guessing this might be your problem.

from gwasrapidd.

ramiromagno avatar ramiromagno commented on May 28, 2024 1

Hi @peranti:

I am sorry you are having all these issues. I have been experiencing them myself too. I've just sent another email to the GWAS Catalog team. There is nothing else I can do I am afraid.

If you want to put some extra pressure, here's their email: [email protected]. :)

from gwasrapidd.

peranti avatar peranti commented on May 28, 2024

Thanks, @ramiromagno, for the quick reply.

I am now checking the command with ten genes and will update you in case of any issues. I can already tell you that eta: 28m.

It is better to run the command later once the GWAS Catalog REST API service is normal. But how can I check it? 🤔

Otherwise, rerun using loop with wait time in between two genes?

from gwasrapidd.

ramiromagno avatar ramiromagno commented on May 28, 2024

I don't know how long your list of genes is. But I am guessing that if it's in the order of thousands, you might be hammering their server too strongly and they might have increased the time to respond to your queries.

As you said, if that is the case, it might be better to wait a few hours and try again. But then, split your queries such that each call to get_variants() has only a few genes each time (~ 10 genes). Make sure to pause between requests, something like ~5 sec. At the end if you have a list of variants objects, you can always use the function union() to join everything together into one single object.

from gwasrapidd.

peranti avatar peranti commented on May 28, 2024

Sure, I have around 200 genes, and I suppose it is acceptable in one go after some time.

from gwasrapidd.

peranti avatar peranti commented on May 28, 2024

I encounter the following error when working with a single gene:

Notice: The request for https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/search/findByGene?geneName=PSMD5 failed: response code was 500.

Notice messages:
In gc_request_all(resource_url = resource_url, base_url = base_url,  :
The request for https://www.ebi.ac.uk/gwas/rest/api/singleNucleotidePolymorphisms/search/findByGene?geneName=PSMD5 failed: response code was 500.

The server is reachable, though.

is_ebi_reachable()
[1] TRUE

from gwasrapidd.

ramiromagno avatar ramiromagno commented on May 28, 2024

Hi Pradeep,

I got an update from the GWAS team. It seems that these downtime issues are now resolved. Please let me know if it is working for you.

from gwasrapidd.

peranti avatar peranti commented on May 28, 2024

Thanks, @ramiromagno, for getting in touch with the GWAS team.

I can now interact with the website using the functionalities of gwasrapidd, albeit very slow. However, this situation is not an issue and hence closing it.

from gwasrapidd.

ramiromagno avatar ramiromagno commented on May 28, 2024

Hi @peranti: I would like to reach out by email. Could you contact me at rmagno at pattern.institute?

from gwasrapidd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.