Skip to content

Commit

Permalink
version small peptides
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbinBouwmeester committed Feb 21, 2025
1 parent 060c02c commit c34d873
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.8] - 2025-02-21

### Changed

- Allow for much smaller peptides in feature calculation

## [3.1.7] - 2025-02-03

### Changed
Expand Down
12 changes: 10 additions & 2 deletions deeplc/feat_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,11 @@ def rolling_sum(a, n=2):
)

for p in positions_pos:
aa = seq[p]
try:
aa = seq[p]
except:
warn_once(f"Unable to get the following position: {p}")
continue
for atom, val in mass.std_aa_comp[aa].items():
try:
matrix_pos[p, dict_index_pos[atom]] = val
Expand All @@ -422,7 +426,11 @@ def rolling_sum(a, n=2):
warn_once(f"Could not add the following atom: {p} {atom} {val}")

for pn in positions_neg:
aa = seq[seq_len + pn]
try:
aa = seq[seq_len + pn]
except:
warn_once(f"Unable to get the following position: {p}")
continue
for atom, val in mass.std_aa_comp[aa].items():
try:
matrix_pos[pn, dict_index_pos[atom]] = val
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "deeplc"
version = "3.1.7"
version = "3.1.8"
description = "DeepLC: Retention time prediction for (modified) peptides using Deep Learning."
readme = "README.md"
license = { file = "LICENSE" }
Expand Down

0 comments on commit c34d873

Please sign in to comment.