Protool/properties.py
def calculate_mass(PI):
    """Calculate the mass of all protein atoms in a Protool instance"""
    weight=0.0
    for residue in PI.residues:
        if PI.isaa(residue):
            weight=weight+PI.all_attribute[PI.three_to_one[PI.resname(residue)]]['Mw']
    return weight-16.0
Calculate the mass of all protein atoms in a Protool instance
Calculate the mass of all protein atoms in a Protool instance
Calculate the mass of all protein atoms in a Protool instance
def calculate_mass(PI):
    weight=0.0
    for residue in PI.residues:
        if PI.isaa(residue):
            weight=weight+PI.all_attribute[PI.three_to_one[PI.resname(residue)]]['Mw']
    return weight-16.0
def calculate_mass ( PI ) : weight = 0.0 for residue in PI . residues : if PI . isaa ( residue ) : weight = weight + PI . all_attribute [ PI . three_to_one [ PI . resname ( residue ) ] ] [ 'Mw' ] return weight - 16.0
Calculate the mass of all protein atoms in a Protool instance
Calculate the mass of all protein atoms in a Protool instance
"""Calculate the mass of all protein atoms in a Protool instance"""
PI