#NEWLINE# def predict( self , fasta_dictionary ) : #NEWLINE# #INDENT# fasta_dictionary = check_sequence_dictionary ( allele ) #NEWLINE# builder = EpitopeCollectionBuilder ( fasta_dictionary = fasta_dictionary , prediction_method_name = 'random' , binding_measure = ic50_nM ) #NEWLINE# for ( key , sequence ) in fasta_dictionary . items ( ) : #NEWLINE# #INDENT# for epitope_length in self . epitope_lengths : #NEWLINE# #INDENT# for i in range ( ( ( len ( sequence ) - epitope_length ) + 1 ) ) : #NEWLINE# #INDENT# for allele in self . alleles : #NEWLINE# #INDENT# builder . add_binding_prediction ( source_sequence_key = key , offset = i , allele = allele , peptide = sequence [ i : ( i + epitope_length ) ] , ic50 = ( random . random ( ) * 10000.0 ) , rank = random . randint ( 0 , 99 ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return builder . get_collection ( )