Skip to content

Commit 0fcb13d

Browse files
committed
v2.9.2
1 parent 9b9cca0 commit 0fcb13d

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

Scripts/PrintStatus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
def PrintStatus_Header():
1414
print('**************************************************')
15-
print('Launching PinAPL-Py v2.911')
16-
print('P. Spahn et al., UC San Diego (10/2020)')
15+
print('Launching PinAPL-Py v2.9.2')
16+
print('P. Spahn et al., UC San Diego (12/2020)')
1717
print('**************************************************')
1818

1919
def PrintStatus_SubHeader(msg):

Scripts/RankGenes_SigmaFC.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ def SigmaFC_Permutation(P):
2929
N0 = list(sg_table['control mean']);
3030
pi = 0
3131
for j in range(k):
32-
y = np.log10((Nx[j]+delta)/(N0[j]+delta)) # log fold-change
33-
if y < FCmin:
34-
u = np.exp(Lambda*(y-FCmin))
35-
else:
36-
u = 1
32+
# compute fold-change weight (discontinued)
33+
# y = np.log10((Nx[j]+delta)/(N0[j]+delta)) # log fold-change
34+
# if y < FCmin:
35+
# u = np.exp(Lambda*(y-FCmin))
36+
# else:
37+
u = 1
3738
pi_j = u * np.log10((Nx[j]+delta)/(N0[j]+delta))
3839
pi = pi + pi_j
3940
#Pi = w[k]*pi # only w = id supported
@@ -59,9 +60,9 @@ def compute_SigmaFC(sgRNAList):
5960
alpha_g = config['alpha_g']
6061
ScreenType = config['ScreenType']
6162
num_cores = multiprocessing.cpu_count()
62-
global Lambda; Lambda = -np.log(0.1) # deprecation rate
63-
global FCmin; # deprecation cutoff (log10 fold change). Set to 0 for no deprecation
64-
FCmin = config['FCmin_SigmaFC']
63+
# global Lambda; Lambda = -np.log(0.1) # deprecation rate
64+
# global FCmin; # deprecation cutoff (log10 fold change). DISCONTINUED
65+
# FCmin = config['FCmin_SigmaFC']
6566
global w; # reward function for numbers of signif. sgRNAs
6667
w = config['w_SigmaFC']
6768

@@ -110,13 +111,13 @@ def compute_SigmaFC(sgRNAList):
110111
Nx = list(sg_table['counts'])
111112
N0 = list(sg_table['control mean'])
112113
pi = 0
113-
for j in range(k):
114-
# compute fold-change weight
115-
y = np.log10((Nx[j]+delta)/(N0[j]+delta)) # log fold-change
116-
if y < FCmin:
117-
u = np.exp(Lambda*(y-FCmin))
118-
else:
119-
u = 1
114+
for j in range(k):
115+
# compute fold-change weight (discontinued)
116+
# y = np.log10((Nx[j]+delta)/(N0[j]+delta)) # log fold-change
117+
# if y < FCmin:
118+
# u = np.exp(Lambda*(y-FCmin))
119+
# else:
120+
u = 1
120121
pi_j = u * np.log10((Nx[j]+delta)/(N0[j]+delta))
121122
pi = pi + pi_j
122123
else:

0 commit comments

Comments
 (0)