SpatialDM: Spatial co-expression Detected by bivariate Moran
Project description
About
Installation
SpatialDM is available through PyPI. To install, type the following command line and add -U for updates:
pip install -U spatialdm
Alternatively, you can install from this GitHub repository for latest (often development) version by the following command line:
pip install -U git+https://github.com/leeyoyohku/SpatialDM
Installation time: < 1 min
Quick example
Using the build-in melanoma dataset as an example, the following Python script will compute the p-value indicating whether a certain Ligand-Receptor is spatially co-expressed.
import spatialdm as sdm
adata = sdm.datasets.melanoma()
my_sample = sdm.SpatialDM(X=adata.X, spatialcoord=adata.obsm['spatial'])
my_sample.extract_lr(species='human', min_cell=3)
my_sample.weight_matrix(l=1.2, cutoff=0.2, single_cell=False)
my_sample.spatialdm_global(1000, select_num=None, method='permutation')
sdm.pl.volcano(my_sample)
Detailed Manual
The full manual is at https://spatialdm.readthedocs.io
References
A BioRxiv preprint will be online soon.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
SpatialDM-0.0.2-py3-none-any.whl
(21.2 kB
view hashes)
SpatialDM-0.0.2-py2-none-any.whl
(27.8 kB
view hashes)
Close
Hashes for SpatialDM-0.0.2.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1b75429b88ed7a9e2bf0dab2188c88b29f3a0f6e9c3b3c30cbdd9327acdb5c5 |
|
MD5 | 5b7021c35e09378630e00fa083250cdf |
|
BLAKE2b-256 | 29e012f7a45d4df80e357fc24535d03c0b64ae94ecca1720f550b5ee7e2103d2 |
Close
Hashes for SpatialDM-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 086f00fd310970d47e82d9e8219ebb39a12e180dfb14a95f268261b892a2995d |
|
MD5 | 0de6e1c2b496d9ef9e8abdeb8e52808f |
|
BLAKE2b-256 | 61e7e084894f46d7113f9d452e79d52aab25b8fd572f8799240881e7ff3d255b |
Close
Hashes for SpatialDM-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f82b023a10e7472a443710d88bf93a22b3e93cd281c3e3d39c6355f64292ca6c |
|
MD5 | 99ea6e0b8806dc84ac1778a415abcdb6 |
|
BLAKE2b-256 | df1939652a80c5be7f0d161fd427f6e5ff2bc87eacb27b8ff8fcc3967eb6a6e1 |