jade.nnk package¶
Submodules¶
jade.nnk.NNKAbMaturation module¶
-
class
jade.nnk.NNKAbMaturation.
GetNNKData
(data_dir, ab_group='glCHA31')[source]¶ Bases:
object
Get NNK Data as a formatted tupple of 1d data (Or raw Pandas DF)
-
get_2D_data_freq_nnk_data
(antigen='C5-SOSIP', sort='S1')[source]¶ Return a dataframe with ResType as index and resnum as columns. :param antigen: :param sort: :rtype: pandas.DataFrame
-
-
jade.nnk.NNKAbMaturation.
load_1d_data
(data_dir, data_type)[source]¶ Here, this is a test bed for SVM and simple neural networks No recurrent Neural nets or anything fancy. Will have to try that next.
The 1D data is so that the residuetypes all line up in the SVM. :param data_dir: :return:
jade.nnk.NNKEnrichments module¶
-
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:
-