File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,9 @@ double SiteSpecificProfileProcess::GetStatEnt(int k) {
7979 }
8080 if (isnan (total)) {
8181 cerr << " entropy is nan\n " ;
82+ for (int i=0 ; i<GetDim (); i++) {
83+ cerr << profile[k][i] << ' \n ' ;
84+ }
8285 exit (1 );
8386 }
8487 return total;
@@ -120,12 +123,12 @@ void SiteSpecificProfileProcess::SetSiteProfiles() {
120123 double * tmp = new double [GetDim ()];
121124 for (int i=0 ; i<GetNsite (); i++) {
122125 // for (int i=GetSiteMin(); i<GetSiteMax(); i++) {
123- if (ActiveSite (i)) {
124- GetSiteEmpiricalFreq (i,tmp,0 );
126+ // if (ActiveSite(i)) {
127+ GetSiteEmpiricalFreq (i,tmp,0.0001 );
125128 for (int l=0 ; l<GetDim (); l++) {
126129 profile[i][l] = tmp[l] + pseudocount*glob[l];
127130 }
128- }
131+ // }
129132 }
130133 delete[] tmp;
131134 RenormalizeProfiles ();
You can’t perform that action at this time.
0 commit comments