-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Description: I propose adding a new function molecular_weight() to the BioSequences package that calculates the average or monoisotopic molecular weight of a protein or nucleic acid sequence. The function should take several optional parameters, such as double_stranded, circular, and monoisotopic, that allow users to customize the calculation.
Problem: Currently, BioSequences or any other BioJulia package does not provide a built-in way to calculate the molecular weight of a sequence. This is an important feature for many bioinformatics applications, and having it included in the package would be a valuable addition.
Code: I have written the following code to implement the function based on how the implementation was done in BioPython. The code includes support for calculating the molecular weight of RNA, DNA, and amino acid sequences. It also includes tables of weights for the different types of nucleotides and amino acids. I was thinking of adding the feature into longsequences/calculations.jl.
Let me know if it is something worth to pull request.
Regards,
Ben