Skip to content

Commit c34d873

Browse files
version small peptides
1 parent 060c02c commit c34d873

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to
77
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88

9+
## [3.1.8] - 2025-02-21
10+
11+
### Changed
12+
13+
- Allow for much smaller peptides in feature calculation
14+
915
## [3.1.7] - 2025-02-03
1016

1117
### Changed

deeplc/feat_extractor.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,11 @@ def rolling_sum(a, n=2):
412412
)
413413

414414
for p in positions_pos:
415-
aa = seq[p]
415+
try:
416+
aa = seq[p]
417+
except:
418+
warn_once(f"Unable to get the following position: {p}")
419+
continue
416420
for atom, val in mass.std_aa_comp[aa].items():
417421
try:
418422
matrix_pos[p, dict_index_pos[atom]] = val
@@ -422,7 +426,11 @@ def rolling_sum(a, n=2):
422426
warn_once(f"Could not add the following atom: {p} {atom} {val}")
423427

424428
for pn in positions_neg:
425-
aa = seq[seq_len + pn]
429+
try:
430+
aa = seq[seq_len + pn]
431+
except:
432+
warn_once(f"Unable to get the following position: {p}")
433+
continue
426434
for atom, val in mass.std_aa_comp[aa].items():
427435
try:
428436
matrix_pos[pn, dict_index_pos[atom]] = val

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "deeplc"
3-
version = "3.1.7"
3+
version = "3.1.8"
44
description = "DeepLC: Retention time prediction for (modified) peptides using Deep Learning."
55
readme = "README.md"
66
license = { file = "LICENSE" }

0 commit comments

Comments
 (0)