Skip to content
Prev 369714 / 398503 Next

efetch result not in character format

Hi,

I want to use reutils to obtain the accession numbers of a query search in
character format. When I use efetch, the accession number isn't in a
character format, and I'm not sure if the number is accurate, because I get
the error:

Error in file.exists(destfile) : object 'destfile' not found

This is what I tried:

UIDs<-esearch( "Methylation" )

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

How do I obtain only the accession number and is the number accruate?

Thank you