From f1bde2f19bd439361c13d23f3b39be2520818b40 Mon Sep 17 00:00:00 2001 From: Magali Ruffier <mr6@ebi.ac.uk> Date: Tue, 11 Sep 2012 10:37:08 +0000 Subject: [PATCH] do not use uniprot_genename as display xref if the master xref it is dependent on is of low evidence --- .../xref_mapping/XrefMapper/DisplayXrefs.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm b/misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm index 75c950bad3..beb98d6863 100644 --- a/misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm +++ b/misc-scripts/xref_mapping/XrefMapper/DisplayXrefs.pm @@ -97,6 +97,22 @@ SELECT object_xref_id WHERE ox_status = 'DUMP_OUT' AND label REGEXP '^LOC[[:digit:]]+' LOCP +$ignore{'Uniprot_genename'} =<<IEG; +SELECT DISTINCT ox.object_xref_id + FROM object_xref ox, dependent_xref dx, + xref xmas, xref xdep, + source smas, source sdep + WHERE ox.xref_id = dx.dependent_xref_id AND + dx.dependent_xref_id = xdep.xref_id AND + dx.master_xref_id = xmas.xref_id AND + xmas.source_id = smas.source_id AND + xdep.source_id = sdep.source_id AND + smas.name like "Uniprot/SPTREMBL" AND + smas.status = "LOWEVIDENCE" AND + sdep.name like "Uniprot_genename" AND + ox.ox_status = "DUMP_OUT" +IEG + return [\@list,\%ignore]; } -- GitLab