Skip to content

Commit

Permalink
set version to 2.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Nov 27, 2024
1 parent 46bc5d0 commit 5e54185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ComplexMixtures"
uuid = "6f35c628-ac57-5bae-8ea9-703a8964f6e9"
authors = ["Leandro Martinez <lmartine@unicamp.br>"]
version = "2.10.0
version = "2.10.0"

[deps]
CellListMap = "69e1c6dd-3888-40e6-b3c8-31ac5f578864"
Expand Down

2 comments on commit 5e54185

@lmiq
Copy link
Member Author

@lmiq lmiq commented on 5e54185 Nov 27, 2024

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:

  1. When a ResidueContributions contain the contributions of more than one residue, the iteration occurs within residues.
  2. 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:

julia> rc = ResidueContributions(R, select(ats, "protein"))

          Residue Contributions - 274 residues.
     3.51 █     █      █     █            █                                    
     3.27 █              █   █                                                 
     3.03 █     █    █       █            █       █       █                █   
     2.79 █    ██    █ █ █   █            █      ██          █        █    █   
 d   2.55 █ █  ██    █ █ █   █            ██     ██ █  █  █  █  █     █    █   
     2.31 █ █  ██    █ ███   █    ██      ██     ██ █  ██ █  ██ █     █    █   
     2.07 █ █   █  █ █████   █    ██      ██     ██ █  ██ █  █ ██    █     █   
     1.83 █   █ █  █ █████   █    ██      █      ██ █  ██    █ ██     █    █   
     1.59                                                                      
         A1      T33     T66     S98     S130    T162    A194    H226    G258    

julia> id = findfirst(>=(2.0), rc.d) # index of distance for 2.0 Angstroms
26

julia> c_at_2 = [ r[id] for r in rc ]  # collect contributions for all residues at index id
274-element Vector{Float64}:
 0.025795222201597752
 0.027637738073140444
 ⋮
 0.0
 0.03316528568776853

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 distance
maximum.(rc) # returns the maximum contribution of each residue
findmax.(rc) # returns the maximum and index of the distance maximum of the contributions of each residue

@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/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:

git tag -a v2.10.0 -m "<description of version>" 5e5418582c49d6bc050f1cbacccc4983f06518ed
git push origin v2.10.0

Please sign in to comment.