Skip to content

Commit

Permalink
fix some report generation and consolidation
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Jan 29, 2015
1 parent 7fff3e9 commit 46966d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pipes/rules/reports.rules
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ rule consolidate_spike_count:
sample=read_samples_file(config["samples_per_run"]))
output: '{dir}/summary.spike_count.txt'
params: logid="all"
shell: "{config[binDir]}/reports.py consolidate_spike_count {dir}/spike_count {output}"
shell: "{config[binDir]}/reports.py consolidate_spike_count {wildcards.dir}/spike_count {output}"

1 change: 1 addition & 0 deletions reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def consolidate_spike_count(inDir, outFile):
'''Consolidate multiple spike count reports into one.'''
with open(outFile, 'wt') as outf:
for fn in os.listdir(inDir):
fn = os.path.join(inDir, fn)
s = os.path.basename(fn)
if not s.endswith('.spike_count.txt'):
raise Exception()
Expand Down

0 comments on commit 46966d1

Please sign in to comment.