# HG changeset patch # User iuc # Date 1599873705 0 # Node ID 69b08fc9557c147742cc53715ab1236844a9ff3a # Parent 59278960a2e727b0892bfa6d1f0a591c4d4a59ad "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/query_tabular commit daa9af57fe07ee83a45ddc9f855716f9d14a8e12" diff -r 59278960a2e7 -r 69b08fc9557c filter_tabular.xml --- a/filter_tabular.xml Thu Jan 23 07:36:21 2020 -0500 +++ b/filter_tabular.xml Sat Sep 12 01:21:45 2020 +0000 @@ -1,4 +1,4 @@ - + @@ -101,6 +101,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - ^(c?[1-9]\d*)$ + ^(c?[1-9]\d*)$ @@ -180,6 +183,12 @@ + + + + + + @@ -211,6 +220,7 @@ - by regex expression matching *include/exclude* lines the match the regex expression - select columns choose to include only selected columns in the order specified - regex replace value in column replace a field in a column using a regex substitution (good for date reformatting) + - regex replace value in column add a new column using a regex substitution of a column value - prepend a line number column each line has the ordinal value of the line read by this filter as the first column - append a line number column each line has the ordinal value of the line read by this filter as the last column - prepend a text column each line has the text string as the first column diff -r 59278960a2e7 -r 69b08fc9557c query_db.py --- a/query_db.py Thu Jan 23 07:36:21 2020 -0500 +++ b/query_db.py Sat Sep 12 01:21:45 2020 +0000 @@ -52,7 +52,7 @@ except Exception as exc: print("Warning: %s" % exc, file=sys.stderr) except Exception as e: - exit('Error: %s' % (e)) + exit('describe_tables Error: %s' % (e)) exit(0) diff -r 59278960a2e7 -r 69b08fc9557c test-data/filtered_customers_results.tsv --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/filtered_customers_results.tsv Sat Sep 12 01:21:45 2020 +0000 @@ -0,0 +1,4 @@ +1 John Smith John.Smith@yahoo.com yahoo.com 1968-02-04 626 222-2222 com +2 Steven Goldfish goldfish@fishhere.net fishhere.net 1974-04-04 323 455-4545 net +3 Paula Brown pb@herowndomain.org herowndomain.org 1978-05-24 416 323-3232 org +4 James Smith jim@supergig.co.uk supergig.co.uk 1980-10-20 416 323-8888