Change prioritization table and mushroom plot defaults #300
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
p_val_x_adapted
top_val_adapted_x
, where x = "ligand" or "receptor". This mostly affects thegenerate_prioritization_table
function. This data frame returned by this function now also has a "prioritization_rank" column that contains the rankings of the LR pairs based on "prioritization_score" (with rank 1 being the highest).The behavior of
make_mushroom_plot
function is also changed as follows:color
is now the "scaled_p_val_adapted" column instead of "scaled_lfc" to better evaluate cell type specificity criteria (as the lfc column wasn't used for prioritization anyway)prioritization_table$sender
column if it is a factorsize
parameter is checked for the correct range (between 0 and 1.001) to prevent overgrown mushroomsuse_absolute_rank
(default: FALSE) that will determine whether the absolute rankings are used to filter the table totop_n
. If TRUE, this may return an empty table for cell types where LR pairs are all ranked lowly.