You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The indexing and iteration of a ResidueContributions object was improved, such that:
When a ResidueContributions contain the contributions of more than one residue, the iteration occurs within residues.
When a ResidueContributions contain the contribution of a single residue, iteration occurs over the contributions of this residue.
This implies many facilities and greater consistency in iterations over these objects as, for instance, it is possible to extract (for example) the contribution at a given distance for all residues as:
The above is possible because, for example, rc[1] returns a "single-residue" ResidueContributions object, and indexing this object returns the contributions of such residue at each distance.
Similarly, these features allow other Julia functions to be broadcasted over the residue contributions:
getindex.(rc, 26) # returns the contribution at index 26 for all residues (equivalent to the `[ r[id] for r in rc ]` above)last.(rc) # returns the contribution of each residue at the largest distancemaximum.(rc) # returns the maximum contribution of each residuefindmax.(rc) # returns the maximum and index of the distance maximum of the contributions of each residue
5e54185
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:
New feature
The indexing and iteration of a
ResidueContributions
object was improved, such that:ResidueContributions
contain the contributions of more than one residue, the iteration occurs within residues.ResidueContributions
contain the contribution of a single residue, iteration occurs over the contributions of this residue.This implies many facilities and greater consistency in iterations over these objects as, for instance, it is possible to extract (for example) the contribution at a given distance for all residues as:
The above is possible because, for example,
rc[1]
returns a "single-residue"ResidueContributions
object, and indexing this object returns the contributions of such residue at each distance.Similarly, these features allow other Julia functions to be broadcasted over the residue contributions:
5e54185
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/120250
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: