Skip to content

Commit cc1c886

Browse files
committed
Allow pre-compute
1 parent 7109f6a commit cc1c886

File tree

3 files changed

+457
-0
lines changed

3 files changed

+457
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

R/DIALOGUE.main.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ DIALOGUE1<-function(rA,k = 5,main,results.dir = "~/Desktop/DIALOGUE.results/",co
9999
print("#************DIALOGUE Step I: PMD ************#")
100100
dir.create(results.dir)
101101
X<-lapply(rA, function(r){
102+
if(!is.null(r@extra.scores$XAv)){
103+
print("Using previous sample-level computations")
104+
X1<-r@extra.scores$XAv
105+
return(X1)
106+
}
102107
X1<-average.mat.rows(r@X,r@samples,f = averaging.function)
103108
if(spatial.flag){return(X1)}
104109
b<-get.abundant(r@samples,abn.c = abn.c,boolean.flag = T)

README.html

Lines changed: 452 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)