def calibrate_percentile_ranks(allele, predictor, peptides=None):
global GLOBAL_DATA<EOL>if peptides is None:<EOL><INDENT>peptides = GLOBAL_DATA["<STR_LIT>"]<EOL><DEDENT>predictor.calibrate_percentile_ranks(<EOL>peptides=peptides,<EOL>alleles=[allele])<EOL>return {<EOL>allele: predictor.allele_to_percent_rank_transform[allele],<EOL>}<EOL>
Private helper function.