SOMDE 
Algorithm for finding gene spatial pattern based on Gaussian process accelerated by SOM
Install
conda install -c conda-forge somoclu
conda install pandas
conda install patsy
pip install somde
Data
Slide-seq data we used can be downloaded from SpatialDB website: http://www.spatialomics.org/SpatialDB/download.php
Tutorial
load data
df = pd.read_csv(dataname+'count.csv',sep=',',index_col=1)
corinfo = pd.read_csv(dataname+'idx.csv',sep=',',index_col=0)
corinfo["total_count"]=df.sum(0)
X=corinfo[['x','y']].values.astype(np.float32)
After data loading, we can generate a SOM on the tissue spatial domain.
build SOM
from somde import SomNode
som = SomNode(X,20)
You can use som.view() to visualize the distribution of all SOM nodes.
integrate data sites and expression
ndf,ninfo = som.mtx(df)
mtxfunction will generate pesudo gene expression and spatial data site information at reduced resolution.
normalize data and identify SVgenes
Since we integrated the original count data, we need to normalize gene expression matrix in each SomNode object.
nres = som.norm()
result, SVnum =som.run()
The identification step is mainly based on the adjusted Gaussian Process, which was first proposed by SpatialDE. Visualization results can be found at https://github.com/WhirlFirst/somde/blob/master/slide_seq0819_11_SOM.ipynb
Metadata
Release files for somde 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| somde-0.1.8.tar.gz | 8.1 kB | Without provenance | Details for somde-0.1.8.tar.gz |
Release files / somde-0.1.8.tar.gz
| Download URL | somde-0.1.8.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5641b43b1684d3bbe478c8a3d2e2be5cc7d2a1d10c8224edd1fda553afc96300
|
|
BLAKE2b-256 checksum How to use checksums |
8977e41eabf2d56f80ced15eab3ddaec4ce5449b70298852887a91cc20dd2bf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.9
|
Security for somde 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.