Skip to content

Commit

Permalink
Add assigned_by column to GenericAnnotation parser
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed Sep 17, 2024
1 parent 02d042b commit c7935ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/PomBase/Import/GenericAnnotation.pm
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ sub load {

my $csv = Text::CSV->new({ sep_char => "\t", allow_loose_quotes => 1 });

$csv->column_names(qw(systematic_id feature_name term_id evidence_code publication_id date qualifiers extension));
$csv->column_names(qw(systematic_id feature_name term_id evidence_code publication_id date qualifiers extension assigned_by));

my $null_pub = $self->find_or_create_pub('null');

Expand Down Expand Up @@ -141,6 +141,7 @@ sub load {
my $publication_id = trim($columns{"publication_id"});
my $date = trim($columns{"date"});
my $qualifiers = trim($columns{"qualifiers"});
my $assigned_by = trim($columns{"assigned_by"});

my $extension = undef;
if (@fields >= 7) {
Expand Down Expand Up @@ -248,6 +249,9 @@ sub load {
if ($date) {
$self->add_feature_cvtermprop($feature_cvterm, 'date', $date);
}
if ($assigned_by) {
$self->add_feature_cvtermprop($feature_cvterm, 'assigned_by', $assigned_by);
}
};
try {
Expand Down

0 comments on commit c7935ac

Please sign in to comment.