Skip to content

Commit

Permalink
Merge pull request #99 from PRIDE-Archive/MzTabReferenceRawFile
Browse files Browse the repository at this point in the history
Mz tab reference raw file
  • Loading branch information
ypriverol authored Aug 5, 2020
2 parents 3df74bc + 9af25f0 commit cd8433a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PX Submission Tool is a desktop application to submit the data to proteomeXchang

# Quick Download

[<img src="https://raw.githubusercontent.com/PRIDE-Toolsuite/pride-inspector/master/wiki/download.png">](https://github.com/PRIDE-Archive/px-submission-tool/releases/download/2.4.17/px-submission-tool-2.4.17.zip)
[<img src="https://raw.githubusercontent.com/PRIDE-Toolsuite/pride-inspector/master/wiki/download.png">](https://github.com/PRIDE-Archive/px-submission-tool/releases/download/2.4.18/px-submission-tool-2.4.18.zip)

Please unzip and run `px-submission-tool-<version number>.jar` file!

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>uk.ac.ebi.pride.px</groupId>
<artifactId>px-submission-tool</artifactId>
<packaging>jar</packaging>
<version>2.4.17</version>
<version>2.4.18</version>
<name>px-submission-tool</name>
<url>https://github.com/proteomexchange/px-submission-tool</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,17 +341,17 @@ private Map<DataFile, Set<String>> checkMzTabFileReferences(List<DataFile> mzTab
errorEntry = mzTabFile.getMzTabDocument().getMetaData().getMsRunEntry(msRunIndex).getLocation().toString();
} else {
// The file is in the list of files part of the current submission process
// Check that the referenced file is a Peak List file
if (dataFiles.get(referencedFile).getFileType() != ProjectFileType.PEAK) {
// Check that the referenced file is a Raw file
if (dataFiles.get(referencedFile.toLowerCase()).getFileType() != ProjectFileType.RAW) {
// Flag the error
errorFlagged = true;
// Log the error
errorLogMsg = "mzTab file '" + mzTabFile.getFilePath()
+ "' references NON-Peak List file '"
+ "' references NON-RAW file '"
+ referencedFile
+ "', which is NOT ALLOWED";
// Report the error
errorEntry = "NON-Peak List referenced file '"
errorEntry = "NON-RAW file '"
+ referencedFile
+ "', is NOT ALLOWED";
}
Expand Down

0 comments on commit cd8433a

Please sign in to comment.