Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Todo MSP Parser #28

Open
yguitton opened this issue Oct 29, 2020 · 3 comments
Open

Todo MSP Parser #28

yguitton opened this issue Oct 29, 2020 · 3 comments
Assignees

Comments

@yguitton
Copy link
Owner

Todo: add a parser for MSP files generated by MoNa or Riken, Golm
Todo: add additional Tags in metaMS identification outputs

example Riken MSP
NAME: CITRIC ACID-TETRA-TMS; EI-B; MS
EXACTMASS: 480.1851098
FORMULA: C18H40O7Si4
SMILES: CSi(C)OC(=O)CC(CC(=O)OSi(C)C)(OSi(C)C)C(=O)OSi(C)C
ONTOLOGY: Tricarboxylic acids and derivatives
INCHIKEY: VFGAVMGYDWDESE-UHFFFAOYSA-N
RETENTIONTIME: -1
RETENTIONINDEX: 1788.907
QUANTMASS: 75
IONMODE: Positive
COLLISIONENERGY: 70eV
LICENSE: CC BY-SA
Comment:
Num Peaks: 141

@yguitton yguitton self-assigned this Oct 29, 2020
@YonghuiDong
Copy link

The peak information is misisng In your example MSP file.

In case you are interested, you can refer to the code from @yufree to read MSP files from MoNa or Riken,
https://github.com/yufree/enviGCMS/blob/c458d9458c9348fc62b31caaf1f19bbf111aff15/R/io.R#L112-L158

Yonghui Dong

@valpalgal
Copy link

I tried to read in a NIST .MSP file and got the following error:
Error in read.compound(huhn[starts[i]:ends[i]], noNumbers = noNumbers) :
No spectrum found

When I look at the MSP file though, there is a line called "Num Peaks:" that should be detected based on what I'm seeing in the read.msp function for metaMS.

@yguitton
Copy link
Owner Author

Hi @valpalgal

There are different "flavours" of NIST .msp spectra files depending on the software/lab used to generate ir. can you share on file with me?

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants