Skip to content

Commit

Permalink
Fixed BSML output
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Jul 29, 2015
1 parent 356b034 commit 9e7bd0e
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions src/perl/signalp2bsml.pl
Original file line number Diff line number Diff line change
Expand Up @@ -472,25 +472,14 @@ =head1 CONTACT
}
}

## add the analysis element
if ($signalp_version eq "3.0") {
foreach my $a(('nn', 'hmm')) {
my $analysis = $doc->createAndAddAnalysis(
id => 'signalp_'.$a.'_analysis',
sourcename => $options{'output'},
program => "signalp_$a",
algorithm => "signalp_$a",
);
}
} else {
foreach my $a(('best','notm')) {
my $analysis = $doc->createAndAddAnalysis(
id => 'signalp_'.$a.'_analysis',
sourcename => $options{'output'},
program => "signalp_$a",
algorithm => "signalp_$a",
);
}
## 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",
);
}

## now write the doc
Expand Down

0 comments on commit 9e7bd0e

Please sign in to comment.