Mercurial > repos > greg > validate_affy_metadata
comparison validate_affy_metadata.py @ 2:f3ca1cd544fa draft
Uploaded
author | greg |
---|---|
date | Wed, 14 Nov 2018 14:51:26 -0500 |
parents | 613186952d42 |
children | 017f975149b2 |
comparison
equal
deleted
inserted
replaced
1:613186952d42 | 2:f3ca1cd544fa |
---|---|
67 accumulated_msgs = add_error_msg(accumulated_msgs, "The input file contains more than 96 data lines.") | 67 accumulated_msgs = add_error_msg(accumulated_msgs, "The input file contains more than 96 data lines.") |
68 stop_error(accumulated_msgs) | 68 stop_error(accumulated_msgs) |
69 items = line.split("\t") | 69 items = line.split("\t") |
70 if len(items) != 31: | 70 if len(items) != 31: |
71 accumulated_msgs = add_error_msg(accumulated_msgs, "Line %d contains %s columns, (must be 31)." % (i, len(items))) | 71 accumulated_msgs = add_error_msg(accumulated_msgs, "Line %d contains %s columns, (must be 31)." % (i, len(items))) |
72 stop_error() | 72 stop_error(accumulated_msgs) |
73 # Required. | 73 # Required. |
74 sample_id = items[0] | 74 sample_id = items[0] |
75 if len(sample_id) == 0: | 75 if len(sample_id) == 0: |
76 accumulated_msgs = empty_value(i, "sample_id", accumulated_msgs) | 76 accumulated_msgs = empty_value(i, "sample_id", accumulated_msgs) |
77 # Required and validated. | 77 # Required and validated. |