Closed isaLa42 closed 1 year ago
Interesting, the same command works as intended on my Mac. Scanning through sessionInfo, can only think about potential LAPACK library mismatches. It would be hard to troubleshoot. Does the error occur if you run it on a different (Mac or Windows) machine?
As for the parameters, SpectralTAD is fairly robust. We use levels = 1
(first level TADs are most robust), qual_filter = TRUE
and z_clust = TRUE
(it may help to eliminate poorly formed TADs in case of low-resolution data), gap_threshold = 0.8
(also helps to eliminate sparse rows/columns to be called as boundaries). As for the window size:
resolution <- 10000
max_tad_size <- 2000000; window_size <- max_tad_size / resolution
We typically call TADs at several resolutions, like 10K, 20K, 50K. If you visualize all of them in IGV, you'll see they mostly overlap. We either choose TADs detected at the lowest resolution or combine TAD calls from all resolutions, depending on visual assessment.
Thanks for the fast reply.
I am running SpectralTAD in a conda environment on a Unix computer cluster. I will try reinstallation in a new conda environment. Which LAPACK version do you recommend to resolve the mismatches?
Thanks for the parameter explanations. Where can I find/set the max_tad_size parameter? I only find min_size and window_size in the code here on github.
I'd try conda install -c anaconda openblas
and conda install -c conda-forge lapack
.
Maximum TAD size is common knowledge - TADs larger than 2Mb typically don't exist. Hence, max_tad_size <- 2000000
.
Hey there!
Sorry, in my previous comment, I addressed the issue that you solved a few months ago. But your documentation tells to install it from different project location - cresswellkg, that's why you do not get the error, but we do.
devtools::install_github('cresswellkg/SpectralTAD', build_vignettes = TRUE)
library(SpectralTAD)
It still contains the version before the fixes. So it should be
devtools::install_github('dozmorovlab/SpectralTAD')
Thanks, @crazy-pancake, that change was long overdue. I corrected it in the README and pushed updates to Bioconductor. @isaLa42, did it help to solve your error?
Yes, the newer version solved it. Thanks a lot @crazy-pancake
Hi,
first of all thanks for this nice tool and especially the clear parameters and explanations.
I am trying to call small substructures in my data and therefor played around with min_size and window_size for a bit. I noticed that some combinations work well on some chromosomes but not for others with my data. It occurs very random and also different combinations work for different chr.
Is there a logic behind setting min_size, window_size and chr_size that I do not get at the moment?
I was able to replicate the error with the rao_chr20_25_rep test data. This is my SpectralTAD call:
This is the error message: (I get the exact same for some but not all chr of my data)
Any hints on what is going wrong? Thanks a lot in advance!
My session info is quite extensive - sorry for that: