Can I do this: https://imgur.com/tu8lv27 with entrez?
How can I filter nt database remotely, to include only some taxa? (I'm sorry if this is a naive question)
1 answer
You can't do this (in the sense of filter remotely and download only what you need).
- You could run a remote blast search at NCBI with a valid
entrezquery (simulating remote filtering). - You could also search NCBI with species/genes of interest and download the search sequences from the web page results to create a local sequence search database from those.
Yes. That is the kind of search term you will use as shown in the search box. Here is a full list of those terms
I'm using entrez, and I did this command: Entrez.esearch(db='nucleotide',term="Mammals AND cox1[Gene]", idtype='acc') and it counts me 61818, but when I list the IDS I only get some of them. Is this the maximum number of IDS to print, or the result by itself?
Looks like you are doing this in python. Add retmax=1000000 to get all results.
That worked, thanks that worked. I want to delete the fasta sequences of that query so I did this line: Entrez.efetch(db='nucleotide', id=id_list,retmode="fasta"), but I can't retrive the fasta sequences.
Log in to answer this question.