Skip to content

Commit

Permalink
fix: taking absolute l2fc values to sort (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeesters authored Sep 19, 2024
1 parent 822120c commit 9c009d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/scripts/de_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
normalized = counts_df.T * sf

# shorthand for log2fold and pvalue columns
log2foldchange = stat_res.results_df["log2FoldChange"]
log2foldchange = np.abs(stat_res.results_df["log2FoldChange"])
# 'pvalue' is a pandas series, linear, of length(number of aligned loci)
pvalue = stat_res.results_df["pvalue"]
padj = stat_res.results_df["padj"]
Expand Down

0 comments on commit 9c009d0

Please sign in to comment.