Skip to content

Commit

Permalink
remove labeling from volcanos for ALL features to improve performance
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichl committed May 27, 2024
1 parent b8ab85d commit a9d7d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/scripts/volcanos.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ for (pval_type in c("p_val_adj", "p_val")){
}

volcano_plot <- EnhancedVolcano(toptable = toptable,
lab = toptable$feature,
lab = if (feature_list_name=="ALL") NA else toptable$feature,
x = x,
y = pval_type,
selectLab = selectLab,
selectLab = if (feature_list_name=="ALL") NULL else selectLab,
xlim = c(min(toptable[[x]], na.rm = TRUE) - 1, max(toptable[[x]], na.rm = TRUE) + 1),
ylim = c(0, max(-log10(toptable[[pval_type]]), na.rm = TRUE) + 5),
xlab = bquote("average" ~log[2] ~ "fold change"),
Expand Down

0 comments on commit a9d7d18

Please sign in to comment.