unify the selection process for barplots, heatmaps, and ES plots.
there is a new function in fgsea.R, select_topn, that can be chained after filter_on_mainpathway to perform the selection. this unified interface (function) should make it easier to ensure the "topn" is the same, given the same filtering and limit parameters
they now both use the same select_topn function to perform the selection. further filter args can be passed down/ customized via the bar and heatmap plots individually
unify the selection process for barplots, heatmaps, and ES plots.
there is a new function in fgsea.R,
select_topn
, that can be chained afterfilter_on_mainpathway
to perform the selection. this unified interface (function) should make it easier to ensure the "topn" is the same, given the same filtering and limit parameters