Skip to content
Snippets Groups Projects
Commit 952bb562 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Bug fix - the same factor was being imported multiple times if more than one...

Bug fix - the same factor was being imported multiple times if more than one feature was associated with it.

Now each factor is only stored once and all features associated with it point to a single instance.
parent 75f7d197
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,6 @@ sub parse {
my $stable_id_to_internal_id = $self->build_stable_id_cache($db_adaptor);
print "Parsing $file with cisred parser\n";
# ----------------------------------------
......@@ -116,7 +115,7 @@ sub parse {
$feature{FACTOR_ID} = $blank_factor_id;
if ($group_name && $group_name ne '' && $group_name !~ /\s/) {
my $factor_id = $factor_ids_by_name{$feature{NAME}};
my $factor_id = $factor_ids_by_name{$group_name};
if (!$factor_id) { # create one
my %factor;
......
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