Skip to main content

[![Downloads](https://static.pepy.tech/personalized-badge/stlearn?period=total&units=international_system&left_color=black&right_color=orange&left_text=Downloads)](https://pepy.tech/project/stlearn)

# stLearn - A downstream analysis toolkit for Spatial Transcriptomic data

stLearn is designed to comprehensively analyse Spatial Transcriptomics (ST) data to investigate complex biological processes within an undissociated tissue. ST is emerging as the “next generation” of single-cell RNA sequencing because it adds spatial and morphological context to the transcriptional profile of cells in an intact tissue section. However, existing ST analysis methods typically use the captured spatial and/or morphological data as a visualisation tool rather than as informative features for model development. We have developed an analysis method that exploits all three data types: Spatial distance, tissue Morphology, and gene Expression measurements (SME) from ST data. This combinatorial approach allows us to more accurately model underlying tissue biology, and allows researchers to address key questions in three major research areas: cell type identification, spatial trajectory reconstruction, and the study of cell-cell interactions within an undissociated tissue sample.

<p align=”center”> <img src=”https://i.imgur.com/yfXlCYO.png” alt=”” width=”386” height=”261” /> </p>

## Detailed tutorials:

For installation and implementation of stLearn functionalities, see the dedicated documentation page at: https://stlearn.readthedocs.io/en/latest/

A collection of Jupyter notebooks are available in this GitHub repository in the tutorials folder

## Brief installation instructions are below:

### For Linux/MacOS users

#### Step 1:

Prepare conda environment for stlearn

` conda create -n stlearn python=3.8 `

` conda activate stlearn `

#### Step 2:

` conda config --add channels conda-forge `

` conda install jupyterlab louvain ipywidgets`

#### Step 3:

` pip install -U stlearn`

### For Windows users

#### Step 1:

Prepare conda environment for stlearn

` conda create -n stlearn python=3.8 `

` conda activate stlearn `

#### Step 2:

` conda install jupyterlab ipywidgets`

#### Step 3:

Access to:

Download 2 files: python_igraph‑0.7.1.post6‑cp38‑cp38‑win_amd64.whl and louvain‑0.6.1‑cp38‑cp38‑win_amd64.whl

You have to change to downloaded files directory and install it:

` pip install python_igraph‑0.7.1.post6‑cp38‑cp38‑win_amd64.whl `

` pip install louvain‑0.6.1‑cp38‑cp38‑win_amd64.whl `

#### Step 4:

` pip install -U stlearn`

### Popular bugs when install

  • DLL load failed while importing utilsextension: The specified module could not be found.

You need to uninstall package tables and install it again

` pip uninstall tables `

` pip install tables `

History

0.3.1 (2020-12-24)

0.2.7 (2020-09-12)

0.2.6 (2020-08-04)

Metadata

Release files for stlearn 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stlearn 0.3.1
File Size Uploaded
stlearn-0.3.1.tar.gz 91.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stlearn 0.3.1
File Interpreter ABI Platform
stlearn-0.3.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 223.3 kB

Release files / stlearn-0.3.1.tar.gz

Download URL stlearn-0.3.1.tar.gz
Size 91.8 kB
Tags Source
SHA-256 checksum
How to use checksums
852b3ccb35341ac9716202b3cf2984c3e0bcbd53a0ad849933fb44979577fd0e
BLAKE2b-256 checksum
How to use checksums
b1fb5266304e60350fcc11a5c4d5886d65b55e29ccccc762bf502e1457d29f75
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.post20200325 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release files / stlearn-0.3.1-py2.py3-none-any.whl

Download URL stlearn-0.3.1-py2.py3-none-any.whl
Size 131.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f108c783aa142d7ed145b91862314a3ffb486feef8c620a9589b1f5a4d228e7e
BLAKE2b-256 checksum
How to use checksums
aec7476b61168bda44e1c58dc0718a8b540ffc5aa98dd81b49896800daa59cd4
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.post20200325 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release history Release notifications | RSS feed

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.1.5

2 release files

1.1.1

2 release files

0.4.11

3 release files

0.4.10

3 release files

0.4.9

3 release files

0.4.8

4 release files

0.4.7

3 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.0

3 release files

0.3.2

2 release files

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

1 release file

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

3 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page