Entering edit mode
Hello, I was using ASSIGN package go through the demo data.
Thanks in advance for any help!
Best,
Yue
> library(ASSIGN)
>
> dir.create("tempdir")
Warning message:
In dir.create("tempdir") : 'tempdir' already exists
> tempdir <- "tempdir"
> data(trainingData1)
> data(testData1)
> data(geneList1)
> trainingLabel1 <- list(control = list(bcat=1:10, e2f3=1:10,
+ myc=1:10, ras=1:10, src=1:10),
+ bcat = 11:19, e2f3 = 20:28, myc= 29:38,
+ ras = 39:48, src = 49:55)
> testLabel1 <- rep(c("Adeno", "Squamous"), c(53,58))
> dir.create(file.path(tempdir,"wrapper_example2"))
Warning message:
In dir.create(file.path(tempdir, "wrapper_example2")) :
'tempdir/wrapper_example2' already exists
> assign.wrapper(trainingData=trainingData1, testData=testData1,
+ trainingLabel=trainingLabel1, testLabel=NULL,
+ geneList=geneList1, n_sigGene=NULL, adaptive_B=TRUE,
+ adaptive_S=FALSE, mixture_beta=TRUE,
+ outputDir=file.path(tempdir,"wrapper_example2"),
+ iter=2000, burn_in=1000)
Performing QC on the input data...
Generating starting/prior values for model parameters...
Estimating model parameters in the training dataset...
Start Gibbs sampling...
| 0% 50% 100% |
================================================================================
Estimating model parameters in the test dataset...
Start Gibbs sampling...
| 0% 50% 100% |
================================================================================
Outputing results...
Error in data.frame(ASSIGN = "ASSIGN parameters", version = as.character(utils::packageVersion("ASSIGN")), :
arguments imply differing number of rows: 1, 0
> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.3 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ASSIGN_1.25.0
loaded via a namespace (and not attached):
[1] compiler_3.6.1 Rlab_2.15.1 Matrix_1.2-17 tools_3.6.1 expm_0.999-4 survival_3.2-3
[7] msm_1.6.8 mvtnorm_1.1-1 splines_3.6.1 grid_3.6.1 lattice_0.20-41