TreeShrink
TreeShrink copied to clipboard
Error in running example dataset
Hi there,
I seem to have the same problem as others but I'm not sure what the issue is. I've tried using different R versions (v3.5, v4.0) to double check as your FQ&A mentions that TreeShrink might not be compatible with R v4.
My python version is 3.9.7
But I have this issue despite changing the R versions on my PC. I've also tried your pre-release (v1.3.8b) version (to clarify, this uses Python's Scipy?), but am still having issues.
Any help would be appreciated thanks. The error log is as below. Francis
(base) Francis-Mac21:treeshrink-1.3.7-py39_0 FrancisNge$ run_treeshrink.py -t test_data/mm10.trees
Launching TREESHRINK version 1.3.7
TREESHRINK was called as follow
/Users/FrancisNge/opt/anaconda3/bin/run_treeshrink.py -t test_data/mm10.trees
There are only 10 gene trees in the dataset.
TreeShrink will run in 'All-genes' mode
Solving k-shrink with k = 7
Solving k-shrink with k = 7
Solving k-shrink with k = 7
Solving k-shrink with k = 7
Solving k-shrink with k = 7
Solving k-shrink with k = 7
Solving k-shrink with k = 7
Solving k-shrink with k = 7
Solving k-shrink with k = 7
Solving k-shrink with k = 7
Error in rank(x, ties.method = "min", na.last = "keep") :
unimplemented type 'list' in 'greater'
Calls: threshold ... as.vector -> xtfrm -> xtfrm.default -> as.vector -> rank
Execution halted
Traceback (most recent call last):
File "/Users/FrancisNge/opt/anaconda3/bin/run_treeshrink.py", line 345, in
I used the anaconda command to install treeshrink (1.3.7 was installed). After that I installed R (4.2) and ran the script with the test data. It gives me the same error.
I installed it from the github repository and then it worked (version 1.3.9).
Thanks I cloned the GitHub repository and it is working now!