Skip to content

Commit

Permalink
Merge pull request #14 from sureshhewabi/master
Browse files Browse the repository at this point in the history
updated PIA
  • Loading branch information
sureshhewabi authored Dec 21, 2021
2 parents 28dbb57 + 8ffb417 commit 39ccedc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 13 deletions.
12 changes: 8 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
<groupId>uk.ac.ebi.pride.toolsuite</groupId>
<artifactId>submission-tool-validator</artifactId>
<name>submission-tool-validator</name>
<version>1.0.5</version>
<version>1.0.6</version>
<packaging>jar</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<archive.repo.version>1.0.2</archive.repo.version>
<px.submission.core.version>2.0.28</px.submission.core.version>
<px.submission.core.version>2.0.32</px.submission.core.version>
<javax.activation.version>1.2.0</javax.activation.version>
<jaxb.api.version>2.3.1</jaxb.api.version>
<pia.version>1.3.18</pia.version>
<pia.version>1.3.23</pia.version>
<uk.ac.ebi.pride.tools-jmzreader.version>2.0.6</uk.ac.ebi.pride.tools-jmzreader.version>
<cpdetector.version>1.0.7</cpdetector.version>
</properties>

<dependencies>
<dependency>
<groupId>cpdetector</groupId>
<groupId>net.sourceforge.cpdetector</groupId>
<artifactId>cpdetector</artifactId>
<version>${cpdetector.version}</version>
</dependency>
Expand All @@ -45,6 +45,10 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>uk.ac.ebi.pride</groupId>
<artifactId>px-submission-core</artifactId>
</exclusion>
<!-- exclude this as this fails to download from maven a lot. Instead include it separately-->
<exclusion>
<groupId>net.sourceforge.cpdetector</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package uk.ac.ebi.pride.toolsuite.px_validator;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.cli.*;
import org.apache.log4j.Logger;
import uk.ac.ebi.pride.toolsuite.px_validator.utils.IReport;

import java.io.File;
Expand All @@ -14,9 +14,9 @@
*
* @author ypriverol
*/
@Slf4j
public class SubmissionToolValidator {

private static final Logger log = Logger.getLogger(SubmissionToolValidator.class);

/**
* Main class that gets run. Parses command line arguments, starts either the converter or validation operations.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package uk.ac.ebi.pride.toolsuite.px_validator;

import lombok.extern.slf4j.Slf4j;
import org.apache.commons.cli.CommandLine;

import org.apache.log4j.Logger;
import uk.ac.ebi.pride.toolsuite.px_validator.utils.*;
import uk.ac.ebi.pride.toolsuite.px_validator.validators.MzIdValidator;
import uk.ac.ebi.pride.toolsuite.px_validator.validators.MzTabValidator;
Expand All @@ -21,10 +21,9 @@
*
* @author ypriverol
*/
@Slf4j
public class Validator {

private static final Logger log = Logger.getLogger(Validator.class);


/**
* This class parses the command line arguments and beings the file validation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import com.google.common.io.Files;
import de.mpc.pia.intermediate.PeptideSpectrumMatch;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.FileUtils;
import org.apache.log4j.Logger;
import uk.ac.ebi.jmzidml.model.mzidml.FileFormat;
import uk.ac.ebi.jmzidml.model.mzidml.SpectraData;
import uk.ac.ebi.pride.utilities.util.Triple;
Expand All @@ -15,8 +15,8 @@
import java.util.Iterator;
import java.util.List;

@Slf4j
public class Utility {
private static final Logger log = Logger.getLogger(Utility.class);

public static final String ARG_VALIDATION = "v";
public static final String ARG_CONVERSION = "c";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.apache.commons.cli.CommandLine;
import uk.ac.ebi.pride.data.exception.SubmissionFileException;

import uk.ac.ebi.pride.data.io.SubmissionFileParser;
import uk.ac.ebi.pride.data.model.Submission;
import uk.ac.ebi.pride.data.validation.SubmissionValidator;
Expand Down Expand Up @@ -44,8 +45,7 @@ public IReport validate(){
for(ValidationMessage message: submissionValidator.getMessages()){
report.addException(new IOException(message.getMessage()), message.getType());
}

} catch (SubmissionFileException e) {
} catch (SubmissionFileException | IOException e) {
report.addException(e, ValidationMessage.Type.ERROR);

}
Expand Down

0 comments on commit 39ccedc

Please sign in to comment.