Skip to content

Commit

Permalink
Brought code up-to-date with MSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
plusik committed Dec 14, 2016
1 parent cc45085 commit b4ed287
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
<dependency>
<groupId>io.github.msdk</groupId>
<artifactId>msdk-all</artifactId>
<version>0.0.7-SNAPSHOT</version>
<version>0.0.8-SNAPSHOT</version>
</dependency>

</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
import io.github.msdk.datamodel.rawdata.MsFunction;
import io.github.msdk.datamodel.rawdata.MsScan;
import io.github.msdk.datamodel.rawdata.RawDataFile;
import io.github.msdk.io.mgf.MgfExportAlgorithm;
import io.github.msdk.io.mgf.MgfFileExportMethod;
import io.github.msdk.io.msp.MspExportAlgorithm;
import io.github.msdk.io.mzml.MzMLFileExportMethod;
import io.github.msdk.io.txt.TxtExportAlgorithm;
Expand Down Expand Up @@ -846,7 +846,8 @@ public void handleExportMGF(Event event) {
final File finalFile = file;
new Thread(() -> {
try {
MgfExportAlgorithm.exportSpectra(finalFile, spectra);
MgfFileExportMethod mgfEx = new MgfFileExportMethod(spectra, finalFile);
mgfEx.execute();
} catch (Exception e) {
MZmineGUI.displayMessage("Unable to export: " + e.getMessage());
e.printStackTrace();
Expand Down

0 comments on commit b4ed287

Please sign in to comment.