Pymol Projections
Creates PyMOL compatible python scripts to visualise user generated results on a 3D model of the protein.
4 Functions available for the end user:
-
project_pymol_per_res_scores(per_res_scores, model_name, out_dir) Write out a PyMOL compatible python script to project the per residue scores.
-
project_multiple_per_res_scores(all_per_res_scores, out_dir) Write out multiple PyMOL compatible visualisation scripts for the per residue scores, one script for each model used.
-
project_pymol_top_features() Write out a PyMOL compatible python script to project the top features.
-
project_multiple_per_feature_scores(all_feature_scores, numb_features, out_dir) Write out multiple PyMOL compatible scripts for different models.
project_multiple_per_feature_scores(all_per_feature_scores, numb_features, out_dir='')
Write out multiple PyMOL compatible scripts for different models.
Parameters
dict
Nested dictionary, the outer layer keys are the model names/methods used. The inner layer is a dict with keys being each residue and values the per residue score.
int or str
The max number of top scoring features to determine (specified by an int). Alternatively, if set to "all", then all per feature scores will be determined.
str
Folder to save outputs to, if none given, saved to current directory.
Source code in key_interactions_finder/pymol_projections.py
project_multiple_per_res_scores(all_per_res_scores, out_dir='')
Write out multiple PyMOL compatible visualisation scripts for the per residue scores, one script for each model used.
Parameters
dict
Nested dictionary, the outer layer keys are the model names/methods used. The inner layer is a dict with keys being each residue and values the per residue score.
str
Folder to save outputs to, if none given, saved to current directory.
Source code in key_interactions_finder/pymol_projections.py
project_pymol_per_res_scores(per_res_scores, model_name='', out_dir='')
Write out a PyMOL compatible python script to project the per residue scores.
Parameters
dict
The keys are each residue and values the per residue score.
str
Appended to start of output file to identify it.
str
Folder to save outputs to, if none given, saved to current directory.
Source code in key_interactions_finder/pymol_projections.py
project_pymol_top_features(per_feature_scores, model_name, numb_features='all', out_dir='')
Write out a PyMOL compatible python script to project the top X features. Features will be shown as cylinders between each residue pair, with cylinder size controlled according to relative score and cylinder colour controlled by interaction type.
Parameters
dict
Keys are the names of the features and values are their scores.
str
What name to appended to the start of the output file name to help identify it.
int or str
The max number of top scoring features to determine (specified by an int). Alternatively, if set to "all", then all feature scores will be determined.
str
Folder to save outputs to, if none given, saved to current directory.
Source code in key_interactions_finder/pymol_projections.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
|