Skip to content

Commit

Permalink
Support for DIP with only two time points
Browse files Browse the repository at this point in the history
  • Loading branch information
alubbock committed Aug 11, 2018
1 parent e5bd1b5 commit 049de27
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion thunor/dip.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,12 @@ def _expt_dip(df_timecourses, selector_fn):
first_timepoint = None
final_intercept = None
dip_selector = -np.inf
if n_total < 3:
if n_total < 2:
return None
if n_total == 2:
# Only two time points, so we can't do variable delay detection
dip, std_err, intercept = _ctrl_dip(df_timecourses)
return dip, std_err, t_hours[0], intercept
for i in range(n_total - 2):
x = t_hours[i:]
y = assay_vals[i:]
Expand Down

0 comments on commit 049de27

Please sign in to comment.