Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:MicrosoftResearch/Azimuth
Browse files Browse the repository at this point in the history
  • Loading branch information
nfusi committed Nov 1, 2016
2 parents ad33462 + 139212f commit 73522ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions azimuth/features/featurization.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,6 @@ def nucleotide_features(s, order, max_index_to_use, prefix="", feature_type='all

index_dependent = []
index_independent = []
# index_independent = ['%s_pi.Order%d_P%d' % (prefix, order,i) for i in range(len(features_pos_independent))]
#index_dependent = ['%s_pd.Order%d_P%d' % (prefix, order, i) for i in range(len(features_pos_dependent))]

for position in range(0, len(s)-order+1, 1):
for l in alphabet:
Expand All @@ -475,6 +473,10 @@ def nucleotide_features(s, order, max_index_to_use, prefix="", feature_type='all
assert index_independent[alphabet.index(nucl)] == '%s%s' % (prefix, nucl)


#index_independent = ['%s_pi.Order%d_P%d' % (prefix, order,i) for i in range(len(features_pos_independent))]
#index_dependent = ['%s_pd.Order%d_P%d' % (prefix, order, i) for i in range(len(features_pos_dependent))]


if np.any(np.isnan(features_pos_dependent)):
raise Exception("found nan features in features_pos_dependent")
if np.any(np.isnan(features_pos_independent)):
Expand Down

0 comments on commit 73522ac

Please sign in to comment.