Skip to content
Snippets Groups Projects
Commit 2c404bc1 authored by Kieron Taylor's avatar Kieron Taylor Committed by GitHub
Browse files

Merge pull request #159 from khowe/master

Fixed bug in set_gene_descriptions where filtered descriptions were b…
parents e918a71f 74a7fda5
No related branches found
No related tags found
No related merge requests found
......@@ -1020,12 +1020,12 @@ DXS
next if(exists($ignore{$gene_id}) || exists($gene_desc_updated{$gene_id}));
if(defined($desc) ){
my $filtered_description = $self->filter_by_regexp($desc, \@regexps);
if ($filtered_description ne "") {
my $filtered_desc = $self->filter_by_regexp($desc, \@regexps);
if ($filtered_desc ne "") {
if(!defined($no_source_name_in_desc{$source_id})){
$desc .= " [Source:".$source_id_to_external_name{$source_id}.";Acc:".$label."]";
$filtered_desc .= " [Source:".$source_id_to_external_name{$source_id}.";Acc:".$label."]";
}
$update_gene_desc_sth->execute($desc,$gene_id);
$update_gene_desc_sth->execute($filtered_desc,$gene_id);
$gene_desc_updated{$gene_id} = 1;
}
}
......
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