Closed februaryfang closed 2 years ago
I think the problem 1 is that you don't have CUDA lib or no GPU in your machine then you cannot use GPU option in tensorflow. It's ok, you can ignore it if this code st.spatial.morphology.adjust
still run.
For the different result, I believe it's caused by different version because the downstream code still works.
How can I save my adata to object file after analysis ? like h5ad for scanpy. so I can re-load the object for other analysis. I tried with command line 'data.write("./data.h5ad")', it works. but I failed with 'data = sc.read("./data.h5ad")'.
You should use .write_h5ad
and .read_h5ad
for it
hello ,
I use stlearn to analyze my spatial data. But I only have matrix data and spatial information. So I created the adata object according to the tutorials. When I choose to enter image path, my st.pl.cluster_plot result is abnormal. My command line and picture are as follows:
adata = st.create_stlearn(count=matrix,patial=spatial,image_path=image_path,scale=json_data['tissue_hires_scalef'])
How should I adjust it?
In visium data, the spatial data (adata.obsm["spatial"]) is the coordinate of raw image. The scale factor will be used to scale down the raw image to hires image or lowres image, and also for the spatial data to match them. So you should make sure scale
parameter = the raw image resolution / scaled image resolution.
For example, raw image 4000x4000, hires image 2000x2000 -> the scale factor = 0.5
hi, thanks for your work in stlearn, its a good toolkit for ST data. my analysis environments is like this : python-3.8, stlearn-0.4.6, tensorflow-2.8.0. my command lines :
Here I have two problems. The 1, when I run 'st.pp.extract_feature(data)', I got the information as follows:
Is this a serious problem? I can still get results. Then I got the problem 2, the cluster result is different from the Documentation and Tutorials (https://stlearn.readthedocs.io/en/latest/) . Is this caused by different versions? or by the problem 1 error?