Trying to get sequence using sequinr generates error "Error in readLines(socket, n = nelem, ok = FALSE)"
1
1
Entering edit mode
3.2 years ago
poecile.pal ▴ 50

Good afternoon,

I am trying to get sequence from genbank, using sequinr library.

library("seqinr") 
choosebank("genbank") 
A.thaliana <- query("A.thaliana", "sp=Arabidopsis thaliana AND K=rbcL")

This results in an error:

Error in readLines(socket, n = nelem, ok = FALSE): too few lines read in readLines
Traceback:

1. query("A.thaliana", "sp=Arabidopsis thaliana AND K=rbcL")
2. readLines(socket, n = nelem, ok = FALSE)

Please tell me what this may be related to and how to get the sequence? Thank you in advance!

Best regards, Poecile

gene software error sequence R genome • 1.4k views
ADD COMMENT
0
Entering edit mode
3.2 years ago
zx8754 11k

Google says, try to increase the timeout:

choosebank("genbank", timeout = 20)
ADD COMMENT
0
Entering edit mode

Thank you very much! It works.

ADD REPLY

Login before adding your answer.

Traffic: 2451 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