comparison validate_affy_metadata.py @ 1:b5f5c3d0f349 draft

Uploaded
author greg
date Fri, 13 Sep 2019 13:55:24 -0400
parents 80d672b3e6dd
children 72e79ed7ca41
comparison
equal deleted inserted replaced
0:80d672b3e6dd 1:b5f5c3d0f349
72 # Skip the header. 72 # Skip the header.
73 continue 73 continue
74 # Keep 1-based line value for error messages. 74 # Keep 1-based line value for error messages.
75 line_no = i + 1 75 line_no = i + 1
76 line = line.rstrip("\r\n") 76 line = line.rstrip("\r\n")
77 if i > 97:
78 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).")
79 stop_error(accumulated_msgs)
80 items = line.split("\t") 77 items = line.split("\t")
81 if len(items) != 32: 78 if len(items) != 32:
82 accumulated_msgs = add_error_msg(accumulated_msgs, "Line %d contains %s columns, (must be 32)." % (line_no, len(items))) 79 accumulated_msgs = add_error_msg(accumulated_msgs, "Line %d contains %s columns, (must be 32)." % (line_no, len(items)))
83 stop_error(accumulated_msgs) 80 stop_error(accumulated_msgs)
84 # Required and validated. 81 # Required and validated.