Skip to content

Commit

Permalink
meta_by_sample should index on sanitized sample name, not original sa…
Browse files Browse the repository at this point in the history
…mple name
  • Loading branch information
dpark01 committed Jan 16, 2021
1 parent b31f15c commit 21fae09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion illumina.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def main_illumina_demux(args):
# organize samplesheet metadata as json
if args.out_meta_by_sample:
with open(args.out_meta_by_sample, 'wt') as outf:
json.dump(dict((r['sample_original'],r) for r in samples.get_rows()), outf, indent=2)
json.dump(dict((r['sample'],r) for r in samples.get_rows()), outf, indent=2)
if args.out_meta_by_filename:
with open(args.out_meta_by_filename, 'wt') as outf:
json.dump(dict((r['run'],r) for r in samples.get_rows()), outf, indent=2)
Expand Down

0 comments on commit 21fae09

Please sign in to comment.