Skip to content

Commit

Permalink
Merge pull request #727 from maxplanck-ie/dev_ksikora2
Browse files Browse the repository at this point in the history
Bugfix split sample sheet
  • Loading branch information
katsikora committed Nov 19, 2020
2 parents 788163a + 5bc1e9b commit b4760ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions snakePipes/common_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ def splitSampleSheet(sampleSheet, destination_pfx):
for k in d.keys():
if k != "All" and "All" in d.keys():
d[k].extend(d['All'])
outfile = os.path.join("splitSampleSheets", '.'.join([os.path.basename(destination_pfx), k, 'tsv']))
with open(outfile, 'w') as of:
of.write('name\tcondition\n')
for item in d[k]:
of.write('\t'.join(item) + '\n')
outfile = os.path.join("splitSampleSheets", '.'.join([os.path.basename(destination_pfx), k, 'tsv']))
with open(outfile, 'w') as of:
of.write('name\tcondition\n')
for item in d[k]:
of.write('\t'.join(item) + '\n')

return

Expand Down

0 comments on commit b4760ce

Please sign in to comment.