Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
diegozea committed Jul 1, 2024
1 parent 1779e58 commit b8c96e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## MIToS.jl Release Notes

### Changes from v2.21.0 to dev
### Changes from v2.21.0 to v2.22.0

This versions introduces several breaking changes to improve the usability of the
`Information` module. The main changes are:

* *[Breaking change]* The `Information` module deprecates the `Counts` type in favor of
the new `Frequencies` type. The new type as the same signature and behavior as the old one.
Expand Down Expand Up @@ -34,10 +37,6 @@
deprecated in favor of a method relying on the `base` keyword argument. As an example of
migration, `mutual_information(p, 2)` should be replaced by `mutual_information(p, base=2)`.

* The `frequencies!`, `frequencies`, `probabilities!`, and `probabilities` functions now
accept arrays of `Residue`s of any dimension. Therefore, there is no need to use the
`vec` function to convert the arrays to vectors.

* *[Breaking change]* The `mapcolpairfreq!` and `mapseqpairfreq!` functions now uses the
boolean `usediagonal` keyword argument to indicate if the function should be applied to
the diagonal elements of the matrix (the default is `true`). Before, this was done passing
Expand All @@ -57,6 +56,10 @@
`AbstractArray{Residue}` as input, e.g. an MSA. Those methods use the `mapfreq` function
under the hood to ease the calculation of the information measures on MSAs.

* The `frequencies!`, `frequencies`, `probabilities!`, and `probabilities` functions now
accept arrays of `Residue`s of any dimension. Therefore, there is no need to use the
`vec` function to convert the arrays to vectors.

* The `MSA` module now exports the `WeightType` union type to represent `weights`.

### Changes from v2.20.0 to v2.21.0
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "MIToS"
uuid = "51bafb47-8a16-5ded-8b04-24ef4eede0b5"
version = "2.21.0"
version = "2.22.0"

[deps]
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
Expand Down

4 comments on commit b8c96e1

@diegozea
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/110128

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.22.0 -m "<description of version>" b8c96e1aad990237b3e6f3d36100b1c94849f56e
git push origin v2.22.0

@diegozea
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

This versions introduces several breaking changes to improve the usability of the
Information module. The main changes are:

  • [Breaking change] The Information module deprecates the Counts type in favor of
    the new Frequencies type. The new type as the same signature and behavior as the old one.

  • [Breaking change] The count function on sequences has been deprecated in favor of the
    frequencies function, which has the same signature and behavior as the old one.

  • [Breaking change] The count! function is deprecated in favor of frequencies!.
    The new function use keyword arguments to define the weights and pseudocounts. As an
    example of migration, count!(table, weights, pseudocounts, seqs...) should be replaced
    by frequencies!(table, seqs..., weights=weights, pseudocounts=pseudocounts).

  • [Breaking change] The probabilities! method using positional arguments for the
    weights, pseudocounts and pseudofrequencies is deprecated in favor the one that uses
    keyword arguments. As an example of migration,
    probabilities!(table, weights, pseudocounts, pseudofrequencies, seqs...)
    should be replaced by
    probabilities!(table, seqs..., weights=weights, pseudocounts=pseudocounts, pseudofrequencies=pseudofrequencies).

  • [Breaking change] The Information has deprecated the entropy method on
    Frequencies and Probabilities in favor of the shannon_entropy function. The
    definition of the base is now done using the base keyword argument. As an example of
    migration, entropy(p, 2) should be replaced by shannon_entropy(p, base=2).

  • [Breaking change] The marginal_entropy methods based on positional arguments are
    deprecated in favor of a method relying on the margin and base keyword arguments.
    As an example of migration, marginal_entropy(p, 2, 2.0) should be replaced by
    marginal_entropy(p, margin=2, base=2.0).

  • [Breaking change] The mutual_information method based on positional arguments is
    deprecated in favor of a method relying on the base keyword argument. As an example of
    migration, mutual_information(p, 2) should be replaced by mutual_information(p, base=2).

  • [Breaking change] The mapcolpairfreq! and mapseqpairfreq! functions now uses the
    boolean usediagonal keyword argument to indicate if the function should be applied to
    the diagonal elements of the matrix (the default is true). Before, this was done passing
    Val{true} or Val{false} as the last positional argument.

  • The mapcolfreq!, mapseqfreq!, mapcolpairfreq!, and mapseqpairfreq! methods using
    keyword arguments, now pass the extra keyword arguments to the mapped function.

  • The Information module now exports the mapfreq function that offers a more high-level
    interface to the mapcolfreq!, mapseqfreq!, mapcolpairfreq!, and mapseqpairfreq!
    functions. This function allows the user to map a function to the residue frequencies or
    probabilities of the columns or sequences of an MSA. When rank = 2, the function is
    applied to pairs of sequences or columns.

  • The Information module now exports methods of the shannon_entropy, kullback_leibler,
    mutual_information, and normalized_mutual_information functions that take an
    AbstractArray{Residue} as input, e.g. an MSA. Those methods use the mapfreq function
    under the hood to ease the calculation of the information measures on MSAs.

  • The frequencies!, frequencies, probabilities!, and probabilities functions now
    accept arrays of Residues of any dimension. Therefore, there is no need to use the
    vec function to convert the arrays to vectors.

  • The MSA module now exports the WeightType union type to represent weights.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/110128

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.22.0 -m "<description of version>" b8c96e1aad990237b3e6f3d36100b1c94849f56e
git push origin v2.22.0

Please sign in to comment.