emmanuelparadis / pegas

Population and Evolutionary Genetics Analysis System
GNU General Public License v2.0
27 stars 10 forks source link

Introduce threshold parameter for show.mutation #84

Open naurasd opened 11 months ago

naurasd commented 11 months ago

Hi

another question / request from my side:

In some cases, a few links within a network may show a very high number of mutations. To display such links in a different way, I can cset show.mutation = 3 when plotting a network. Hence, all mutations are represented as a number then, even links with just one or two mutations. But could there be something of a threshold parameter in the future, so that I can have both mutation symbols (ticks or dots) AND numbers in my plot? This way I could set a threshold, let's say 10, meaning that all links with a number of mutations below this threshold can be drawn as dots/ticks, and for links where the threshold is exceeded, these ones will be drawn with the repsective numerical value? Could there also be an option to not draw such high-mutation links with a length relative to the number of mutations, but to set a fixed length value? such long links sometimes spread out the entire network and it would be nice to shorten such links and summarize them with their number of mutations, as mentioned before.

I prefer to not have my low-mutation links drawn as numbers, especially in dense networks where this creates two "crowded" visualisations. My solution for now is to draw plots with show.mutation = 1 or 2 and then manually fix the links with numerical values where needed.

Thanks Nauras