def _construct_from_permutation(self, significant_pathways):
        """Build the network from a dictionary of (side -> tuple lists),
        where the side is specified as "pos" and/or "neg" (from the feature
        gene signature(s)) and mapped to a tuple list of [(pathway, feature)].
        Used during the PathCORE-T permutation test by applying the method
        `permute_pathways_across_features` to an existing CoNetwork.
        """
        for side, pathway_feature_tuples in significant_pathways.items():
            feature_pathway_dict = self._collect_pathways_by_feature(
                pathway_feature_tuples)
            self._edges_from_permutation(feature_pathway_dict)
def _construct_from_permutation ( self , significant_pathways ) : for side , pathway_feature_tuples in significant_pathways . items ( ) : feature_pathway_dict = self . _collect_pathways_by_feature ( pathway_feature_tuples ) self . _edges_from_permutation ( feature_pathway_dict )
Build the network from a dictionary of (side -> tuple lists),
        where the side is specified as "pos" and/or "neg" (from the feature
        gene signature(s)) and mapped to a tuple list of [(pathway, feature)].
        Used during the PathCORE-T permutation test by applying the method
        `permute_pathways_across_features` to an existing CoNetwork.