Skip to content

Commit

Permalink
Release v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Aug 10, 2023
1 parent 2d0fa41 commit 5cf94f5
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 10 deletions.
40 changes: 39 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,45 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.


## [Unreleased]
[Unreleased]: https://github.com/althonos/lightmotif/compare/v0.3.0...HEAD
[Unreleased]: https://github.com/althonos/lightmotif/compare/v0.4.0...HEAD


## [v0.4.0] - 2023-08-10
[v0.4.0]: https://github.com/althonos/lightmotif/compare/v0.3.0...v0.4.0

### Changed

#### `lightmotif`
- Improve `DenseMatrix::resize` performance when downsizing.
- Explicitly panic when sequence is too long to be processed with `u32` indices in AVX2 and SSE2.
- Reorganize `DenseMatrix` column alignment and index storage.
- Improve `Score` performance by using pointers instead of slices in SIMD loops.
- Rename `DenseMatrix::columns_effective` to `DenseMatrix::stride`.
- Use streaming intrinsics to store data in AVX2 and SSE2 implementations.
- Rename `BestPosition` trait to `Maximum`.

#### `lightmotif-py`
- Avoid error on missing symbols in `CountMatrix.__init__`

### Added

#### `lightmotif`
- `Threshold` trait to find all position above a certain score in a `StripedScores` matrix.
- `Encode` trait to encode an ASCII sequence into a `Vec<Symbol>`.
- AVX2 implementation of `Score` using `gather` instead of `permute` for protein alphabets.
- `From<Vec<_>>` and `Default` trait implementations to `EncodedSequence`.
- `Alphabet` methods to operate on ASCII strings.
- `StripedScores.is_empty` method to check if a `StripedScores` contains any score.

#### `lightmotif-py`
- `StripedScores.threshold` method wrapping the `Threshold` pipeline operation.
- `StripedScores.max` and `StripedScores.argmax` methods to get the best score and best position.

### Fixed

#### `lightmotif`
- `Score` causing an overflow when given a sequence shorter than the PSSM.
- `Maximum` trait returns the smallest position on equal maxima.


## [v0.3.0] - 2023-06-25
Expand Down
2 changes: 1 addition & 1 deletion lightmotif-bench/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lightmotif-bench"
version = "0.3.0"
version = "0.4.0"
edition = "2021"
publish = false

Expand Down
4 changes: 2 additions & 2 deletions lightmotif-py/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lightmotif-py"
version = "0.3.0"
version = "0.4.0"
authors = ["Martin Larralde <martin.larralde@embl.de>"]
edition = "2021"
license = "MIT"
Expand All @@ -17,7 +17,7 @@ path = "lightmotif/lib.rs"

[dependencies.lightmotif]
path = "../lightmotif"
version = "0.3.0"
version = "0.4.0"
[dependencies]
pyo3 = "0.18.3"
generic-array = "0.14"
Expand Down
2 changes: 1 addition & 1 deletion lightmotif-py/lightmotif/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.3.0"
__version__ = "0.4.0"

from . import lib
from .lib import (
Expand Down
4 changes: 2 additions & 2 deletions lightmotif-tfmpvalue/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lightmotif-tfmpvalue"
version = "0.3.0"
version = "0.4.0"
authors = ["Martin Larralde <martin.larralde@embl.de>"]
edition = "2021"
license = "GPL-3.0"
Expand All @@ -13,7 +13,7 @@ keywords = ["bioinformatics", "motif", "pssm", "pvalue"]

[dependencies.lightmotif]
path = "../lightmotif"
version = "0.3.0"
version = "0.4.0"
[dependencies.fnv]
version = "1.0"
optional = true
Expand Down
4 changes: 2 additions & 2 deletions lightmotif-transfac/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lightmotif-transfac"
version = "0.3.0"
version = "0.4.0"
authors = ["Martin Larralde <martin.larralde@embl.de>"]
edition = "2021"
license = "MIT"
Expand All @@ -13,7 +13,7 @@ keywords = ["bioinformatics", "motif", "parser", "transfac"]

[dependencies.lightmotif]
path = "../lightmotif"
version = "0.3.0"
version = "0.4.0"
[dependencies]
nom = "7"
memchr = "2"
2 changes: 1 addition & 1 deletion lightmotif/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lightmotif"
version = "0.3.0"
version = "0.4.0"
authors = ["Martin Larralde <martin.larralde@embl.de>"]
edition = "2021"
license = "MIT"
Expand Down

0 comments on commit 5cf94f5

Please sign in to comment.