Skip to content

Commit 9e7bd0e

Browse files
committed
Fixed BSML output
1 parent 356b034 commit 9e7bd0e

1 file changed

Lines changed: 8 additions & 19 deletions

File tree

src/perl/signalp2bsml.pl

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -472,25 +472,14 @@ =head1 CONTACT
472472
}
473473
}
474474

475-
## add the analysis element
476-
if ($signalp_version eq "3.0") {
477-
foreach my $a(('nn', 'hmm')) {
478-
my $analysis = $doc->createAndAddAnalysis(
479-
id => 'signalp_'.$a.'_analysis',
480-
sourcename => $options{'output'},
481-
program => "signalp_$a",
482-
algorithm => "signalp_$a",
483-
);
484-
}
485-
} else {
486-
foreach my $a(('best','notm')) {
487-
my $analysis = $doc->createAndAddAnalysis(
488-
id => 'signalp_'.$a.'_analysis',
489-
sourcename => $options{'output'},
490-
program => "signalp_$a",
491-
algorithm => "signalp_$a",
492-
);
493-
}
475+
## add the analysis element (stores both v3.0 and v4.0)
476+
foreach my $a(('best','notm', 'nn', 'hmm')) {
477+
my $analysis = $doc->createAndAddAnalysis(
478+
id => 'signalp_'.$a.'_analysis',
479+
sourcename => $options{'output'},
480+
program => "signalp_$a",
481+
algorithm => "signalp_$a",
482+
);
494483
}
495484

496485
## now write the doc

0 commit comments

Comments
 (0)