This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Biopython Entrez Query Record of IDs doesn't Match the Query Search Results

does anyone know why the List of my IDs is only 20 while the Count from my results in my NCBI is 180000?

I was expecting a list of IDs equaling 82296360

Code is below

https://drive.google.com/file/d/0B-J0sIwOpVwANmtqTUZmMkNEdWc/view?usp=sharing

Thanks!

biopython entrez ncbi

I modified your post from "tutorial" to a question because that's what it is.
In addition, sharing code using a blind link is not advisable, because we don't know what is behind that link and I won't click just random google drive links on the internet. Use a github gist instead.

1 answer

What is the length of your input sequences? If it's 25-mers or so you may want to include something like -task blastn-short in your command line, otherwise using blastx is a better option if you can opt to use this tool instead. Alternatively, try the ref2seq database too.

Log in to answer this question.