changeset 1:b5f5c3d0f349 draft

Uploaded
author greg
date Fri, 13 Sep 2019 13:55:24 -0400
parents 80d672b3e6dd
children 72e79ed7ca41
files validate_affy_metadata.py validate_affy_metadata.xml
diffstat 2 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/validate_affy_metadata.py	Thu Aug 15 13:17:41 2019 -0400
+++ b/validate_affy_metadata.py	Fri Sep 13 13:55:24 2019 -0400
@@ -74,9 +74,6 @@
         # Keep 1-based line value for error messages.
         line_no = i + 1
         line = line.rstrip("\r\n")
-        if i > 97:
-            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).")
-            stop_error(accumulated_msgs)
         items = line.split("\t")
         if len(items) != 32:
             accumulated_msgs = add_error_msg(accumulated_msgs, "Line %d contains %s columns, (must be 32)." % (line_no, len(items)))
--- a/validate_affy_metadata.xml	Thu Aug 15 13:17:41 2019 -0400
+++ b/validate_affy_metadata.xml	Fri Sep 13 13:55:24 2019 -0400
@@ -6,7 +6,7 @@
 --output '$output']]></command>
     <inputs>
         <param name="input" type="data" format="tabular" label="Affymetrix 96 well plate metadata file">
-            <validator type="expression" message="96 well plate data must have 32 columns and no more than 96 lines of data"><![CDATA[value is not None and value.metadata.columns==32 and value.metadata.data_lines<=96]]></validator>
+            <validator type="expression" message="96 well plate data must have 32 columns"><![CDATA[value is not None and value.metadata.columns==32]]></validator>
         </param>
     </inputs>
     <outputs>
@@ -21,7 +21,7 @@
     <help>
 **What it does**
 
-Validates an Affymetrix metadata file for 96 well plate data.  These files consist of 32 columns and no more than 96 data lines.
+Validates an Affymetrix metadata file for 96 well plate data consisting of 32 columns.
 The tool will output the input file if it is valid.
 
 -----