diff --git a/casanovo/data/db_utils.py b/casanovo/data/db_utils.py index 95ef2d13..d3670930 100644 --- a/casanovo/data/db_utils.py +++ b/casanovo/data/db_utils.py @@ -150,8 +150,7 @@ def _digest_fasta( # Calculate the mass of each peptide. mass_calculator = depthcharge.masses.PeptideMass(residues="massivekb") peptides["calc_mass"] = ( - peptides["peptide"].apply(mass_calculator.mass) - .round(5) + peptides["peptide"].apply(mass_calculator.mass).round(5) ) # Sort by peptide mass and index by peptide sequence. peptides.sort_values(