Skip to content

Commit

Permalink
Handle genes with missing gene class
Browse files Browse the repository at this point in the history
  • Loading branch information
markquintontulloch committed Apr 30, 2024
1 parent addf3b9 commit e55c5a2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/dump_citindex.pl
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,19 @@ sub print_gene{

my @c = split(/\s+/,"${\$g->History->right(2)}");
my $creation_date = $c[2];


my $title = $g->CGC_name;
if ($g->Gene_class && $g->Gene_class->Description) {
$title .= " (${\$g->Gene_class->Description})";
}

print STDERR "processing $g\n" if $debug;
my $data =
" <date_provided>$year</date_provided>\n".
" <date_created>$creation_date</date_created>\n".
" <repository>WormBase</repository>\n".
" <owner>WormBase</owner>\n".
" <title>".$g->CGC_name." (${\$g->Gene_class->Description})</title>\n";
" <title>" . $title . "</title>\n";

### people block ######################
# search through the CGC_name, the Concise_description and the Provisional_description
Expand Down

0 comments on commit e55c5a2

Please sign in to comment.