ProteomicaVI@DESKTOP-GTTSG80:~/Base_de_datos_Lola$ esearch -db Protein -query "9606[taxid] AND refseq [filter]" | efetch -format fasta
501 Protocol scheme 'https' is not supported (LWP::Protocol::https not installed)
No do_post output returned from 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=protein&term=9606%5Btaxid%5D%20AND%20refseq%20%5Bfilter%5D&retmax=0&usehistory=y&edirect_os=linux&edirect=9.20&tool=edirect&email=ProteomicaVI@DESKTOP-GTTSG80.localdomain'
Result of do_post http request is
$VAR1 = bless( {
'_rc' => 501,
'_content' => 'LWP will support https URLs if the LWP::Protocol::https module
is installed.
',
'_msg' => 'Protocol scheme \'https\' is not supported (LWP::Protocol::https not installed)',
'_headers' => bless( {
'content-type' => 'text/plain',
'client-warning' => 'Internal response',
'::std_case' => {
'client-warning' => 'Client-Warning',
'client-date' => 'Client-Date'
},
'client-date' => 'Thu, 28 Jun 2018 12:07:46 GMT'
}, 'HTTP::Headers' ),
'_request' => bless( {
'_uri' => bless( do{\(my $o = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi')}, 'URI::https' ),
'_content' => 'db=protein&term=9606%5Btaxid%5D%20AND%20refseq%20%5Bfilter%5D&retmax=0&usehistory=y&edirect_os=linux&edirect=9.20&tool=edirect&email=ProteomicaVI@DESKTOP-GTTSG80.localdomain',
'_method' => 'POST',
'_headers' => bless( {
'content-type' => 'application/x-www-form-urlencoded',
'user-agent' => 'libwww-perl/6.34'
}, 'HTTP::Headers' )
}, 'HTTP::Request' )
}, 'HTTP::Response' );
WebEnv value not found in search output - WebEnv1
Db value not found in fetch input
I followed your steps but I got this bug.
This Python script that I wrote downloads the FASTA sequence of all proteins matching a keyword, across all species. It is configurable, though. See if you can avail of it: A: How to download all sequences of a list of proteins for a particular organism
Edit: You are looking for the actual amino acid sequence, I presume?
Thank you! I used your script and works perfectly. But one question, if I type in NCBI: human, there are many values that I'm not interested.
In this case: Animals(1,419,740) Plants(4,494) Fungi(898,540) Protists(203,856) Bacteria(84,639,903) Archaea(6,043) Viruses(1,749,114)
In my case, I would like to use: "Homo sapiens"[Organism] but in this case, your script doesn't work. Is there any solution for this?
Thanks again
I could see as well that only 20 sequences are downloaded in human :S.
Any solution to this problem?
Yes, for human data, just replace this line:
...with this:
txid9606 is a reference to Homo sapiens
Thanks for your reply.
I still having the same problem. Only download 20 sequences, as they appear on the website.