biopython/biopython — pull request #235 by MarkusPiotrowski (2013-09-05 15:22:30+00:00)
Title: Bugfix for DNA/RNA masses

In Bio.Data.IUPACData:
- corrected masses for monophosphate nucleotides in unambiguous_dna_weights and unambiguous_rna_weights (most values where too high by a mass of 16 Da)
- added two dictionaries with monoisotopic masses for monophosphate nucleotides (monoisotopic_unambiguous_dna_weights and monoisotopic_unambiguous_rna_weights)
- added average and monisotopic masses for selenocysteine and pyrrolysine in protein_weights and monoisotopic_protein_weights

In Bio.SeqUtils.__init__:
Rewrote method molecular_weight to
- correct the calculation (sum masses of sequence elements and substract 18 Da for each formed bond)
- allow mass calculation for RNA and protein sequences
- allow mass calculation for double stranded nucleic acids