filter tag in output, multiple criteria

classic Classic list List threaded Threaded
5 messages Options
| Threaded
Open this post in threaded view
|

filter tag in output, multiple criteria

Geert Vandeweyer-4
Hi,

I'm looking for the correct syntax to achieve the following:

<data type="data" format="txt" name="loh" label="${tool.name} result on
${on_string} (loh) " >
         <filter>outtype == "0" || outttype == "2" </filter>
</data>
<data type="data" format="txt" name="cnv" label="${tool.name} result on
${on_string} (loh) " >
         <filter>outtype == "1" || outttype == "2" </filter>
</data>

I tried the above, with and without parentheses, but it creates the
second dataset also when outtype == 0. Is this type of dual filtering
possible?

Best,

Geert

--

Geert Vandeweyer, Ph.D.
Department of Medical Genetics
University of Antwerp
Prins Boudewijnlaan 43
2650 Edegem
Belgium
Tel: +32 (0)3 275 97 56
E-mail: [hidden email]
http://ua.ac.be/cognitivegenetics
http://www.linkedin.com/in/geertvandeweyer

___________________________________________________________
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/
| Threaded
Open this post in threaded view
|

Re: filter tag in output, multiple criteria

Peter Cock
On Fri, Jan 31, 2014 at 10:52 AM, Geert Vandeweyer
<[hidden email]> wrote:

> Hi,
>
> I'm looking for the correct syntax to achieve the following:
>
> <data type="data" format="txt" name="loh" label="${tool.name} result on
> ${on_string} (loh) " >
>         <filter>outtype == "0" || outttype == "2" </filter>
> </data>
> <data type="data" format="txt" name="cnv" label="${tool.name} result on
> ${on_string} (loh) " >
>         <filter>outtype == "1" || outttype == "2" </filter>
> </data>
>
> I tried the above, with and without parentheses, but it creates the second
> dataset also when outtype == 0. Is this type of dual filtering possible?

Rather than the logical or, have you tried outtype != "1", and outtype
!= "0" instead?

(I am assuming there are only three values for outtype, 0, 1 and 2.)

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/
| Threaded
Open this post in threaded view
|

Re: filter tag in output, multiple criteria

Nicola Soranzo
In reply to this post by Geert Vandeweyer-4
Il 2014-01-31 11:52 Geert Vandeweyer ha scritto:

> Hi,
>
> I'm looking for the correct syntax to achieve the following:
>
> <data type="data" format="txt" name="loh" label="${tool.name} result
> on ${on_string} (loh) " >
>         <filter>outtype == "0" || outttype == "2" </filter>
> </data>
> <data type="data" format="txt" name="cnv" label="${tool.name} result
> on ${on_string} (loh) " >
>         <filter>outtype == "1" || outttype == "2" </filter>
> </data>
>
> I tried the above, with and without parentheses, but it creates the
> second dataset also when outtype == 0. Is this type of dual filtering
> possible?

I don't know if this is the reason, but you seem to have a typo:

outttype == "2"

should be

outtype == "2"

Best,
Nicola
___________________________________________________________
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/
| Threaded
Open this post in threaded view
|

Re: filter tag in output, multiple criteria

Geert Vandeweyer-4
Hi,

Thanks for the quick suggestions.

The typo didn't exists in the original code, so that didn't solve it
unfortunately. I fixed it for now by using the negative filter (!=),
suggested by Peter.

Best,

Geert

On 01/31/2014 12:09 PM, Nicola Soranzo wrote:

> Il 2014-01-31 11:52 Geert Vandeweyer ha scritto:
>> Hi,
>>
>> I'm looking for the correct syntax to achieve the following:
>>
>> <data type="data" format="txt" name="loh" label="${tool.name} result
>> on ${on_string} (loh) " >
>>         <filter>outtype == "0" || outttype == "2" </filter>
>> </data>
>> <data type="data" format="txt" name="cnv" label="${tool.name} result
>> on ${on_string} (loh) " >
>>         <filter>outtype == "1" || outttype == "2" </filter>
>> </data>
>>
>> I tried the above, with and without parentheses, but it creates the
>> second dataset also when outtype == 0. Is this type of dual filtering
>> possible?
>
> I don't know if this is the reason, but you seem to have a typo:
>
> outttype == "2"
>
> should be
>
> outtype == "2"
>
> Best,
> Nicola
> ___________________________________________________________
> 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/


--

Geert Vandeweyer, Ph.D.
Department of Medical Genetics
University of Antwerp
Prins Boudewijnlaan 43
2650 Edegem
Belgium
Tel: +32 (0)3 275 97 56
E-mail: [hidden email]
http://ua.ac.be/cognitivegenetics
http://www.linkedin.com/in/geertvandeweyer

___________________________________________________________
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/
| Threaded
Open this post in threaded view
|

Re: filter tag in output, multiple criteria

Björn Grüning-3
Hi,

something like that is also possible:

        ((
          params['settingsType'] == "custom" and
          params['unmapped_read_file'] is True
        ))

So I assume:

outtype == "0" or outtype == "2"

will also work.
Cheers,
Bjoern



2014-01-31 Geert Vandeweyer <[hidden email]>:
Hi,

Thanks for the quick suggestions.

The typo didn't exists in the original code, so that didn't solve it unfortunately. I fixed it for now by using the negative filter (!=), suggested by Peter.

Best,

Geert


On 01/31/2014 12:09 PM, Nicola Soranzo wrote:
Il 2014-01-31 11:52 Geert Vandeweyer ha scritto:
Hi,

I'm looking for the correct syntax to achieve the following:

<data type="data" format="txt" name="loh" label="${tool.name} result
on ${on_string} (loh) " >
        <filter>outtype == "0" || outttype == "2" </filter>
</data>
<data type="data" format="txt" name="cnv" label="${tool.name} result
on ${on_string} (loh) " >
        <filter>outtype == "1" || outttype == "2" </filter>
</data>

I tried the above, with and without parentheses, but it creates the
second dataset also when outtype == 0. Is this type of dual filtering
possible?

I don't know if this is the reason, but you seem to have a typo:

outttype == "2"

should be

outtype == "2"

Best,
Nicola
___________________________________________________________
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/


--

Geert Vandeweyer, Ph.D.
Department of Medical Genetics
University of Antwerp
Prins Boudewijnlaan 43
2650 Edegem
Belgium
Tel: <a href="tel:%2B32%20%280%293%20275%2097%2056" value="+3232759756" target="_blank">+32 (0)3 275 97 56
E-mail: [hidden email]
http://ua.ac.be/cognitivegenetics
http://www.linkedin.com/in/geertvandeweyer

___________________________________________________________
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/


___________________________________________________________
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/