smorabit / hdWGCNA

High dimensional weighted gene co-expression network analysis
https://smorabit.github.io/hdWGCNA/
Other
315 stars 31 forks source link

Error duing ModulePreservation "Error in multiColor[[s]] : subscript out of bounds" #235

Closed DelongZHOU closed 1 month ago

DelongZHOU commented 2 months ago

Hi Sam, I have some new issues related to module preservation:

with code:

seurat_query <- ModulePreservation( seurat_query, seurat_ref = seurat_ref, name="From_allen", verbose=3, n_permutations=250, permutedStatisticsFile=/path/ )

And it returns error:

..checking data for excessive amounts of missing data.. Flagging genes and samples with too many missing values... ..step 1 Flagging genes and samples with too many missing values... ..step 1 Error in multiColor[[s]] : subscript out of bounds

It produced the same error on some of my old datasets which completed without error before.

ashleshagogate commented 1 month ago

Hi Sam, I am facing the same issue (hdWGCNA 0.2.27).

smorabit commented 1 month ago

Hi,

I tried to run ModulePreservation and was met with the same error. I did find the source of the bug and was able to fix it, so please update to the latest version and hopefully it will work for you.

DelongZHOU commented 1 month ago

Indeed it's fixed. Thank you Sam!

ashleshagogate commented 1 month ago

Yes, thank you!