space in text tool results in two arguments
Hi, My tool in galaxy accepts text argument which can have zero or more spaces depending on user requirements. When user inputs one word it is parsed fine but in the case when user inputs more words separated by space it results in multiple separate arguments which messes with the way I am treating commandline args in my script. Is it possible to tell Galaxy to treat textbox as a single argument irrespective of spaces in the values provided? Thanks for any suggestions. Best, -- Ketan
Hi Ketan. Please try quotation marks to enclose any parameter containing spaces in the tool command template - eg something like: python myscript.py "$text_with_spaces" $param2 $param3.... Please confirm that this solves the problem? On Tue, Feb 18, 2014 at 12:47 PM, Ketan Maheshwari < ketancmaheshwari@gmail.com> wrote:
Hi,
My tool in galaxy accepts text argument which can have zero or more spaces depending on user requirements. When user inputs one word it is parsed fine but in the case when user inputs more words separated by space it results in multiple separate arguments which messes with the way I am treating commandline args in my script. Is it possible to tell Galaxy to treat textbox as a single argument irrespective of spaces in the values provided?
Thanks for any suggestions.
Best, -- Ketan
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/
To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/
Hi Ross, I did try to use double quotes and curly braces: "${outloc}" but it does not seem to address the issue. Thanks, Ketan On Mon, Feb 17, 2014 at 10:37 PM, Ross <ross.lazarus@gmail.com> wrote:
Hi Ketan. Please try quotation marks to enclose any parameter containing spaces in the tool command template - eg something like: python myscript.py "$text_with_spaces" $param2 $param3....
Please confirm that this solves the problem?
On Tue, Feb 18, 2014 at 12:47 PM, Ketan Maheshwari < ketancmaheshwari@gmail.com> wrote:
Hi,
My tool in galaxy accepts text argument which can have zero or more spaces depending on user requirements. When user inputs one word it is parsed fine but in the case when user inputs more words separated by space it results in multiple separate arguments which messes with the way I am treating commandline args in my script. Is it possible to tell Galaxy to treat textbox as a single argument irrespective of spaces in the values provided?
Thanks for any suggestions.
Best, -- Ketan
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/
To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/
-- Ketan
participants (2)
-
Ketan Maheshwari
-
Ross