From 74f35cad8e24cb7ed7075e0443b632dbac31d96e Mon Sep 17 00:00:00 2001 From: dakota-hawkins Date: Wed, 13 Apr 2022 11:25:36 -0400 Subject: [PATCH] fixed concatenation. --- scripts/combine_counts.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/combine_counts.py b/scripts/combine_counts.py index 76fb78e..49a899b 100644 --- a/scripts/combine_counts.py +++ b/scripts/combine_counts.py @@ -1,10 +1,11 @@ import pandas as pd -if __name__ == '__main__': +if __name__ == "__main__": try: - snakmake + snakemake except NameError: snakemake = None if snakemake is not None: - embryo_counts = pd.concat[pd.read_csv(x) for x in snakemake.input] - embryo_counts.to_csv(snakemake.output) \ No newline at end of file + embryo_counts = pd.concat([pd.read_csv(x) for x in snakemake.input["counts"]]) + print(embryo_counts.shape) + embryo_counts.to_csv(snakemake.output["csv"])