Re: [galaxy-dev] complex help for conditional param
Hi Jun, Thanks for the clarification - I did not read your question carefully enough, sorry. I don't think this is possible. What I would use is just: BLASTN, for DNA against DNA BLASTP, for protein against protein Regards, Peter On Tue, May 27, 2014 at 10:29 PM, Jun Fan wrote: > Hi Peter, > > I am afraid that the link you gave me could not solve the problem. The > question I asked is about the help element, not the label attribute for data > element. > To clarify my question, here is the code which does not work, but shows > what I intend to do: > > > BLASTN > BLASTP > > > BLAST DNA against DNA > > > > BLAST protein against protein > > > > I tried to set the help content according to the selected type, which > works like a section header to the following param list. > Obviously this does not work. Then I tried a less-fancy way by > providing static help context by adding under select param like > > BLASTN: BLAST DNA against DNA, BLASTP: BLAST protein > against protein > BLASTN > Of course it works but in an ugly formatting text. Is there any > document to format it nicely, e.g. a list? > > Best regards! > Jun > ___ 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/
Re: [galaxy-dev] complex help for conditional param
Hi Peter, I am afraid that the link you gave me could not solve the problem. The question I asked is about the help element, not the label attribute for data element. To clarify my question, here is the code which does not work, but shows what I intend to do: BLASTN BLASTP BLAST DNA against DNA BLAST protein against protein I tried to set the help content according to the selected type, which works like a section header to the following param list. Obviously this does not work. Then I tried a less-fancy way by providing static help context by adding under select param like BLASTN: BLAST DNA against DNA, BLASTP: BLAST protein against protein BLASTN Of course it works but in an ugly formatting text. Is there any document to format it nicely, e.g. a list? Best regards! Jun -Original Message- From: Peter Cock [mailto:p.j.a.c...@googlemail.com] Sent: Tuesday, May 27, 2014 4:40 PM To: Jun Fan Cc: galaxy-dev@lists.bx.psu.edu Subject: Re: [galaxy-dev] complex help for conditional param On Tue, May 27, 2014 at 4:32 PM, Jun Fan wrote: > Hi all, > > > >In the conditional param, when sub-element allows you to write > specific parameters for a particular value selected. I am wondering > how to write the help context according to the value selection. For > example, if there is a conditional param called blast_type, when > “blastn” is selected, the help context will be “blast dna against dna” > and when “blastp” is selected, the help context will be “blast protein > against protein”. > Basically this selection-based help text provides a general > description of the selection, which could help to set up the corresponding > parameters. > > By the way, is there any document about formatting text in the > help element? > > Best regards! > > Jun You can do this kind of thing with one-line Cheetah syntax within the output XML tag, but it quickly gets very complicated. e.g. https://github.com/peterjc/pico_galaxy/commit/3991893c6ee2cc69c33aaa391bbed412c85fa9db Peter ___ 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/
Re: [galaxy-dev] complex help for conditional param
On Tue, May 27, 2014 at 4:32 PM, Jun Fan wrote: > Hi all, > > > >In the conditional param, when sub-element allows you to write > specific parameters for a particular value selected. I am wondering how to > write the help context according to the value selection. For example, if > there is a conditional param called blast_type, when “blastn” is selected, > the help context will be “blast dna against dna” and when “blastp” is > selected, the help context will be “blast protein against protein”. > Basically this selection-based help text provides a general description of > the selection, which could help to set up the corresponding parameters. > > By the way, is there any document about formatting text in the help > element? > > Best regards! > > Jun You can do this kind of thing with one-line Cheetah syntax within the output XML tag, but it quickly gets very complicated. e.g. https://github.com/peterjc/pico_galaxy/commit/3991893c6ee2cc69c33aaa391bbed412c85fa9db Peter ___ 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/