From 60d94b0d764930e69383ab915e0abea6b5a1ef91 Mon Sep 17 00:00:00 2001 From: Pablo Moreno Date: Fri, 29 Nov 2024 01:04:56 +0000 Subject: [PATCH] Only sort for the diff exp case --- .../decoupler/decoupler_pathway_inference.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tertiary-analysis/decoupler/decoupler_pathway_inference.py b/tools/tertiary-analysis/decoupler/decoupler_pathway_inference.py index d1caa712..a537b605 100644 --- a/tools/tertiary-analysis/decoupler/decoupler_pathway_inference.py +++ b/tools/tertiary-analysis/decoupler/decoupler_pathway_inference.py @@ -217,8 +217,8 @@ f"{args.method}_pvals": tf_pvals.iloc[0], } ) - # sort ascending on the p-values - combined_df.sort_values(by=f"{args.method}_pvals", inplace=True) + # sort ascending on the p-values + combined_df.sort_values(by=f"{args.method}_pvals", inplace=True) # Save the combined dataframe to a file combined_df.to_csv(args.output + ".tsv", sep="\t")