def determineBestComboFromString(self, best_combo_string, combos, processed_arguments): gene_lists = processed_arguments.gene_lists combine_gene_lists = processed_arguments.rsen_config.combine_gene_lists analysis_type = processed_arguments.analysisType() static_features = processed_arguments.static_features for combo in combos: feature_set_string = GeneListComboUtility.generateFeatureSetString( combo, gene_lists, combine_gene_lists, analysis_type, static_features) if GeneListComboUtility.combosAreEquivalent( feature_set_string, best_combo_string): return combo raise ValueError( "Unable to determine feature set from given combo gene list and feature file combo: " + best_combo_string + ".\n Please make sure all gene lists and feature files in the combo " + "are present in the drug folder.")
def generateFeatureSetString(self, feature_set): return GeneListComboUtility.generateFeatureSetString(feature_set, self.inputs.gene_lists, self.inputs.rsen_config.combine_gene_lists, self.inputs.analysisType(), self.inputs.static_features)