Andrew Stirn commited on
Commit
47e7aeb
·
1 Parent(s): e78fda7

moved titration ratio function to web code

Browse files
Files changed (1) hide show
  1. tiger.py +4 -0
tiger.py CHANGED
@@ -124,6 +124,10 @@ def prediction_transform(predictions: np.array, **params):
124
  return 1 - predictions
125
 
126
 
 
 
 
 
127
  def predict_on_target(transcript_seq: str, model: tf.keras.Model):
128
 
129
  # parse transcript sequence
 
124
  return 1 - predictions
125
 
126
 
127
+ def titration_ratio(guide: np.array, parent: np.array):
128
+ return 1 - np.clip(parent - guide, a_min=0.01, a_max=0.99)
129
+
130
+
131
  def predict_on_target(transcript_seq: str, model: tf.keras.Model):
132
 
133
  # parse transcript sequence