Based on http://bacteria.ensembl.org/index.html data. For E. coli database is use single as
escherichiashigellacollectioncore9625a
I'm using Ensembl API version 62 to connect without problem. However, when try to get genes from "e colisakai" and "e colik12". They return same amount of genes (4511).
But if i search on Website - http://bacteria.ensembl.org/Multi/Search/Results?species=all;idx=;q=EBESCG00000001004;genomic_unit=bacteria
I can see this gene specify to only E. coli K12.
My perl script looks like this
$db = new Bio::EnsEMBL::DBSQL::DBAdaptor(-species=> 'E coli K12', -dbname=> 'escherichia_shigella_collection_core_9_62_5a');
my $slice_adaptor = $db->get_SliceAdaptor();
$chromo = $slice_adaptor->fetch_by_region('chromosome', 'Chromosome'); # E. Coli chromosome is name "chromosome'
my @genes = @{ $chromo->get_all_Genes() };
print(Dump(@genes));
$db = new Bio::EnsEMBL::DBSQL::DBAdaptor(-species=> 'E coli Sakai', -dbname=> 'escherichia_shigella_collection_core_9_62_5a');
my $slice_adaptor = $db->get_SliceAdaptor();
$chromo = $slice_adaptor->fetch_by_region('chromosome', 'Chromosome'); # E. Coli chromosome is name "chromosome'
my @genes = @{ $chromo->get_all_Genes() };
print(Dump(@genes));
Of course, this help me a lot. Thank you so much.