This repository was archived by the owner on May 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
src/main/java/net/sf/mzmine/modules/peaklistmethods/io/spectraldbsubmit Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ private enum Result {
78
78
public static final String GNPS_LIBRARY_SUBMIT_URL =
79
79
"http://dorresteinappshub.ucsd.edu:5050/depostsinglespectrum" ;
80
80
81
+ public static final String SOURCE_DESCRIPTION = "mzmine2 library entry submission" ;
82
+
81
83
private Logger log = Logger .getLogger (this .getClass ().getName ());
82
84
private Map <LibrarySubmitIonParameters , DataPoint []> map ;
83
85
private int done = 0 ;
@@ -261,9 +263,12 @@ private void submitGNPS(String json) {
261
263
// ######################################################
262
264
// NEEDED
263
265
// user pass and json entry
266
+ //
264
267
entity .addPart ("username" , new StringBody (USER ));
265
268
entity .addPart ("password" , new StringBody (PASS ));
266
269
entity .addPart ("spectrum" , new StringBody (json ));
270
+ // job description is not entry description
271
+ entity .addPart ("description" , new StringBody (SOURCE_DESCRIPTION ));
267
272
268
273
HttpPost httppost = new HttpPost (GNPS_LIBRARY_SUBMIT_URL );
269
274
httppost .setEntity (entity );
Original file line number Diff line number Diff line change @@ -466,8 +466,8 @@ protected boolean checkParameters() {
466
466
// check
467
467
ArrayList <String > messages = new ArrayList <>();
468
468
469
- boolean checkIon =
470
- streamSelection () .filter (pn -> !pn .checkParameterValues (messages )).count () == 0 ;
469
+ boolean checkIon = streamSelection (). filter ( ScanSelectPanel :: isValidAndSelected )
470
+ .filter (pn -> !pn .checkParameterValues (messages )).count () == 0 ;
471
471
boolean checkSubmit = paramSubmit .checkParameterValues (messages );
472
472
boolean checkMeta = paramMeta .checkParameterValues (messages );
473
473
if (checkMeta && checkSubmit && checkIon ) {
You can’t perform that action at this time.
0 commit comments