Skip to content

Commit

Permalink
Release v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Jun 28, 2024
1 parent e0f3530 commit b11557f
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 11 deletions.
35 changes: 34 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,40 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.


## [Unreleased]
[Unreleased]: https://github.com/althonos/lightmotif/compare/v0.7.3...HEAD
[Unreleased]: https://github.com/althonos/lightmotif/compare/v0.8.0...HEAD


## [v0.8.0] - 2024-06-28
[v0.8.0]: https://github.com/althonos/lightmotif/compare/v0.7.3...v0.8.0

### Added

#### `lightmotif`
- `lightmotif::pwm::DiscreteMatrix` to store a discretized `ScoringMatrix`.
- `MatrixElement` marker trait for `Default + Copy` types that can be used as a `DenseMatrix` element.
- `lightmotif::scores::Scores` wrapper of `Vec<T>` with shortcut `max`, `threshold` and `argmax` methods.
- AVX2 and NEON implementations of `Score<u8, Dna>` pipeline operation.

### Fixed

#### `lightmotif`
- Remove requirement for `T: Debug` in `Clone` implementation of `DenseMatrix<T>`.
- SSE2 and AVX2 implementations of `Argmax` not returning the last index in case of ties.

#### `lightmotif-tfmpvalue`
- Cache internal buffer for Q-values to avoid reallocation between iterations.

### Changed

#### `lightmotif`
- Cache the `Pipeline` used in `lightmotif::scan::Scanner`.
- Make `lightmotif::scores::StripedScores` generic over the score type.
- Make `Maximum` and `Threshold` generic over the score type.
- Use a discrete matrix in `Scanner` to quickly eliminate blocks without candidate position above given threshold.
- Compile crate without the `rand` and `rand-distr` features by default.

#### `lightmotif-py`
- Update `pyo3` dependency to `v0.22.0`.


## [v0.7.3] - 2024-06-17
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.7.3"
version = "0.8.0"
edition = "2021"
publish = false

Expand Down
4 changes: 2 additions & 2 deletions lightmotif-io/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lightmotif-io"
version = "0.7.3"
version = "0.8.0"
authors = ["Martin Larralde <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -20,4 +20,4 @@ generic-array = "1.0"

[dependencies.lightmotif]
path = "../lightmotif"
version = "0.7.3"
version = "0.8.0"
6 changes: 3 additions & 3 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.7.3"
version = "0.8.0"
authors = ["Martin Larralde <[email protected]>"]
edition = "2021"
license = "MIT OR GPL-3.0-or-later"
Expand All @@ -17,11 +17,11 @@ path = "lightmotif/lib.rs"

[dependencies.lightmotif]
path = "../lightmotif"
version = "0.7.3"
version = "0.8.0"
[dependencies.lightmotif-tfmpvalue]
optional = true
path = "../lightmotif-tfmpvalue"
version = "0.7.3"
version = "0.8.0"
[dependencies]
pyo3 = "0.22.0"
generic-array = "1.0.0"
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.7.3"
__version__ = "0.8.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.7.3"
version = "0.8.0"
authors = ["Martin Larralde <[email protected]>"]
edition = "2021"
license = "GPL-3.0-or-later"
Expand All @@ -13,5 +13,5 @@ keywords = ["bioinformatics", "motif", "pssm", "pvalue"]

[dependencies.lightmotif]
path = "../lightmotif"
version = "0.7.3"
version = "0.8.0"

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.7.3"
version = "0.8.0"
authors = ["Martin Larralde <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down

0 comments on commit b11557f

Please sign in to comment.