changeset 6:c6ba1e6f6869 draft

planemo upload commit 74b6a02a2e64d02551c05b52d571b888ac73cac9
author proteore
date Fri, 20 Apr 2018 09:07:23 -0400
parents 1e9911190142
children 6f32c1e12572
files README.rst filter_kw_val.py filter_kw_val.xml test-data/FKW_Lacombe_et_al_2017_OK.txt test-data/Lacombe_et_al_2017_OK.txt test-data/Trash_FKW_Lacombe_et_al_2017_OK.txt
diffstat 2 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/README.rst	Wed Mar 14 10:24:54 2018 -0400
+++ b/README.rst	Fri Apr 20 09:07:23 2018 -0400
@@ -13,7 +13,7 @@
 
 -------------------------------------------------------
 
-This tool allows to filter out data according to your specific needs (e.g. contaminants, non-significant values or related to a particular annotation) from a proteomics results file (e.g. MaxQuant or Proline output).
+This tool allows to remove unneeded data (e.g. contaminants, non-significant values) from a proteomics results file (e.g. MaxQuant or Proline output).
 
 **For each row, if there are more than one protein IDs/protein names/gene names, only the first one will be considered in the output**
 
@@ -31,17 +31,17 @@
 
 ALDOA_RABBIT
 
-**The line that contains these keywords will be filtered from input file and provided in a separate file.**
+**The line that contains these keywords will be eliminated from input file.**
 
 **Keywords search can be applied by performing either exact match or partial one by using the following option**
 
-- If you choose **Yes**, only the fields that contains exactly the same content will be filtered.
+- If you choose **Yes**, only the fields that contains exactly the same content will be removed.
 
-- If you choose **No**, all the fields containing the keyword will be filtered.
+- If you choose **No**, all the fields containing the keyword will be removed.
 
 For example:
 
-**Yes** option (exact match) selected using the keyword "kinase": only lines which contain exactly "kinase" is filtered (and not "Kinase").
+**Yes** option (exact match) selected using the keyword "kinase": only lines which contain exactly "kinase" is removed.
 
 **No** option (partial match) for "kinase": not only lines which contain "kinase" but also lines with "alpha-kinase" (and so  on) are removed.
 
@@ -57,4 +57,4 @@
 
 * A text file containing the resulting filtered input file.
 
-* A text file containing the rows that have been filtered from the input file.
+* A text file containing the rows removed from the input file.
\ No newline at end of file
--- a/filter_kw_val.py	Wed Mar 14 10:24:54 2018 -0400
+++ b/filter_kw_val.py	Fri Apr 20 09:07:23 2018 -0400
@@ -33,8 +33,8 @@
     """
     Check if a variable is a float or an integer
     """
-    float_format = re.compile(r"^[-]?[1-9][0-9]*.?[0-9]+$")
-    int_format = re.compile(r"^[-]?[1-9][0-9]*$")
+    float_format = re.compile(r"^[-]?[0-9][0-9]*.?[0-9]+$")
+    int_format = re.compile(r"^[-]?[0-9][0-9]*$")
     test = ""
     if number_format == "int":
         test = re.match(int_format, n)