Skip to content

Commit

Permalink
Merge pull request #236 from marouenbg/fix-crane-alpaca
Browse files Browse the repository at this point in the history
update crane
  • Loading branch information
marouenbg committed Jan 30, 2022
2 parents baa4bee + 14e87e9 commit 7a9c0d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,16 @@ jobs:
install.packages('reticulate', repos = "http://cran.us.r-project.org")
library('reticulate')
shell: Rscript {0}
- name: Install reticulate 2
- name: Install reticulate 2-1
if: matrix.os == 'macos-latest'
run: |
library('reticulate')
py_config()
use_python("/usr/local/bin/python3")
virtualenv_create("r-reticulate")
shell: sudo -E Rscript {0}
- name: Install reticulate 2-2
if: matrix.os == 'ubuntu-latest'
run: |
library('reticulate')
py_config()
Expand All @@ -73,14 +82,12 @@ jobs:
- name: Check
run: |
library('reticulate')
use_condaenv("r-reticulate")
py_config()
rcmdcheck::rcmdcheck(args = c("--no-manual","--ignore-vignettes"), error_on = "error", build_args="--no-build-vignettes")
shell: sudo -E Rscript {0}
- name: Report coverage
run: |
library('reticulate')
use_condaenv("r-reticulate")
py_config()
covr::codecov()
shell: sudo -E Rscript {0}
Expand Down
2 changes: 1 addition & 1 deletion R/CRANE.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ alpacaCrane = function(input,alp,alpha=0.1,beta=0,iteration=30,isParallel=F){
if (i %% round(iteration/5)==0){
print(paste("Computing Differential Score",(i/iteration)*100,"%"))
}
dwbm = computeDWBMmat.mscale(pos.table,ctrl.memb[V(pos.graph)$name])
dwbm = alpacaComputeDWBMmatmScale(pos.table,ctrl.memb[V(pos.graph)$name])

miss_tf=setdiff(tfcheck,rownames(dwbm))
miss_g=setdiff(gcheck,colnames(dwbm))
Expand Down

0 comments on commit 7a9c0d0

Please sign in to comment.