From aa577d5343bd0639557749840dcf0f5eea01fd3b Mon Sep 17 00:00:00 2001 From: Chris Flerin Date: Thu, 11 Jun 2020 14:24:16 +0200 Subject: [PATCH] Fix bug where the GRN CLI step would not compress the output if the file had a gz ending. --- src/pyscenic/cli/pyscenic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyscenic/cli/pyscenic.py b/src/pyscenic/cli/pyscenic.py index 53f3a32..43a0103 100644 --- a/src/pyscenic/cli/pyscenic.py +++ b/src/pyscenic/cli/pyscenic.py @@ -78,7 +78,7 @@ def find_adjacencies_command(args): LOGGER.info("Writing results to file.") extension = PurePath(args.output.name).suffixes - network.to_csv(args.output, index=False, sep=suffixes_to_separator(extension)) + network.to_csv(args.output.name, index=False, sep=suffixes_to_separator(extension)) def adjacencies2modules(args):