bzhanglab / WebGestaltR

R package for WebGestalt
https://bzhanglab.github.io/WebGestaltR/
34 stars 14 forks source link

Improve or clarify the reportNum parameter #34

Open yxngl opened 7 months ago

yxngl commented 7 months ago

Currently because cluster representatives of redundancy reduction methods are always added to the top results shown in the webpage, the actual number of gene sets could exceed the reportNum threshold. Or the information will not be available when AP or WSC is chosen. Either we can store a separate list for them or figure out a better way since the redundancy reduction need some changes in the new version.

Another related problem is when representatives are rescued, they are just appended to the end without sorting again. This could be fixed quickly.

iblacksand commented 7 months ago

In the new package, users can enable and disable the redundancy removal, so the size of this effect will change depending on what they enable.

I'll fix this in my fork. I think not showing the representatives in the All table could be a nice middle ground. Although it may be confusing for new users when they see gene sets that are not found in the top $n$ list.

I mirrored this issue in my fork at https://github.com/iblacksand/WebGestaltR/issues/7 and experiment with different options.