You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
I am having an issue exporting my h5ad file to spring for visualization. I have been following the spring export tutorial but every time I try to run sc.export_to.spring_project I get the following error:
sc.export_to.spring_project(adata1, '/home/seth/anaconda3/write', 'draw_graph')
Writing subplot to /home/seth/anaconda3
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-9-656bbf38658a> in <module>
----> 1 sc.export_to.spring_project(adata1, '/home/seth/anaconda3/write', 'draw_graph', cell_groupings='louvain_r0.8_sub')
~/anaconda3/envs/ddocent_env/lib/python3.7/site-packages/scanpy/_exporting.py in spring_project(adata, project_dir, embedding_method, subplot_name, cell_groupings, custom_color_tracks, total_counts_key, overwrite)
101# Ideally, all genes will be written from adata.raw102if adata.raw isnotNone:
--> 103 E = adata.raw.X.tocsc()
104 gene_list =list(adata.raw.var_names)
105else:
AttributeError: 'numpy.ndarray' object has no attribute 'tocsc'
I am assuming the error has to do with converting the sparse matrix adata1.X to csc format. However, I can't seem to get around this error. Any help would be greatly appreciated!
Thanks,
Seth
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I am having an issue exporting my h5ad file to spring for visualization. I have been following the spring export tutorial but every time I try to run
sc.export_to.spring_project
I get the following error:I am assuming the error has to do with converting the sparse matrix
adata1.X
to csc format. However, I can't seem to get around this error. Any help would be greatly appreciated!Thanks,
Seth
The text was updated successfully, but these errors were encountered: