Skip to content

Commit

Permalink
Try to fix RRA
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceKuhl committed Oct 29, 2024
1 parent a9774f1 commit 886228c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/local/mageck/graphrra.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,16 @@ process MAGECK_GRAPHRRA {
#### Released under the MIT license. See git repository (https://github.com/nf-core/crisprseq) for full license text.
####
#### Orient a reference sequence according to reads orientation.
library(BiocFileCache)
bfc <- BiocFileCache("~/.cache/R/ExperimentHub")
library(ExperimentHub)
res <- bfcquery(bfc, "experimenthub.index.rds", field="rname", exact=TRUE)
bfcremove(bfc, rids=res\$rid)
eh = ExperimentHub()
library(MAGeCKFlute)
library(ggplot2)
options(ggrepel.max.overlaps = Inf)
gdata = ReadRRA("$gene_summary")
gdata <- transform(gdata, LogFDR = -log10(FDR))
png(filename = paste0("$meta.treatment","_vs_","$meta.reference","_scatterview.png"), width = 6, height = 4, units = "in", res = 300)
Expand Down Expand Up @@ -60,6 +65,4 @@ process MAGECK_GRAPHRRA {
writeLines(version_ggplot, f)
close(f)
"""


}

0 comments on commit 886228c

Please sign in to comment.