From ec28d5c39ccecfcbf5a3173386d6a7a74d99d4e6 Mon Sep 17 00:00:00 2001
From: Ian Longden <ianl@sanger.ac.uk>
Date: Tue, 17 May 2011 10:10:59 +0000
Subject: [PATCH] Ignore Projections in comparisons

---
 misc-scripts/xref_mapping/XrefMapper/TestMappings.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/misc-scripts/xref_mapping/XrefMapper/TestMappings.pm b/misc-scripts/xref_mapping/XrefMapper/TestMappings.pm
index 2f80846125..bf6197397f 100644
--- a/misc-scripts/xref_mapping/XrefMapper/TestMappings.pm
+++ b/misc-scripts/xref_mapping/XrefMapper/TestMappings.pm
@@ -309,7 +309,7 @@ sub entry_number_check{
   my %old_object_xref_count;
   my %new_object_xref_count;
 
-  my $sth = $self->xref->dbc->prepare('select s.name, count(*) from xref x, object_xref ox, source s where ox.xref_id = x.xref_id  and x.source_id = s.source_id and ox_status = "DUMP_OUT" and s.name not like "AFFY%"  group by s.name');
+  my $sth = $self->xref->dbc->prepare('select s.name, count(*) from xref x, object_xref ox, source s where ox.xref_id = x.xref_id  and x.source_id = s.source_id and ox_status = "DUMP_OUT" and s.name not like "AFFY%"   group by s.name');
   $sth->execute();
   my ($name, $count);
   $sth->bind_columns(\$name,\$count);
@@ -319,7 +319,7 @@ sub entry_number_check{
   $sth->finish;
 
   
- $sth = $self->core->dbc->prepare('select e.db_name, count(*) from xref x, object_xref ox, external_db e where ox.xref_id = x.xref_id and x.external_db_id = e.external_db_id and e.db_name not like "AFFY%" group by e.db_name');
+ $sth = $self->core->dbc->prepare('select e.db_name, count(*) from xref x, object_xref ox, external_db e where ox.xref_id = x.xref_id and x.external_db_id = e.external_db_id and e.db_name not like "AFFY%" and x.info_type != "PROJECTION" group by e.db_name');
 
   $sth->execute();
   $sth->bind_columns(\$name,\$count);
-- 
GitLab