Home Wiki Blog Forum GEXF.net

Gephi forums

Community support

OR Filtering

Visual manipulations and refinements

OR Filtering

Postby osire56 » 24 Jul 2013 16:16

Hello,
In my network nodes attributes I have five fields (D1 to D5) which contain application domains. Since nodes may have up to five distinct applications domains at a time (Health and Research, for example) I am not able to filter nodes which are tagged "health" since "health" may be stored in any D1 to D5 fields.
The UNION and INTERSECTION operators do not match my needs and I am looking for an "OR" operator, something like:
D1="Health" OR D2="Health" OR... and so on

Is there a way to do this complex query ?
Thanks for your help
Olivier
osire56
 
Posts: 8
Joined: 16 Nov 2012 13:48

Re: OR Filtering

Postby seinecle » 26 Jul 2013 14:01

Hi,

I always have pains with filters too, so my way would be to find a hack around:
- back in the app that generates your network, create an extra attribute D0, in which you will collate all attributes D1-D5 of the node, as comma-separated list for instance.

Then in the filters, choose a filter on attribute on D0. To filter "Health", type .*Health.* making sure that the box for regex is ticked. That should work.

Best,

Clement
PS: if you can post an (anonymized) sample of your file, I'd be curious to give it a try the normal way with filters, though.
http://www.clementlevallois.net
Gephi tutorials and personalized trainings: http://www.clementlevallois.net/training.html
Join the Gephi Facebook group for help and support: https://www.facebook.com/groups/gephi/
User avatar
seinecle
Gephi Community Support
 
Posts: 543
Joined: 08 Feb 2010 17:55
Location: Lyon, France

Re: OR Filtering

Postby osire56 » 26 Jul 2013 14:29

Thanks Clement,
I will try that way.
I am sending a test file
Olivier
osire56
 
Posts: 8
Joined: 16 Nov 2012 13:48

Re: OR Filtering

Postby seinecle » 26 Jul 2013 14:48

For the visitors who see this thread later: I might be wrong but I believe that the UNION filters do not work indeed? (please correct me if you can make them work!).

Follow this issue on Github for its resolution:

https://github.com/gephi/gephi/issues/809

Best,

Clement
http://www.clementlevallois.net
Gephi tutorials and personalized trainings: http://www.clementlevallois.net/training.html
Join the Gephi Facebook group for help and support: https://www.facebook.com/groups/gephi/
User avatar
seinecle
Gephi Community Support
 
Posts: 543
Joined: 08 Feb 2010 17:55
Location: Lyon, France

Re: OR Filtering

Postby z3r0326 » 17 Sep 2013 19:42

I'm on Github, too, but I my Union filter is having similar issues. Also, my Intersection filter doesn't work the way it should. I have two integer attributes, and I wanted to filter where both ==1. If I put the two subfilters under INTERSECTION as the two attributes, no dice. But if I nest the second attribute within the first attribute as a subfilter, then I get what I'm looking for.
z3r0326
 
Posts: 1
Joined: 17 Sep 2013 19:39
Location: United States


Return to Filtering, Ranking & Interacting with the graph

Who is online

Users browsing this forum: No registered users and 0 guests

sports medicine portsmouth nh where to buy metronidazole