-
class
jade.nnk.NNKEnrichments.
NNKEnrichments
(data_dir, zeros=-2.0, class_type='VRC01', antibody='glCHA31', antigen='GT81', sort='S1')[source]¶ Bases:
object
Simple class that holds all the enrichment data for a particular class, antibody, and antigen.
-
calculate_factors
()[source]¶ Return a dataframe of calculated factors
Factor is Sergeys definition:
- (P-M)/MAD = scaling factor; where
- P - total propensity for amino acid at this position, M - mean total propensity for all amino acids at this position MAD - mean average deviation for propensities at this position.
Return type: pandas.DataFrame
-
max
(position)[source]¶ Get the maximum enrichment at a particular position, and the amino acid
Parameters: position – Returns:
-