Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when querying by NP #2

Open
algarsi3 opened this issue Jan 23, 2023 · 0 comments
Open

Error when querying by NP #2

algarsi3 opened this issue Jan 23, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@algarsi3
Copy link

I get an error when I call the seqparse function using a NP ID (e.g., NP_000229.1).

I looked at the queries and found that it uses the nuccore database:
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=NP_000229.1&rettype=gbwithparts&retmode=text

I think that it should use the protein database, which would lead to the following URL:
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=protein&id=NP_000229.1&rettype=gbwithparts&retmode=text

This query does return a successful result. My code is the following:

// ...
useEffect(() => {
    seqparse("NP_000229.1")
      .then(console.log)
      .catch(console.error);
  }, []);
// ...

Am I doing something wrong or is there an error in the code?

@jjti jjti self-assigned this Feb 5, 2023
@jjti jjti added the bug Something isn't working label Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants