openmolecules.org

 
Home » DataWarrior » Functionality » Assign cluster name based on cluster size
Re: Assign cluster name based on cluster size [message #1695 is a reply to message #1598] Fri, 05 August 2022 07:46 Go to previous message
DrCJM is currently offline  DrCJM
Messages: 5
Registered: September 2019
Location: Australia
Junior Member
Late comment!

It's easy to make a new column with the number of compounds in each cluster - all cluster members will obviously have the same number.

After clustering, which creates the "Cluster No" column, I calculate a new column (usually called "Cluster Count") with the function:

frequency(ClusterNo, "Cluster No")

You can then sort on Cluster Count or resize markers on graphs by Cluster Count etc. Very useful if you just want to show the Representative compounds on a graph, but size them by the number of similar compounds they represent.

So doesn't rename the cluster but allows you to do the sorts of things you might want to do after renaming them.

Craig.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Updating columns
Next Topic: Find & Replace or alternative for stereoisomers
Goto Forum:
  


Current Time: Fri Nov 22 05:30:30 CET 2024

Total time taken to generate the page: 0.03654 seconds