def phenotypicDiversity(self, repertoire): # Get the dominant genotype network for the repertoire giant = self.caller.dominant_network(repertoire) # Create an AccessibilityAnalyzer object accAnalyzer = AccessibilityAnalyzer(repertoire, giant, self.repToGiantDict, self.inDataDict, self.netBuilder, self.bitManip, self.isDoubleStranded) # Compute phenotypic diversity and set it as a network attribute giant["Diversity_index"] = accAnalyzer.getPhenotypicDivesity()
def neighborAbundance(self, repertoire): # Get the dominant genotype network for the repertoire giant = self.caller.dominant_network(repertoire) # Create an AccessibilityAnalyzer object accAnalyzer = AccessibilityAnalyzer(repertoire, giant, self.repToGiantDict, self.inDataDict, self.netBuilder, self.bitManip, self.isDoubleStranded) # Compute repertoire neighborhood abundance and set it as a network # attribute giant["Neighbor_abundance"] = accAnalyzer.getNeighborAbundance()