Mercurial > repos > nick > allele_counts_1
comparison allele-counts.py @ 4:900d91d653cb
Add '#' back to header line
| author | nick |
|---|---|
| date | Tue, 28 May 2013 16:56:43 -0400 |
| parents | 4627d99aa105 |
| children | f6d9742c1da0 |
comparison
equal
deleted
inserted
replaced
| 3:4627d99aa105 | 4:900d91d653cb |
|---|---|
| 106 fail('Error: The given output filename '+outfile+' could not be opened.') | 106 fail('Error: The given output filename '+outfile+' could not be opened.') |
| 107 | 107 |
| 108 if len(COLUMNS) != len(COLUMN_LABELS): | 108 if len(COLUMNS) != len(COLUMN_LABELS): |
| 109 fail('Error: Internal column names do not match column labels.') | 109 fail('Error: Internal column names do not match column labels.') |
| 110 if print_header: | 110 if print_header: |
| 111 outfile_handle.write('\t'.join(COLUMN_LABELS)+"\n") | 111 outfile_handle.write('#'+'\t'.join(COLUMN_LABELS)+"\n") |
| 112 | 112 |
| 113 # main loop: process and print one line at a time | 113 # main loop: process and print one line at a time |
| 114 sample_names = [] | 114 sample_names = [] |
| 115 for line in infile_handle: | 115 for line in infile_handle: |
| 116 line = line.rstrip('\r\n') | 116 line = line.rstrip('\r\n') |
