Mercurial > repos > greg > validate_affy_metadata
comparison validate_affy_metadata.py @ 17:17db886fbfad draft
Uploaded
| author | greg |
|---|---|
| date | Tue, 04 Dec 2018 13:51:21 -0500 |
| parents | 73a0f0ba30d4 |
| children | 38166b76f47a |
comparison
equal
deleted
inserted
replaced
| 16:b5bbc8f1f225 | 17:17db886fbfad |
|---|---|
| 73 continue | 73 continue |
| 74 line = line.rstrip("\r\n") | 74 line = line.rstrip("\r\n") |
| 75 if i > 97: | 75 if i > 97: |
| 76 accumulated_msgs = add_error_msg(accumulated_msgs, "The input file contains more than 97 lines (must be 1 header line and no more than 96 data lines).") | 76 accumulated_msgs = add_error_msg(accumulated_msgs, "The input file contains more than 97 lines (must be 1 header line and no more than 96 data lines).") |
| 77 stop_error(accumulated_msgs) | 77 stop_error(accumulated_msgs) |
| 78 items = line.split(",") | 78 items = line.split("\t") |
| 79 if len(items) != 29: | 79 if len(items) != 29: |
| 80 accumulated_msgs = add_error_msg(accumulated_msgs, "Line %d contains %s columns, (must be 29)." % (i, len(items))) | 80 accumulated_msgs = add_error_msg(accumulated_msgs, "Line %d contains %s columns, (must be 29)." % (i, len(items))) |
| 81 stop_error(accumulated_msgs) | 81 stop_error(accumulated_msgs) |
| 82 # Required and validated. | 82 # Required and validated. |
| 83 date_entered_db = items[0] | 83 date_entered_db = items[0] |
