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

Add molmass #69

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Add molmass #69

merged 1 commit into from
Oct 8, 2024

Conversation

covracer
Copy link
Contributor

@covracer covracer commented Oct 8, 2024

molmass is awesome because it makes calculating molecular mass easy. Quick example of a 4-nucleotide, single-stranded RNA:

In [3]: molmass.Formula('ssrna(AUGC)')
Out[3]: Formula('((C10H12N5O6P)(C9H12N3O7P)(C10H12N5O7P)(C9H11N2O8P)H2O)')

In [4]: molmass.Formula('ssrna(AUGC)').spectrum(min_intensity=0.1).dataframe()
Out[4]: 
             Relative mass  Fraction  Intensity %          m/z
Mass number                                                   
1303           1303.177109  0.582934   100.000000  1303.177109
1304           1304.179800  0.281254    48.247964  1304.179800
1305           1305.182090  0.101234    17.366297  1305.182090
1306           1306.184457  0.027016     4.634415  1306.184457
1307           1307.186735  0.006120     1.049916  1307.186735
1308           1308.189025  0.001195     0.205047  1308.189025

Copy link
Owner

@lmmentel lmmentel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lmmentel lmmentel merged commit 2cc470e into lmmentel:master Oct 8, 2024
1 check passed
@covracer covracer deleted the patch-1 branch October 10, 2024 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants