|
From: <nm...@us...> - 2012-07-24 19:15:02
|
Revision: 25267
http://gmod.svn.sourceforge.net/gmod/?rev=25267&view=rev
Author: nm249
Date: 2012-07-24 19:07:50 +0000 (Tue, 24 Jul 2012)
Log Message:
-----------
messed up secondary dbxrefs are causing loading failure
Modified Paths:
--------------
schema/trunk/chado/bin/gmod_load_cvterms.pl
Modified: schema/trunk/chado/bin/gmod_load_cvterms.pl
===================================================================
--- schema/trunk/chado/bin/gmod_load_cvterms.pl 2012-06-12 11:36:58 UTC (rev 25266)
+++ schema/trunk/chado/bin/gmod_load_cvterms.pl 2012-07-24 19:07:50 UTC (rev 25267)
@@ -572,6 +572,7 @@
$new_term->add_secondary_dbxref($i);
}
foreach my $r ($novel_terms{$k}->get_dbxrefs() ) { #store definition's dbxrefs in cvterm_dbxref
+ if (!$r->database || !$r->primary_id) { next; } # skip def. dbxrefs without both db_name and accession
my $def_dbxref= $r->database() . ':' . $r->primary_id();
message("adding definition dbxref $def_dbxref to cvterm_dbxref\n");
$new_term->add_secondary_dbxref($def_dbxref, 1);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|