Skip to content

New Feature: Molecular weight calculations for BioSequences #262

@benjaminlozanow

Description

@benjaminlozanow

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions