Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to fix RRA #214

Merged
merged 12 commits into from
Nov 8, 2024
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix design matrix bug that introduced dots instead of a hyphen ([#190](https://github.com/nf-core/crisprseq/pull/190))
- Make output of FluteMLE optional as when some pathways produce bugs some channels are then empty ([#190](https://github.com/nf-core/crisprseq/pull/190))
- Fix a typo in crisprcleanr/normalize, when a user inputs a file ([#192](https://github.com/nf-core/crisprseq/pull/192))
- Add Singularity and Docker tests in the CI, also fix any issues users had when running MAGeCKFlute with Docker or Singularity. ([#214](https://github.com/nf-core/crisprseq/pull/214))

### General

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ We thank the following people for their extensive assistance in the development
- [@jianhong](https://github.com/jianhong)
- [@joannakraw](https://github.com/joannakraw)
- [@mashehu](https://github.com/mashehu)
- [@medmaca](https://github.com/medmaca)
- [@metinyazar](https://github.com/metinyazar)
- [@msanvicente](https://github.com/msanvicente)
- [@mschaffer-incyte](https://github.com/mschaffer-incyte)
Expand Down
5 changes: 1 addition & 4 deletions modules/local/mageck/graphrra.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ 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.

Sys.setenv(HOME = getwd()) # Required for Singularity/Apptainer
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 +59,4 @@ process MAGECK_GRAPHRRA {
writeLines(version_ggplot, f)
close(f)
"""


}
9 changes: 2 additions & 7 deletions templates/template_fluteMLE.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@
####
#### graphs mageck MLE

# Required to fix corrupted cache from Singularity container
library(BiocFileCache)
bfc <- BiocFileCache("~/.cache/R/ExperimentHub")
res <- bfcquery(bfc, "experimenthub.index.rds", field="rname", exact=TRUE)
bfcremove(bfc, rids=res\$rid)
library(ExperimentHub)
eh = ExperimentHub()
# Required to fix .cache issue with Singularity/Apptainer container
Sys.setenv(HOME = getwd())

library(MAGeCKFlute)
library(clusterProfiler)
Expand Down
Loading