efetch returning gene instead of accession number - R
0
0
Entering edit mode
7.5 years ago
ezrabekele17 ▴ 10

Hi all,

I've been stuck for a few hours on this. I'm using reutils and I want to use efetch to get accession numbers given a UID, but it seems to be returning the gene. How do I get it to return the accession number? This is what I tried:

UIDs<-esearch( term = "Methylation", db ="protein" )

accession_numbers = efetch(UIDs, rettype = "acc")

But then it returns:

Object of class ‘efetch’

NP_001291387.1

NP_001291215.1

NP_001290430.1

NP_001290428.1

NP_001290167.1

NP_001120963.2

NP_000202.3

NP_004043.3

NP_001289981.1

NP_001615.2

NP_001070745.3

NP_001289462.1

... EFetch query using the ‘protein’ database. Query url: ‘https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?=efetch&db=protein&id=751130466%2C747165384%2C7465763...’ Retrieval type: ‘acc’, retrieval mode: ‘text’

Do I have to use epost or something?

Thank you

R • 1.8k views
ADD COMMENT
1
Entering edit mode

NP_xxxxxx are accession numbers in RefSeq. What did you expect ?

ADD REPLY

Login before adding your answer.

Traffic: 1536 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6