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

Computation of Masses #484

Open
t0mdavid-m opened this issue Jul 14, 2023 · 1 comment
Open

Computation of Masses #484

t0mdavid-m opened this issue Jul 14, 2023 · 1 comment

Comments

@t0mdavid-m
Copy link
Member

Currently masses can only be computed from AtomArray objects (and objects of the related classes) or residue names from the Chemical Component Dictionary, using the biotite.structure.info.mass() function. However, especially for applications related to proteomics, it is useful to compute the masses of sequences. Therefore, I would like to propose to add a similar function to the sequence package (i.e. biotite.sequence.mass() or biotite.sequence.info.mass()).

Masses could be obtained from the biotite.structure.info.mass() function using the residue name for each monomer, while accounting for the mass difference resulting from the linkage.

Furthermore, I would like to suggest adding an option for monoisotopic masses. While these can not be obtained via the Chemical Component Dictionary, they could be parsed from the PubChem database using the SMILES (in the Chemical Component Dictionary) or calculated on the fly.

@padix-key
Copy link
Member

For protein sequences there is ProteinSequence.get_molecular_weight(), so for now this functionality is already implemented. However, I think your solution of a sequence.info would be more consistent with the structure.info package, if the need/request for more sequence information related functionality (masses, isoelectic points,, etc.) arises. Therefore, I would suggest to revisit this idea again, when such features are planned.

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

No branches or pull requests

2 participants