From 55073aa58f7fbeaa11c4235c171734cc38fe6623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Fri, 30 Nov 2007 15:17:59 +0000 Subject: [PATCH] Make an exception for the 'bdgpinsituexpr' source. --- .../xref_mapping/XrefParser/FlybaseParser.pm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/misc-scripts/xref_mapping/XrefParser/FlybaseParser.pm b/misc-scripts/xref_mapping/XrefParser/FlybaseParser.pm index 82f5bee30c..c63fc84941 100644 --- a/misc-scripts/xref_mapping/XrefParser/FlybaseParser.pm +++ b/misc-scripts/xref_mapping/XrefParser/FlybaseParser.pm @@ -238,9 +238,18 @@ sub run { if ( exists( $xref_ids{$source_name}{$accession} ) ) { $xref_id = $xref_ids{$source_name}{$accession}; } else { - $xref_id = - $self->add_xref( $accession, undef, $accession, '', - $source_id, $species_id ); + # The Dbxref 'bdgpinsituexpr' needs case sensitivity, just + # like the FlyBase Names, so use the ID as the accession + # for this source. + if ( $dbxref_name eq 'bdgpinsituexpr' ) { + $xref_id = + $self->add_xref( $id, undef, $accession, '', + $source_id, $species_id ); + } else { + $xref_id = + $self->add_xref( $accession, undef, $accession, '', + $source_id, $species_id ); + } $xref_ids{$source_name}{$accession} = $xref_id; } -- GitLab