Skip to content
Snippets Groups Projects
Commit 55073aa5 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Make an exception for the 'bdgpinsituexpr' source.

parent 41a64785
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment