Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 895 Bytes

README.md

File metadata and controls

27 lines (14 loc) · 895 Bytes

Calculating Protein Mass

Problem

In a weighted alphabet, every symbol is assigned a positive real number called a weight. A string formed from a weighted alphabet is called a weighted string, and its weight is equal to the sum of the weights of its symbols.

The standard weight assigned to each member of the 20-symbol amino acid alphabet is the monoisotopic mass of the corresponding amino acid.

Given: A protein string P of length at most 1000 aa.

Return: The total weight of P. Consult the monoisotopic mass table.

Sample Dataset

SKADYEK

Sample Output

821.392

Code check

Check your code answers at rosalind.info!

Reference

More about the problem can be found here: rosalind.info