Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions pydeseq2/DeseqStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,11 @@ def __init__(
)
self.LFCs.iloc[:, 0] += self.LFCs.iloc[:, self.contrast_idx]
self.LFCs.iloc[:, self.contrast_idx] *= -1
print(self.LFCs.columns[self.contrast_idx])
# Set a flag to indicate that LFCs are unshrunk
self.shrunk_LFCs = False
self.n_processes = get_num_processes(n_cpus)
self.batch_size = batch_size
self.joblib_verbosity = joblib_verbosity
self._change_lfc_sign = False

def summary(self):
"""Run the statistical analysis.
Expand Down Expand Up @@ -256,12 +254,6 @@ def run_wald_test(self):
.values
)

# If the contrast implies a different reference level than the one from the
# design matrix, change lfc signs. Do this *after* the means were computed
# (otherwise we would need)
if self._change_lfc_sign:
self.LFCs.iloc[:, self.contrast_idx] *= -1

# Set regularization factors.
if self.prior_disp_var is not None:
ridge_factor = np.diag(1 / self.prior_disp_var**2)
Expand Down