Skip to content

Commit

Permalink
Fix error in RIKEN msp format.
Browse files Browse the repository at this point in the history
  • Loading branch information
meier-rene committed Jan 22, 2025
1 parent 033f7ad commit 6d66019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/massbank/RecordToRIKEN_MSP.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static String convert(Record record) {
return sb.toString();
}

sb.append("NAME : ").append(record.CH_NAME().get(0)).append(System.lineSeparator());
sb.append("NAME: ").append(record.CH_NAME().get(0)).append(System.lineSeparator());
Map<String, String> MS_FOCUSED_ION = record.MS_FOCUSED_ION_asMap();
sb.append("PRECURSORMZ: ").append((MS_FOCUSED_ION.getOrDefault("PRECURSOR_M/Z", ""))).append(System.lineSeparator());
sb.append("PRECURSORTYPE: ").append((MS_FOCUSED_ION.getOrDefault("PRECURSOR_TYPE", "NA"))).append(System.lineSeparator());
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/ExportServiceControllerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void testCreateConversionTaskNistMSP() throws Exception {
public void testCreateConversionTaskRikenMSP() throws Exception {
String requestBody = "{ \"record_list\": [\"MSBNK-IPB_Halle-PB001341\"], \"format\": \"riken_msp\" }";
String expectedResponse = """
NAME : Rutin
NAME: Rutin
PRECURSORMZ:\s
PRECURSORTYPE: [M+H]+
FORMULA: C27H30O16
Expand Down

0 comments on commit 6d66019

Please sign in to comment.