Skip to content
Snippets Groups Projects
Commit f9dc4756 authored by premanand17's avatar premanand17
Browse files

Updated to handle empty description in xref table - ENSCORESW-462

parent 940fe376
No related branches found
No related tags found
No related merge requests found
...@@ -908,10 +908,10 @@ sub add_xref { ...@@ -908,10 +908,10 @@ sub add_xref {
my $source_id = $arg_ref->{source_id} || croak 'add_xref needs a source_id'; my $source_id = $arg_ref->{source_id} || croak 'add_xref needs a source_id';
my $species_id = $arg_ref->{species_id} || croak 'add_xref needs a species_id'; my $species_id = $arg_ref->{species_id} || croak 'add_xref needs a species_id';
my $label = $arg_ref->{label} || $acc; my $label = $arg_ref->{label} || $acc;
my $description = $arg_ref->{desc} || ''; my $description = $arg_ref->{desc};
my $version = $arg_ref->{version} || 0; my $version = $arg_ref->{version} || 0;
my $info_type = $arg_ref->{info_type} || 'MISC'; my $info_type = $arg_ref->{info_type} || 'MISC';
my $info_text = $arg_ref->{info_text} || ''; my $info_text = $arg_ref->{info_text};
my $dbi = $arg_ref->{dbi}; my $dbi = $arg_ref->{dbi};
$dbi = $self->dbi unless defined $dbi; $dbi = $self->dbi unless defined $dbi;
......
...@@ -160,8 +160,8 @@ sub run_script { ...@@ -160,8 +160,8 @@ sub run_script {
next if (!$entry); next if (!$entry);
my ($accession) = $entry =~ /#=GF\sAC\s+(\w+)/ ; my ($accession) = $entry =~ /#=GF\sAC\s+(\w+)/ ;
my ($label) = $entry =~ /\n#=GF\sID\s+([^\n]+)/; my ($label) = $entry =~ /#=GF\sID\s+([^\n]+)/;
my ($description) = $entry =~ /\n#=GF\sDE\s+([^\n]+)/; my ($description) = $entry =~ /#=GF\sDE\s+([^\n]+)/;
if ($accession) { if ($accession) {
if (exists($rfam_transcript_stable_ids{$accession})){ if (exists($rfam_transcript_stable_ids{$accession})){
#add xref #add xref
......
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