tanaylab / mcATAC

Metacell analysis for ATAC data
https://tanaylab.github.io/mcATAC/
Other
1 stars 0 forks source link

many functions resulted in Error because of atac_mc@mat is 'dgCMatrix' #45

Closed tomgome closed 2 years ago

tomgome commented 2 years ago

I'm not sure why but when I built an atac_mc object using mcc_to_mcatac many functions (such as: rna_atac_cor_knn, plot_atac_atac_cor, etc...) doesn't handle the input properly..

example: my_mc_atac <- readRDS('/home/tomgo/raid/proj/mtec_populations/analysis_dir/multiome_mc_model/2022/atac_analysis/objs/mc_atac_obj.Rds') plot_atac_atac_cor(atac_mc = my_mc_atac) Error: "x" argument must be a matrix of numeric values

yonatans2 commented 2 years ago

Maybe you already did this, but for now you can bypass this bug using: my_mc_atac@mat <- as.matrix(my_mc_atac@mat)

yonatans2 commented 2 years ago

Fixed