Skip to content

Commit

Permalink
use np.array
Browse files Browse the repository at this point in the history
  • Loading branch information
abearab committed Nov 23, 2024
1 parent 33b456b commit f051b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ezformer/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def predict_single_offset_tss(
seq_mut = (seq_wt_orig[extra_padding+offset+rel_offset:extra_padding+mid_point+insert_offset] + insert_seq + seq_wt_orig[extra_padding+mid_point+insert_offset+delete_3prime:])[:seq_len]

#One-hot-encode
sequence_one_hot_wt = one_hot_encode(seq_wt, dtype=torch.FloatTensor).permute(1,0)
sequence_one_hot_mut = one_hot_encode(seq_mut, dtype=torch.FloatTensor).permute(1,0)
sequence_one_hot_wt = np.array(one_hot_encode(seq_wt).permute(1,0).eq(1))
sequence_one_hot_mut = np.array(one_hot_encode(seq_mut).permute(1,0).eq(1))

#Make predictions
y_wt = predict_tracks(
Expand Down

0 comments on commit f051b5f

Please sign in to comment.