Skip to content

Commit

Permalink
fixing m/z calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
julianu committed May 7, 2024
1 parent 1af95ae commit bf50872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psm_utils/io/xtandem.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _parse_entry(self, entry, run: str) -> list:
score = -np.log(peptide_entry[self.score_key])
if self.score_key == "expect"
else peptide_entry[self.score_key],
precursor_mz = entry["mh"] - mass.nist_mass["H"][0][0],
precursor_mz = entry["mh"] / entry["z"],
retention_time = entry["rt"],
run = run,
protein_list = [ protein_entry["note"] ],
Expand Down

0 comments on commit bf50872

Please sign in to comment.