-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b8c96e1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
b8c96e1
There was a problem hiding this comment.
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.
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:
b8c96e1
There was a problem hiding this comment.
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 theCounts
type in favor ofthe 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 thefrequencies
function, which has the same signature and behavior as the old one.[Breaking change] The
count!
function is deprecated in favor offrequencies!
.The new function use keyword arguments to define the weights and pseudocounts. As an
example of migration,
count!(table, weights, pseudocounts, seqs...)
should be replacedby
frequencies!(table, seqs..., weights=weights, pseudocounts=pseudocounts)
.[Breaking change] The
probabilities!
method using positional arguments for theweights, 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 theentropy
method onFrequencies
andProbabilities
in favor of theshannon_entropy
function. Thedefinition of the base is now done using the
base
keyword argument. As an example ofmigration,
entropy(p, 2)
should be replaced byshannon_entropy(p, base=2)
.[Breaking change] The
marginal_entropy
methods based on positional arguments aredeprecated in favor of a method relying on the
margin
andbase
keyword arguments.As an example of migration,
marginal_entropy(p, 2, 2.0)
should be replaced bymarginal_entropy(p, margin=2, base=2.0)
.[Breaking change] The
mutual_information
method based on positional arguments isdeprecated in favor of a method relying on the
base
keyword argument. As an example ofmigration,
mutual_information(p, 2)
should be replaced bymutual_information(p, base=2)
.[Breaking change] The
mapcolpairfreq!
andmapseqpairfreq!
functions now uses theboolean
usediagonal
keyword argument to indicate if the function should be applied tothe diagonal elements of the matrix (the default is
true
). Before, this was done passingVal{true}
orVal{false}
as the last positional argument.The
mapcolfreq!
,mapseqfreq!
,mapcolpairfreq!
, andmapseqpairfreq!
methods usingkeyword arguments, now pass the extra keyword arguments to the mapped function.
The
Information
module now exports themapfreq
function that offers a more high-levelinterface to the
mapcolfreq!
,mapseqfreq!
,mapcolpairfreq!
, andmapseqpairfreq!
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 isapplied to pairs of sequences or columns.
The
Information
module now exports methods of theshannon_entropy
,kullback_leibler
,mutual_information
, andnormalized_mutual_information
functions that take anAbstractArray{Residue}
as input, e.g. an MSA. Those methods use themapfreq
functionunder the hood to ease the calculation of the information measures on MSAs.
The
frequencies!
,frequencies
,probabilities!
, andprobabilities
functions nowaccept arrays of
Residue
s of any dimension. Therefore, there is no need to use thevec
function to convert the arrays to vectors.The
MSA
module now exports theWeightType
union type to representweights
.b8c96e1
There was a problem hiding this comment.
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: