.getPeptideSequence(peptideSearchResult);
if (peptideSequence == null) {
LOG.warn("Error while geting peptide sequnce for " + peptideSearchResult.getId());
continue;
}
ResultsAnalyserOutputter outputter;
outputter = new ResultsAnalyserOutputter(peptideSearchResult,
proteinToOLNMap, genome, peptideSequence,
translationTable);
if (outputter.isValid()) {
output.write(outputter.toString());
output.write(System.getProperty("line.separator"));
}
}
} else {
for (PeptideSearchResult peptideSearchResult : peptideSearchResults) {
PeptideSequence peptideSequence = sequenceGenerator
.getPeptideSequence(peptideSearchResult);
if (peptideSequence == null) {
LOG.warn("Error while geting peptide sequnce for " + peptideSearchResult.getId());
continue;
}
ResultsAnalyserOutputter outputter;
outputter = new ResultsAnalyserOutputter(peptideSearchResult,
proteinToOLNMap, genome, peptideSequence);
if (outputter.isValid()) {
output.write(outputter.toString());
output.write(System.getProperty("line.separator"));
}
}
}