Starlitnightly / omicverse

A python library for multi omics included bulk, single cell and spatial RNA-seq analysis.
https://starlitnightly.github.io/omicverse/
GNU General Public License v3.0
273 stars 32 forks source link

Issue Regarding Survival Analysis #68

Open xianjieshen opened 3 months ago

xianjieshen commented 3 months ago

I'm encountering an issue regarding survival analysis. When I try to execute the following code:

Great to hear that you've followed the instructions to work with bulk data! If you have any further questions or encounter any issues along the way, feel free to ask for assistance. I'm here to help!

LIHC_tcga.survival_analysis('MYC', layer='deseq_normalize', plot=True, gene_threshold='median')
LIHC_tcga.adata

240331010058

Starlitnightly commented 3 months ago

Hi,

You can set the following code before survial_analysis

from scipy import sparse
LIHC_tcga.adata.layers['deseq_normalize']=sparse.csr_matrix(LIHC_tcga.adata.layers['deseq_normalize'])
xianjieshen commented 3 months ago

image Thank you for your response! However, it seems that the problem still persists.