def setup(): global PAN_ALLELE_PREDICTOR startup() PAN_ALLELE_PREDICTOR = Class1AffinityPredictor.load( get_path("models_class1_pan", "models.combined"), optimization_level=0, )
def setup(): global ALLELE_SPECIFIC_PREDICTOR, PAN_ALLELE_PREDICTOR startup() ALLELE_SPECIFIC_PREDICTOR = Class1AffinityPredictor.load( get_path("models_class1", "models")) PAN_ALLELE_PREDICTOR = Class1AffinityPredictor.load( get_path("models_class1_pan", "models.with_mass_spec"))
def setup(): global PREDICTORS startup() PREDICTORS = { 'allele-specific': Class1AffinityPredictor.load(get_path("models_class1", "models")), 'pan-allele': Class1AffinityPredictor.load( get_path("models_class1_pan", "models.combined")) }
def setup(): global AFFINITY_PREDICTOR global CLEAVAGE_PREDICTOR global CLEAVAGE_PREDICTOR_NO_FLANKING global PRESENTATION_PREDICTOR startup() AFFINITY_PREDICTOR = Class1AffinityPredictor.load(get_path( "models_class1_pan", "models.combined"), optimization_level=0, max_models=1) CLEAVAGE_PREDICTOR = Class1ProcessingPredictor.load(get_path( "models_class1_processing", "models.selected.with_flanks"), max_models=1) CLEAVAGE_PREDICTOR_NO_FLANKING = Class1ProcessingPredictor.load( get_path("models_class1_processing", "models.selected.no_flank"), max_models=1) PRESENTATION_PREDICTOR = Class1PresentationPredictor.load()
def setup(): global DOWNLOADED_PREDICTOR startup() DOWNLOADED_PREDICTOR = Class1AffinityPredictor.load() logging.basicConfig(level=logging.DEBUG)
def setup(): global DOWNLOADED_PREDICTOR startup() DOWNLOADED_PREDICTOR = Class1AffinityPredictor.load()