Skip to content

Commit

Permalink
fix(foldseek): dataset created successfully #53
Browse files Browse the repository at this point in the history
  • Loading branch information
jyaacoub committed Nov 13, 2023
1 parent 6fc396a commit 9dc24c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/feature_extraction/protein_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_foldseek_onehot(combined_seq):
# the target sequence includes 3Di foldseek tokens alternating with the actual sequence
# so we divide by 2 to get the length of the actual sequence
fld_hot = np.zeros((len(combined_seq)//2, len(ResInfo.foldseek_tokens)))
for i in range(1, len(combined_seq), step=2):
for i in range(1, len(combined_seq), 2):
fld_hot[i // 2,] = one_hot(combined_seq[i], ResInfo.foldseek_tokens)
return fld_hot

Expand Down

0 comments on commit 9dc24c4

Please sign in to comment.