Skip to content

Error when querying by NP #2

@algarsi3

Description

@algarsi3

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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions