Skip to content

Commit

Permalink
Update method-plot.R
Browse files Browse the repository at this point in the history
  • Loading branch information
vyepez88 authored Nov 22, 2024
1 parent 26e149a commit 6bc33fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/method-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,10 @@ plotManhattan.OUTRIDER <- function(object, sampleID, value="pvalue",
chr=NULL, main=paste0("Sample: ", sampleID),
featureRanges=rowRanges(object),
subsetName=NULL,
chrColor = c("black", "darkgrey")){
chrColor = c("black", "darkgrey"),
padjCutoff = 0.05,
zScoreCutoff=0
){
requireNamespace("ggbio")
requireNamespace("GenomeInfoDb")

Expand Down Expand Up @@ -1396,7 +1399,8 @@ plotManhattan.OUTRIDER <- function(object, sampleID, value="pvalue",
gr$value <- assay(object, "l2fc")[, sampleID]
value <- expression(paste(log[2], "(fold-change)"))
}
gr$aberrant <- aberrant(object, subsetName=subsetName)[,sampleID]
gr$aberrant <- aberrant(object, subsetName=subsetName,
padjCutoff=padjCutoff, zScoreCutoff=zScoreCutoff)[,sampleID]

# Sort granges for plot
gr <- GenomeInfoDb::sortSeqlevels(gr)
Expand Down

0 comments on commit 6bc33fc

Please sign in to comment.