Skip to content

Commit

Permalink
fix: lookup #18 (#19)
Browse files Browse the repository at this point in the history
* fix: lookup of samples in 'write_coldata' not necessary

* fix: output in format string
  • Loading branch information
cmeesters authored Apr 30, 2024
1 parent 58b922a commit ed226a3
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,9 @@ rule write_coldata:
output:
coldata="de_analysis/coldata.tsv",
run:
df = pd.DataFrame(
OrderedDict(
[
("sample", samples),
("condition", condition),
("condition2", condition2),
("batch", batch_effect),
]
)
)
df.to_csv(output.coldata, sep="\t", index=False)
with open(f"{output}", "w") as outfile:
outstring = "\t".join(samples.head())
outfile.write(outstring)


rule write_de_params:
Expand Down

0 comments on commit ed226a3

Please sign in to comment.