Skip to content

Commit ac22884

Browse files
marouenbgKate Hoff Shuttanturagakatehoffshuttalshep
authored
1.4.0 (#289)
* add bioc information * update website * add crane and docs * update crane * update worflow * update crane * update workflows * update workflows * update workfolw * update workfolw * update workfolw * update workfolw * Update main.yml * Update main.yml * Update main.yml * fix lioness py * udpate lioness in R * include calculations python * update panda rm missing * update panda * update lioness joblib * revert commits * ALPACA fix to NAs in community assignement * version bump * revert lioness * update crane with alpaca changes * update lioness * update lioness python * fix test * update workflows * put back github actions * Fixed typo * Added LIONESS-pearson option + unit test * changed param labels in LIONESS example * updated docs for lioness() function * Update main.yml * Update main.yml * bump x.y.z version to even y prior to creation of RELEASE_3_15 branch * bump x.y.z version to odd y following creation of RELEASE_3_15 branch * Update DESCRIPTION * fix crane issue #240 * expanded PANDA and LIONESS description * update crane fix * added ALPACA, EGRET, and OTTER descriptions * Update README.md * typo in na.rm * update workflow * update workflow2 * fix-actions-3 * add r lib v2 * add r lib v2 * update condor test * update condor test * update condor test * update condor test * show testthat output * add pandoc and use cache * use built in check * use built in check * update actions with built in check * bump version * use built in coverage * use built in coverage * remove sudo * update actions * update actions * removed sudo from actions * ugrade to R42 * remove virtualenv * remove virtualenv * remove virtualenv * modify condor test * update condor test * update condor test * adding retiucualte to covr * adding retiucualte to covr * add panda test to coverignore * update actions * remove lioness tests from coverage * remove lioness tests from coverage * added MONSTER and SAMBAR * remove lionessR test * Added CONDOR and YARN * Update README.md * put back otter in rbuild * remove condor test * remove condor test * remove lioness docs * add lioness to buildingore * donttest lionesss * remove coverage from ubuntu test * remove rbuilignore * update rbuildignore * update rbuildignore * update rbuildignore * update rbuildignore * update rbuildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * put back tests * add padanedge diff test * add back egeret test * add monster test * fix monster test * tolerance in expect equal * tolerance in expect equal * tolerance in expect equal * tolerance in expect equal * add sourceppi * fixed PANDA tests * modify panda test * update lioness test * fix expect message * update tests * update tests * update tests * update tests * update tests * update tests * reduced lioness test data * reduced lioness test data * reduced lioness test data * reduced lioness test data * reduce test size * updating bioc (#250) * updating bioc * remove empty lines * remove empty lines * update citation * update citation * update citation * Update README.md * Update README.md * Update main.yml * Update main.yml * Update .Rbuildignore * Update .Rbuildignore * update lioness test * removed two last lioness tests * removed two last lioness tests * removed two last lioness tests * no saving of lioness networks * no saving of lioness networks * no saving of lioness networks * no saving of lioness networks * update lioness test * lower sizeof test * update test data * update test data * update test data * reduce panda tests * remove old test data * remove old test data * Update main.yml * 1.1.16 update pandapy with header argument (#260) * trying collapse readme (#261) * trying collapse readme * collapse animal description * Update README.md * Fix news file formatting o was not rendering list properly * bump x.y.z version to even y prior to creation of RELEASE_3_16 branch * bump x.y.z version to odd y following creation of RELEASE_3_16 branch * update biconda (#265) * add spider (#269) * add spider * udpate spider * udpate spider * update spuder with degreeadjust * fix spider bug * DRAGON and unit tests work in progress (#267) - add DRAGON in R and unit tests * update lioness (#276) * update lioness code (#277) * Update LIONESS.R * Update LIONESS.R * Update LIONESS.R * add note about the function (#279) * add note about the function * Update sourcePPI.R * Update README.md * Update README.md * Update sourcePPI.R * Update sourcePPI.R * add details about sourcePPI (#280) * add parallelization option to lioness (#281) * 1.2.1 (#271) * add bioc information * update website * add crane and docs * update crane * update worflow * update crane * update workflows * update workflows * update workfolw * update workfolw * update workfolw * update workfolw * Update main.yml * Update main.yml * Update main.yml * fix lioness py * udpate lioness in R * include calculations python * update panda rm missing * update panda * update lioness joblib * revert commits * ALPACA fix to NAs in community assignement * version bump * revert lioness * update crane with alpaca changes * update lioness * update lioness python * fix test * update workflows * put back github actions * Fixed typo * Added LIONESS-pearson option + unit test * changed param labels in LIONESS example * updated docs for lioness() function * Update main.yml * Update main.yml * Update DESCRIPTION * fix crane issue #240 * expanded PANDA and LIONESS description * update crane fix * added ALPACA, EGRET, and OTTER descriptions * Update README.md * typo in na.rm * update workflow * update workflow2 * fix-actions-3 * add r lib v2 * add r lib v2 * update condor test * update condor test * update condor test * update condor test * show testthat output * add pandoc and use cache * use built in check * use built in check * update actions with built in check * bump version * use built in coverage * use built in coverage * remove sudo * update actions * update actions * removed sudo from actions * ugrade to R42 * remove virtualenv * remove virtualenv * remove virtualenv * modify condor test * update condor test * update condor test * adding retiucualte to covr * adding retiucualte to covr * add panda test to coverignore * update actions * remove lioness tests from coverage * remove lioness tests from coverage * added MONSTER and SAMBAR * remove lionessR test * Added CONDOR and YARN * Update README.md * put back otter in rbuild * remove condor test * remove condor test * remove lioness docs * add lioness to buildingore * donttest lionesss * remove coverage from ubuntu test * remove rbuilignore * update rbuildignore * update rbuildignore * update rbuildignore * update rbuildignore * update rbuildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * add back buildignore * put back tests * add padanedge diff test * add back egeret test * add monster test * fix monster test * tolerance in expect equal * tolerance in expect equal * tolerance in expect equal * tolerance in expect equal * add sourceppi * fixed PANDA tests * modify panda test * update lioness test * fix expect message * update tests * update tests * update tests * update tests * update tests * update tests * reduced lioness test data * reduced lioness test data * reduced lioness test data * reduced lioness test data * reduce test size * updating bioc (#250) * updating bioc * remove empty lines * remove empty lines * update citation * update citation * Update README.md * Update README.md * Update main.yml * Update main.yml * Update .Rbuildignore * Update .Rbuildignore * update lioness test * removed two last lioness tests * removed two last lioness tests * removed two last lioness tests * no saving of lioness networks * no saving of lioness networks * no saving of lioness networks * no saving of lioness networks * update lioness test * lower sizeof test * update test data * update test data * update test data * reduce panda tests * remove old test data * remove old test data * Update main.yml * 1.1.16 update pandapy with header argument (#260) * trying collapse readme (#261) * trying collapse readme * collapse animal description * Update README.md * update biconda (#265) * add spider (#269) * add spider * udpate spider * udpate spider * update spuder with degreeadjust * fix spider bug Co-authored-by: Kate Hoff Shutta <kshutta@umass.edu> Co-authored-by: katehoffshutta <43797774+katehoffshutta@users.noreply.github.com> * 1.2.2 (#273) - add DRAGON * add option to run lioness on multiple cores by using parallel::mclapply in place of lapply --------- Co-authored-by: Marouen <marouenbg@users.noreply.github.com> Co-authored-by: Kate Hoff Shutta <kshutta@umass.edu> Co-authored-by: katehoffshutta <43797774+katehoffshutta@users.noreply.github.com> * fix monster error * fix monster * 1.3.2 * update tests * update bioc verssion * update monster test * update argument description * update argument description * changed date * updaate docs * update dragon verbose * update spider * add puma (#270) * add puma * update PUMA * updating mirna interactions * add PUMA in readme * Update PUMA.R * Create TIGER.R (#272) add TIGER.R * Add lioness update (#284) * update documentation * remove monster tests * reduce monstr test * update documentation * remove diffedge example * reduce monster tests * remove spider example * update monster examples * remove lioness tests * remove pada tests * add citation * update lioness append code * Update puma (#286) * update documentation * remove monster tests * reduce monstr test * update documentation * remove diffedge example * reduce monster tests * remove spider example * update monster examples * remove lioness tests * remove pada tests * add citation * fix puma examples * fix puma examples * update docs * Add TIGER (#283) * Create TIGER.R add TIGER.R * Add TIGER * compile TIGER 1. change the TIGER example to fit LazyData=F mode 2. document all the functions and required packages * DESCRIPTION depends Add cmdstanr to DESCRIPTION depends * onLoad install cmdstan * Update puma.Rd * Add data document --------- Co-authored-by: Marouen <marouenbg@users.noreply.github.com> * Update DESCRIPTION * Add TIGER description to README file (#288) * Create TIGER.R add TIGER.R * Add TIGER * compile TIGER 1. change the TIGER example to fit LazyData=F mode 2. document all the functions and required packages * DESCRIPTION depends Add cmdstanr to DESCRIPTION depends * onLoad install cmdstan * Update puma.Rd * Add data document * Update README.md --------- Co-authored-by: Marouen <marouenbg@users.noreply.github.com> --------- Co-authored-by: Kate Hoff Shutta <kshutta@umass.edu> Co-authored-by: Nitesh Turaga <nitesh.turaga@gmail.com> Co-authored-by: katehoffshutta <43797774+katehoffshutta@users.noreply.github.com> Co-authored-by: lshep <lori.shepherd@roswellpark.org> Co-authored-by: J Wokaty <jennifer.wokaty@sph.cuny.edu> Co-authored-by: Lauren Hsu <50427381+laurenhsu1@users.noreply.github.com> Co-authored-by: cchen22 <37237626+cchen22@users.noreply.github.com>
1 parent 81cb072 commit ac22884

31 files changed

+873
-98
lines changed

DESCRIPTION

Lines changed: 41 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: netZooR
22
Type: Package
33
Title: Unified methods for the inference and analysis of gene regulatory networks
4-
Version: 1.3.15
5-
Date: 2023-03-16
4+
Version: 1.4.0
5+
Date: 2023-06-03
66
Authors@R: c(person("Marouen", "Ben Guebila",
77
email = "benguebila@hsph.harvard.edu", role = c("aut","cre"), comment = c(ORCID = "0000-0001-5934-966X")),
88
person("Tian", "Wang",
@@ -27,6 +27,8 @@ Depends: R (>= 4.2.0),
2727
pandaR,
2828
yarn,
2929
matrixcalc
30+
Remotes:
31+
stan-dev/cmdstanr
3032
biocViews:
3133
NetworkInference,
3234
Network,
@@ -35,45 +37,50 @@ biocViews:
3537
Transcription,
3638
Microarray,
3739
GraphAndNetwork
38-
Imports: RCy3,
39-
viridisLite,
40-
STRINGdb,
41-
Biobase,
42-
GOstats,
43-
AnnotationDbi,
44-
matrixStats,
45-
GO.db,
46-
org.Hs.eg.db,
47-
Matrix,
48-
gplots,
49-
nnet,
50-
data.table,
51-
vegan,
52-
stats,
53-
utils,
54-
reshape,
55-
reshape2,
56-
penalized,
57-
parallel,
58-
doParallel,
59-
foreach,
60-
ggplot2,
61-
ggdendro,
62-
grid,
63-
MASS,
64-
assertthat,
65-
tidyr,
66-
methods,
67-
dplyr,
68-
graphics
40+
Imports:
41+
RCy3,
42+
viridisLite,
43+
STRINGdb,
44+
Biobase,
45+
GOstats,
46+
AnnotationDbi,
47+
matrixStats,
48+
GO.db,
49+
org.Hs.eg.db,
50+
Matrix,
51+
gplots,
52+
nnet,
53+
data.table,
54+
vegan,
55+
stats,
56+
utils,
57+
reshape,
58+
reshape2,
59+
penalized,
60+
parallel,
61+
doParallel,
62+
foreach,
63+
ggplot2,
64+
ggdendro,
65+
grid,
66+
MASS,
67+
assertthat,
68+
tidyr,
69+
methods,
70+
dplyr,
71+
graphics,
72+
cmdstanr,
73+
GeneNet,
74+
loo
6975
License: GPL-3
7076
Encoding: UTF-8
7177
LazyData: false
7278
Suggests:
7379
testthat (>= 2.1.0),
7480
knitr,
7581
rmarkdown,
76-
pkgdown
82+
pkgdown,
83+
dorothea
7784
VignetteEngine: knitr
7885
VignetteBuilder: knitr
7986
RoxygenNote: 7.2.3

NAMESPACE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Generated by roxygen2: do not edit by hand
22

3+
export(TIGER)
4+
export(adj2el)
5+
export(adj2regulon)
36
export(alpaca)
47
export(alpacaCrane)
58
export(alpacaExtractTopGenes)
@@ -15,6 +18,8 @@ export(craneUnipartite)
1518
export(createCondorObject)
1619
export(createPandaStyle)
1720
export(dragon)
21+
export(el2adj)
22+
export(el2regulon)
1823
export(elistToAdjMat)
1924
export(lioness)
2025
export(lionessPy)
@@ -36,6 +41,8 @@ export(pandaDiffEdges)
3641
export(pandaPy)
3742
export(pandaToAlpaca)
3843
export(pandaToCondorObject)
44+
export(prior.pp)
45+
export(puma)
3946
export(runEgret)
4047
export(sambar)
4148
export(sourcePPI)
@@ -87,6 +94,7 @@ importFrom(matrixStats,rowSds)
8794
importFrom(methods,is)
8895
importFrom(methods,new)
8996
importFrom(pandaR,panda)
97+
importFrom(parallel,mclapply)
9098
importFrom(penalized,optL1)
9199
importFrom(penalized,penalized)
92100
importFrom(penalized,predict)

R/MONSTER.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ monsterGetTm <- function(x){
2727
#' data(yeast)
2828
#' yeast$exp.cc[is.na(yeast$exp.cc)] <- mean(as.matrix(yeast$exp.cc),na.rm=TRUE)
2929
#' design <- c(rep(1,25),rep(0,10),rep(NA,15))
30-
#' monsterRes <- monster(yeast$exp.cc, design,
31-
#' yeast$motif, nullPerms=10, numMaxCores=1)
32-
#' monsterPlotMonsterAnalysis(monsterRes)
30+
#' #monsterRes <- monster(yeast$exp.cc, design,
31+
#' #yeast$motif, nullPerms=10, numMaxCores=1)
32+
#' #monsterPlotMonsterAnalysis(monsterRes)
3333
monsterPlotMonsterAnalysis <- function(x, ...){
3434
monsterdTFIPlot(x,...)
3535
}
@@ -46,7 +46,7 @@ monsterPlotMonsterAnalysis <- function(x, ...){
4646
#' data(yeast)
4747
#' yeast$exp.cc[is.na(yeast$exp.cc)] <- mean(as.matrix(yeast$exp.cc),na.rm=TRUE)
4848
#' design <- c(rep(1,25),rep(0,10),rep(NA,15))
49-
#' monster(yeast$exp.cc,design,yeast$motif, nullPerms=10, numMaxCores=1)
49+
#' #monster(yeast$exp.cc,design,yeast$motif, nullPerms=10, numMaxCores=1)
5050
monsterPrintMonsterAnalysis <- function(x, ...){
5151
cat("MONSTER object\n")
5252
cat(paste(x@numGenes, "genes\n"))
@@ -103,7 +103,7 @@ monsterPrintMonsterAnalysis <- function(x, ...){
103103
#' data(yeast)
104104
#' design <- c(rep(0,20),rep(NA,10),rep(1,20))
105105
#' yeast$exp.cc[is.na(yeast$exp.cc)] <- mean(as.matrix(yeast$exp.cc),na.rm=TRUE)
106-
#' monsterRes <- monster(yeast$exp.cc[1:500,], design, yeast$motif, nullPerms=10, numMaxCores=1)
106+
#' #monsterRes <- monster(yeast$exp.cc[1:500,], design, yeast$motif, nullPerms=10, numMaxCores=1)
107107
#' # Example with provided networks
108108
#' \donttest{
109109
#' pandaResult <- panda(pandaToyData$motif, pandaToyData$expression, pandaToyData$ppi)

R/PUMA.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@
4545
#' "coopNet" is the cooperative network which is not updated for miRNAs
4646
#' @examples
4747
#' data(pandaToyData)
48+
#' mirs = c("AHR","AR","ARID3A","ARNT","BRCA1","CEBPA","CREB1","DDIT3")
4849
#' pumaRes <- puma(pandaToyData$motif,
49-
#' pandaToyData$expression,NULL,hamming=.1,progress=TRUE)
50+
#' pandaToyData$expression,NULL,mir_file=mirs,hamming=.1,progress=TRUE)
5051
#' @references
5152
#' Kuijjer, Marieke L., et al. "PUMA: PANDA using microRNA associations." Bioinformatics 36.18 (2020): 4765-4773.
5253
puma <- function(motif,expr=NULL,ppi=NULL,alpha=0.1,mir_file,hamming=0.001,
@@ -238,11 +239,11 @@ puma <- function(motif,expr=NULL,ppi=NULL,alpha=0.1,mir_file,hamming=0.001,
238239
rownames(tfCoopNetwork) <- tf.names
239240
}
240241

241-
if(mir_file != NULL){
242+
if(!is.null(mir_file)){
242243
mirIndex = match(mir_file,tf.names)
243244
tfCoopNetwork[mirIndex,] = 0
244245
tfCoopNetwork[,mirIndex] = 0
245-
seqs = seq(1, num.tfs*num.tfs, num.tfs+1)
246+
seqs = seq(1, num.TFs*num.TFs, num.TFs+1)
246247
tfCoopNetwork[seqs] <- 1
247248
# tfCoopNetwork has now a diagonal of 1 and all entries are zeros
248249
# for miRNA-miRNA interactions and TF-miRNA interactions
@@ -288,7 +289,7 @@ puma <- function(motif,expr=NULL,ppi=NULL,alpha=0.1,mir_file,hamming=0.001,
288289
geneCoreg=minusAlpha*geneCoreg + alpha*CoReg2
289290

290291
#PUMA step to skip update of PPI matrix for miRNA interactions
291-
seqs = seq(1, num.tfs*num.tfs, num.tfs+1)
292+
seqs = seq(1, num.TFs*num.TFs, num.TFs+1)
292293
savediag = tfCoopNetwork[seqs] # save diagonal
293294
tfCoopNetwork[mirIndex,] <- TFCoopInit[mirIndex,]
294295
tfCoopNetwork[,mirIndex] <- TFCoopInit[,mirIndex]

0 commit comments

Comments
 (0)