CityUHK-CompBio / DeepCC

DeepCC: a novel deep learning-based framework for cancer molecular subtype classification
https://CityUHK-CompBio.github.io/DeepCC/
MIT License
20 stars 16 forks source link

length of 'dimnames' [1] not equal to array extent #12

Closed hmkim closed 3 years ago

hmkim commented 3 years ago

스크린샷 2020-10-08 오전 11 39 39

Hi!

I would like to solve this issue.

Thank you in advance!

zero19970 commented 3 years ago

getFunctionSpectra

Hi, thanks for using our DeepCC tools.

In our defined function getFunctionalSpectra(), each row of of the param eps, gene expression profiles, presents one sample. So you need first transpose eps.

Also, we recommend to apply logChange to eps with log2(TPM+1) or log2(TPM + 1e-6) before getting functional spectra.

hmkim commented 3 years ago

@zero19970 Thank you!

eps = log2(t(eps) + 1e-6)