This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Different Snp Counts In Dbsnp From Entrez And Eutils

Hi

Does anyone know why I might be getting different SNP counts from dbSNP depending on whether i used Entrez or the eutils. I was just looking how many snps there are in cattle and you get about 100,000 in total using Entrez. I looked using the code below using eutils and got about 200,000

my $utils = "http://www.ncbi.nlm.nih.gov/entrez/eutils";

my $esearch = "$utils/esearch.fcgi?" .
              "db=$db&retmax=1&usehistory=y&term=";

my $db = 'snp';

my$query = 'bos+taurus[ORG]';
my $esearch_result = get($esearch . $query);

Many thanks

eutils snp ncbi

Small correction; search term qualifier should be [ORGN], not [ORG].

2 answers

I got the same number (2210641) with entrez and eutils.

I see 2210641 from bos taurus with the preview/limits option at dbSNP, or 2210642 from an Entrez cross-database search from the NCBI homepage.

Where exactly did you see 100,000?

also when i change my eutils query to this: my$query = 'bos taurus[ORG] AND snp[SNP_CLASS]'; the result goes down from 275839 to only 494 so I must be doing something very wrong.

I think it is modifying the query as i get this in my output: [?]
[?]bos taurus[All Fields][?]
[?]"cattle"[MeSH Terms] OR "cattle"[All Fields] OR ("bos"[All Fields] AND "taurus"[All Fields]) OR "bos taurus"[All Fields][?] [?][?]. How do i stop it doing this?

It was my fault - the database was undefined so it was searching medline. Thanks for your help

Log in to answer this question.