Open dnarna909 opened 2 years ago
Acutally, I also get the same error for computeElasticPrincipalTree(). See below:
TreeEPG <- computeElasticPrincipalTree(X = tree.data.small$data, NumNodes = 60, Lambda = .03, Mu = .01, nReps = 10, drawAccuracyComplexity = FALSE, drawEnergy = FALSE) [1] "Generating the initial configuration" [1] "Creating a chain in the 1st PC with 2 nodes" [1] "Constructing tree 1 of 10 / Subset 1 of 1" [1] "Performing PCA on the data" [1] "Using standard PCA" [1] "50 dimensions are being used" [1] "100% of the original variance has been retained" [1] "The elastic matrix is being used. Edge configuration will be ignored" [1] "Computing EPG with 60 nodes on 250 points and 50 dimensions" [1] "Using a single core" Nodes = 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 BARCODE ENERGY NNODES NEDGES NRIBS NSTARS NRAYS NRAYS2 MSE MSEP FVE FVEP UE UR URN URN2 URSD 1|0|3|17||60 775.3 60 59 10 17 0 0 726.6 726.5 0.4103 0.4104 47.97 0.7637 45.82 2749 0 11.658 sec elapsed
Error in 1:ncol(AllComb) : argument of length 0
I am running the basic codes for Elastic principal graph construction as showed in: https://rdrr.io/github/Albluca/ElPiGraph.R/f/guides/trim.Rmd
TreeEPG <- computeElasticPrincipalTree(X = TD_LowNoise, NumNodes = 40, drawAccuracyComplexity = FALSE, drawEnergy = FALSE, drawPCAView = FALSE, n.cores = 1)
But I keep getting error the run PlotPG function, as follow:
PlotPG(X = TD_LowNoise, TargetPG = TreeEPG[[1]], GroupsLab = TD_LowNoise_Cat, Do_PCA = FALSE, DimToPlot = 1:2)
Error in 1:ncol(AllComb) : argument of length 0
The TreeEPG file is generated. Any solutions for this issue?
This is my sessionInfo