1 parent 356b034 commit 9e7bd0eCopy full SHA for 9e7bd0e
1 file changed
src/perl/signalp2bsml.pl
@@ -472,25 +472,14 @@ =head1 CONTACT
472
}
473
474
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
488
489
490
491
492
493
+## add the analysis element (stores both v3.0 and v4.0)
+foreach my $a(('best','notm', 'nn', 'hmm')) {
+ my $analysis = $doc->createAndAddAnalysis(
+ id => 'signalp_'.$a.'_analysis',
+ sourcename => $options{'output'},
+ program => "signalp_$a",
+ algorithm => "signalp_$a",
+ );
494
495
496
## now write the doc
0 commit comments