Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshhewabi committed Mar 7, 2021
1 parent 1eca960 commit d23de57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ private MzIdValidator(CommandLine cmd) throws Exception{
public IReport validate() {

IReport report = validateMzidSchema(file);
((ResultReport) report).setAssayFile(file.getName());
((ResultReport) report).setFileSize(file.length());
if (report.getNumErrors() > 0)
return report;

Expand All @@ -72,8 +74,6 @@ public IReport validate() {
int numPSMs = piaCompiler.getNrPeptideSpectrumMatches();
int numPeakFiles = spectrumFiles.size();

((ResultReport) report).setAssayFile(file.getName());
((ResultReport) report).setFileSize(file.length());
((ResultReport) report).setNumberOfProteins(numProteins);
((ResultReport) report).setNumberOfPeptides(numPeptides);
((ResultReport) report).setNumberOfPSMs(numPSMs);
Expand Down

0 comments on commit d23de57

Please sign in to comment.