WouterSpekkink / gephi-plugins

Repository for Gephi Plugins maintained by the team. Each plugin has it's branch.
4 stars 2 forks source link

Reporting of trophic incoherence statistic #10

Closed BazilSansom closed 3 years ago

BazilSansom commented 3 years ago

Ideally trophic incoherence statistic would appear under "network overview" with the option to "run" "trophic incoherence". This would also make the statistic visible in the panel (which would be nice) - as for e.g. average degree in image below.

It would make sense if clicking "run" for either "trophic levels" (under node overview) also returned "trophic incoherence" under "network overview" and visa versa.

Screen Shot 2021-03-30 at 16 40 09
WouterSpekkink commented 3 years ago

I will look into this. I am not entirely sure it is possible. Reporting the statistic in the panel is, regardless of under which header you put it. However, if you have multiple components, what do you report? That was the reason why I didn't report one statistic in the current version.

BazilSansom commented 3 years ago

Issue of multiple components interesting.

Out of interest I wonder what does Gephi do with e.g. diameter or other metrics that will differ between components?

I imagine that for the most part will be dealing with single weakly connected component. If straightforward could report single number if single component, otherwise a report you need to open?

Anyway best not report trophic incoherence number beside trophic levels without explanation as this seems confusing.

WouterSpekkink commented 3 years ago

I was just thinking: Does it perhaps make sense to instead move the statistic to the network overview, then report it as Trophic Incoherence (or whatever else we decide to name it) and then say that the trophic levels can be found in the laboratory?

About the multiple components: Let me indeed check what Gephi does with something like diameter. It might be that they take the maximum. What we could also attempt is to report the statistic in the panel if there is one component and report nothing in the panel if there are multiple (but still report them in the report that you see when you click the question mark).

WouterSpekkink commented 3 years ago

I can confirm that for network diameter Gephi just reports the diameter of the largest component. I think that Gephi's logic is that whatever you have in your data lab is 1 network, even if it includes multiple unconnected components. For us, this is not a solution.

WouterSpekkink commented 3 years ago

And in the meantime I also found out that there is no obvious way of making the plugin appear in both panels at once. I suggest we rename the statistic to Trophic Incoherence, and make it show up in the network statistics panel instead.

The logic is the to report the network-level statistic in the panel, with the associated node-level statistics being recorded in the data lab. I think this is also more consistent with how Gephi works with other modules.

WouterSpekkink commented 3 years ago

Ok, I settled on the following, and I strongly suggest this is the best solution:

I renamed the plugin to Trophic Incoherence, and made Gephi include it as a network-level statistics plugin. The plugin will report the Trophic Incoherence as a statistic in the panel (and in the report). If multiple components exist, it only reports the statistic in the report, for each component.

Of course, it also still reports the Trophic Levels in the data laboratory. This is also mentioned in the description of the plugin and in the report.

To me, it seemed more consistent with this approach to also rename the plugin itself to the overall statistic. I therefore also moved the plugin to a new branch that carries the same name.

WouterSpekkink commented 3 years ago

Please see the trophicincoherence branch. I'll keep the TrophicLevels branch for now (which is now just a copy that is some commits behind the new branch), but I'll probably just delete it in the near future.