Skip to content

Commit

Permalink
Merge pull request #20 from wfondrie/mod_parsing
Browse files Browse the repository at this point in the history
Fixed problem with parsing modifications from pepXML.
  • Loading branch information
Will Fondrie authored Mar 11, 2021
2 parents 2aa978c + 7ca986f commit 50431f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Changelog for mokapot

## [Unreleased]
## [0.6.1] - 2021-03-11
### Fixed
- Parsing Percolator tab-delimited files with a "DefaultDirection" line.
- `Label` column is now converted to boolean during PIN file parsing.
Previously, problems occurred if the `Label` column was of dtype `object`.
- Parsing modifications from pepXML files were indexed incorrectly on the
peptide string.

## [0.6.0] - 2021-03-03
### Added
Expand Down
1 change: 1 addition & 0 deletions mokapot/parsers/pepxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def _parse_psm(psm_info, spec_info, decoy_prefix):
idx = offset + int(mod.get("position"))
mass = mod.get("mass")
mod_pep = mod_pep[:idx] + "[" + mass + "]" + mod_pep[idx:]
offset += 2 + len(mass)

psm["peptide"] = mod_pep

Expand Down

0 comments on commit 50431f1

Please sign in to comment.