Skip to content

Commit

Permalink
remove guide lines from volcano plot
Browse files Browse the repository at this point in the history
  • Loading branch information
ischeller committed Apr 3, 2023
1 parent a8eda9b commit 191b81e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions R/plotMethods.R
Original file line number Diff line number Diff line change
Expand Up @@ -337,25 +337,6 @@ plotVolcano.FRASER <- function(object, sampleID,
theme(legend.position="none") +
scale_color_manual(values=c("gray40", "firebrick"))

if(!is.na(deltaPsiCutoff)){
g <- g +
geom_vline(xintercept=c(-deltaPsiCutoff, deltaPsiCutoff),
color="firebrick", linetype=2)
}

if(!is.na(padjCutoff)){
if(dt[padj <= padjCutoff, .N] > 0){
padj_line <- min(dt[padj <= padjCutoff, -log10(pval)])
padj_line <- min(dt[padj <= padjCutoff, -log10(pval)])
}
if(!"padj_line" %in% ls() || padj_line > 10 || is.na(padj_line)){
padj_line <- 6
}
g <- g +
geom_hline(yintercept=padj_line, color="firebrick", linetype=4)
}


if(isFALSE(basePlot)){
g <- g + xlab(paste("delta",
ggplotLabelPsi(type, asCharacter=TRUE)[[1]])) +
Expand Down

0 comments on commit 191b81e

Please sign in to comment.