Skip to content

Commit

Permalink
fixed concatenation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dakota-hawkins committed Apr 13, 2022
1 parent b882ea9 commit 74f35ca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/combine_counts.py
Original file line number Diff line number Diff line change
@@ -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)
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"])

0 comments on commit 74f35ca

Please sign in to comment.