-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install needed BSgenome on the fly (#147)
* remove assembly specific packages closes #142 * fix pipeline when no import count matrix in sample annotation #114 * refactored config parsers by submodule * update to FRASER 1.2.0 @c-mertes * update aberrant splicing export @c-mertes * local loading of HPO file if present @vyepez88 * fixed buggy file extension when saving ods @jemten * Add files via upload (#146) * update OUTRIDER version and bugfixes * allow NCBI based assembly in config fixes #135 * move assembly version test to DropConf and adjust the pipeline. * add unlock if snakemake fails * use addAF to check installation * Add badge to readme Co-authored-by: mumichae <51025211+mumichae@users.noreply.github.com> Co-authored-by: Vicente Yepez <30469316+vyepez88@users.noreply.github.com>
- Loading branch information
Showing
19 changed files
with
112 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Python Package using Conda | ||
name: Build | ||
|
||
on: [push] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,42 @@ | ||
options(repos=structure(c(CRAN="https://cloud.r-project.org")), warn = -1) | ||
suppressPackageStartupMessages(library(data.table)) | ||
|
||
if (!requireNamespace('BiocManager', quietly = TRUE)) { | ||
install.packages('BiocManager') | ||
BiocManager::install("remotes") | ||
} | ||
if (!requireNamespace('data.table', quietly = TRUE)) { | ||
install.packages('data.table') | ||
} | ||
|
||
suppressPackageStartupMessages(library(data.table)) | ||
|
||
# do not turn wanrings into errors. E.g. "Package XXX build for R 4.0.X" | ||
Sys.setenv(R_REMOTES_NO_ERRORS_FROM_WARNINGS="true") | ||
|
||
args <- commandArgs(trailingOnly=TRUE) | ||
packages <- fread(args[1], fill = TRUE) | ||
packages <- packages[!startsWith(package, "#")] | ||
if (file.exists(args[1])){ | ||
packages <- fread(args[1], fill = TRUE) | ||
} else { | ||
packages <- data.table( | ||
package=gsub("=.*", "", unlist(args)), | ||
version=gsub(".*=", "", unlist(args))) | ||
packages[package == version, version:=NA] | ||
} | ||
installed <- as.data.table(installed.packages()) | ||
|
||
for (pckg_name in packages$package) { | ||
package_dt <- packages[package == pckg_name] | ||
pckg_name <- tail(unlist(strsplit(pckg_name, split = "/")), n = 1) | ||
pckg_name <- gsub(".*/", "", pckg_name) | ||
version <- package_dt$version | ||
|
||
if (pckg_name %in% installed$Package & | ||
(version == "" || installed[Package == pckg_name, Version] == version) | ||
) { | ||
#message(paste(pckg_name, "already installed")) | ||
} else { | ||
if (package_dt$bioconductor == TRUE) { | ||
INSTALL <- BiocManager::install | ||
} else { | ||
INSTALL <- install.packages | ||
} | ||
if (!pckg_name %in% installed$Package || (!is.na(version) && compareVersion( | ||
installed[Package == pckg_name, Version], version) < 0)) { | ||
|
||
package <- package_dt$package | ||
message(paste("install", package)) | ||
INSTALL(package) | ||
BiocManager::install(package, ask=FALSE, update=FALSE) | ||
message(paste("installed", package)) | ||
} | ||
} | ||
|
||
options(warn = 0) | ||
options(warn = 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
package bioconductor version | ||
OUTRIDER TRUE | ||
c-mertes/FRASER TRUE 1.2.0 | ||
mumichae/tMAE TRUE | ||
VariantAnnotation TRUE | ||
rmarkdown FALSE | ||
knitr FALSE | ||
ggplot2 FALSE | ||
ggthemes FALSE | ||
cowplot FALSE | ||
data.table FALSE | ||
dplyr FALSE | ||
tidyr FALSE | ||
magrittr FALSE | ||
devtools FALSE | ||
BSgenome.Hsapiens.UCSC.hg19 TRUE | ||
#MafDb.gnomAD.r2.1.hs37d5 TRUE | ||
#MafDb.gnomAD.r2.1.GRCh38 TRUE | ||
package version | ||
gagneurlab/OUTRIDER 1.6.1 | ||
c-mertes/FRASER 1.2.0 | ||
mumichae/tMAE 1.0.0 | ||
VariantAnnotation | ||
rmarkdown | ||
knitr | ||
ggplot2 | ||
ggthemes | ||
cowplot | ||
data.table | ||
dplyr | ||
tidyr | ||
magrittr | ||
devtools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters