-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from julianu/main
Fixing a problem with annotations in the PSI OBO for PSM scores
- Loading branch information
Showing
6 changed files
with
13,056 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/test/java/de/mpc/pia/modeller/exporter/MzIdentML12Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package de.mpc.pia.modeller.exporter; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertTrue; | ||
|
||
import java.io.File; | ||
|
||
import org.junit.Before; | ||
import org.junit.Ignore; | ||
import org.junit.Test; | ||
|
||
import de.mpc.pia.intermediate.compiler.PIACompiler; | ||
import de.mpc.pia.intermediate.compiler.PIASimpleCompiler; | ||
|
||
|
||
public class MzIdentML12Test { | ||
|
||
@Test | ||
@Ignore("Unfortunately, loading Unmarshaller for mzid 1.1 and mzid 1.2 in same test suite breaks everything") | ||
public void testMzIdentMLv1_2_0Import() { | ||
PIACompiler piaCompiler = new PIASimpleCompiler(); | ||
|
||
File cometMzid12Results = new File(MzIdentML12Test.class.getResource("/comet_mzid12.mzid").getPath()); | ||
assertTrue(piaCompiler.getDataFromFile("mzid", cometMzid12Results.getAbsolutePath(), null, null)); | ||
|
||
piaCompiler.buildClusterList(); | ||
piaCompiler.buildIntermediateStructure(); | ||
|
||
piaCompiler.setName("testFile"); | ||
|
||
assertEquals("Wrong number of PIA Input files", 1, piaCompiler.getAllFileIDs().size()); | ||
assertEquals("Wrong number of imported peptides", 600, piaCompiler.getNrPeptides()); | ||
assertEquals("Wrong number of imported PSMs", 610, piaCompiler.getNrPeptideSpectrumMatches()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.