Similarity_Profile.py

Meow

CNA_Entry.py, Geoffrey Weal, 29/10/2018

This class holds a CNA comparison entry between two clusters, Cluster cluster_1 and Cluster cluster_2, including the similarity_profile for different values of rCut, the average and the result of the comparison, based on the result from Geoff’s Thesis

class Organisms.GA.SCM_Scripts.Similarity_Profile.Similarity_Profile(name_1, name_2, similarity_profile)

This class holds a CNA comparison entry between two clusters, Cluster 1 and Cluster 2, including the similarity_profile for different values of rCut, the average and the result of the comparison, based on the result from Geoff’s Thesis

Parameters:
  • name_1 (int) – Name of the first cluster.

  • name_2 (int) – Name of the first cluster.

  • similarity_profile (list of floats) – The similarity profile between cluster 1 and cluster 2.

get_average()

Get the average of similarity_profile

get_comparison()

From the information from self.similarity_profile, this method will write the result of the comparison into self.similarity_category, as determined from the procedure created by Geoffrey Weal.

get_results()

Get the result of the average of similarity_profile, and the result of the comparison.

Organisms.GA.SCM_Scripts.Similarity_Profile.get_comparison(percentage_similarities)

From the information from self.percentage_similarities, this method will write the result of the comparison into self.similarity_category, as determined from the procedure created by Geoffrey Weal.

Parameters:

percentage_similarities (list of floats) – These are a list of all the similarities from performing the SCM across many rCut values.

Returns:

The similarity class that the pair of clusters is assigned to based on the percentage_similarities, and the maximum similarity of percentage_similarities

Return type:

a str. and a float