Hi, I'm currently studying on the Biostar Handbook and encountring a problem with the command efetch in the bioinfo conda environment.
If I run the command:
esearch -db protein -query PRJNA257197 | efetch -format fasta > ref/prots_2014.fa
I get various errors like:
curl: (22) The requested URL returned error: 400
ERROR: curl command failed ( Fri Apr 7 16:01:44 CEST 2023 ) with: 22
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi -d db=protein&id=Unable%2Cto%2Clocate%2Cxtract%2Cexecutable.%2CPlease%2Cexecute%2Cthe%2Cfollowing%2Cnquire%2Cdwn%2Cftp.ncbi.nlm.nih.gov%2Centrez%2Centrezdirect%2Cxtract.Silicon.gz%2Cgunzip%2Cf%2Cxtract.Silicon.gz%2Cchmod%2Cx%2Cxtract.Silicon&rettype=fasta&retmode=text&tool=edirect&edirect=16.2&edirect_os=Darwin&email=bomba%40MBPfrabomba6.local
HTTP/1.1 400 Bad Request
What I've done so far to correct this behaviour:
- upgrade/update the environment
- removed and reinstalled entrez-direct
I've also installed entrez-direct outside of conda using the command provided in the official instructions and in this case I don't get any error and it works flawlessly.
efetch
entrez-direct
conda
You need the
xtractexecutable, like the error mentions. What doeswhich xtractgive you within the conda env?But your comment give me an idea about the problem: it seems that I'm missing a specific version of xtract that is xtract.Silicon (which should be the version specific for ARM Mac)