예제 #1
0
    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()
예제 #2
0
    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()