Skip to main content
. Author manuscript; available in PMC: 2024 Dec 13.
Published in final edited form as: Cell Syst. 2024 Aug 21;15(8):709–724.e13. doi: 10.1016/j.cels.2024.07.006

Algorithm 1.

Measuring FDR control with synthetic target genes

Input:
 - TF expression X (matrix, Nobservations by G genes)
  - xn, xg, and xn,g will denote expression for a given sample n and/or gene g.
 - A desired FDR level α
 - The number of simulations J
 - Sets of indices S1,S2,SJ indicating the true regulators in each simulation. We select the number of regulators as max(M, 1), where M is Poisson with mean 2. Then we select regulators randomly without replacement.
 - Dose-response curves f1,f2,fJ dictating the true response to the regulator in each simulation. We set fj(xn)=1 if xn,g>mean(xg) for all g in Sj and fj(xn)=0 otherwise.
Procedure:
 - For j=1J:
  - For n=1N:
   - Generate Yn,jfj(xn).
 - Run the knockoff filter to obtain pairs (i,j) at FDR α.
 - For j=1.J:
  - If ij is in Sj, count (i,j) as correct.
  - If ij is not in Sj, count (i,j) as a false discovery.