Skip to content

Commit

Permalink
avoid empty value for GO term represented by dash (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacques Dainat committed Jul 13, 2022
1 parent 57d676e commit 871d066
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/agat_sp_manage_functional_annotation.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,8 @@ sub parse_interpro_tsv {
my @go_list = split(/\|/, $go_flat_list); #cut at character |
foreach my $go_tuple (@go_list) {
print "GO term: ".$go_tuple."\n" if ($opt_verbose);

next if $go_tuple eq "-"; #fix kira

if (! grep( /^\Q$go_tuple\E$/, @{$functionData{$db_name}{$mRNAID}} )) { #to avoid duplicate
$TotalTerm{$db_name}++;
push ( @{$functionData{$db_name}{$mRNAID}}, $go_tuple );
Expand Down

0 comments on commit 871d066

Please sign in to comment.