forked from amirbarati/conformation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
b2ar_tica_config.py
64 lines (51 loc) · 1.35 KB
/
b2ar_tica_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import os
import sys
import csv
from get_variable_names import get_common_residues_pkl, find_common_residues
exacycle = False
parallel_featurize = False
load_feature_parallel = True
n_clusters = 1000
lag_time = 5
if exacycle:
lag_time *= 2
msm_lag_time = 5
n_components = 2
n_samples = 10
n_macrostates = 25
n_trees = 100
sampling_method = "random"
precision = "SP"
sparse = True
wolf = True
is_sparse = ""
if(sparse): is_sparse = "sparse-"
shrinkage_string = ""
rho_string = ""
if wolf and not sparse:
wolf_string = "_wolf_"
shrinkage = None
shrinkage_string = "autoShrinkage"
rho = None
rho_string = ""
elif wolf and sparse:
wolf_string = "_wolf_"
shrinkage = None
shrinkage_string = "autoShrinkage"
rho = 0.01
rho_string = "_rho0pt01"
else:
wolf_string = ""
shrinkage = 0.001
shrinkage_string = "0pt001"
rho = None
rho_string = ""
traj_ext = ".h5"
base = "/home/enf/b2ar_analysis"
traj_dir = "/home/enf/b2ar_analysis/subsampled_reimaged_amber"
structure = None
pnas_features_dir = "/home/enf/b2ar_analysis/all_pnas_features"
if not os.path.exists(pnas_features_dir): os.makedirs(pnas_features_dir)
inactive_dir = "/home/enf/b2ar_analysis/2RH1_prepped.pdb"
active_dir = "/home/enf/b2ar_analysis/3P0G_pymol_prepped.pdb"
#contact_residues = find_common_residues([inactive_dir, active_dir, simulation_structure], common_residues_pkl)