Skip to main content

install

conda activate 
pip install stereo2xenium

usage

inDir="/media/dell/data2/Stereo/eyeball/mmEyeBall/outs/feature_expression"
outDir="/media/dell/data2/Stereo/eyeball/toXenium"
SN=C04687E314
stereo2xenium convert --input ${inDir} --output ${outDir} --sample ${SN} --genome GRCm39 --cellbin_gem
stereo2xenium viewh5 --h5file ${inDir}/C04687E314.adjusted.cellbin.gef

rotate and flip

# determine the rotation angle 调整旋转角度
file="/media/dell/scRNA/spatial/Stereo/brainC04042E3/outs/visualization/C04042E3.adjusted.cellbin.gef"
outDir="/media/dell/scRNA/spatial/Stereo/brainC04042E3/toXenium"
# plot cell centroids without rotation
stereo2xenium plotRotation --file ${file} --output ${outDir} 
# try different theta value to rotate the image clockwisely or anticlockwisely.
stereo2xenium plotRotation --file ${file} --output ${outDir} --theta 138 --anticlockwise 

# Run stereo2xenium with proper theta values. 
# All of the coordination, including cell centroids, cell boundaries, and transcripts, will be rotated.
inDir="/media/dell/scRNA/spatial/Stereo/brainC04042E3/outs/visualization"   
outDir="/media/dell/scRNA/spatial/Stereo/brainC04042E3/toXenium"   
SN="C04042E3"  

stereo2xenium convert --input ${inDir} --output ${outDir} --sample ${SN} --segmentation 'HE' --genome mm10 --anticlockwise --theta 130

image-20260127061837591

image-20260127061951636

Mapping molecules to cells

  1. The stereo-seq output data typically does not include the cellbin.gem file, which is required for mapping molecules to cells.

  2. To generate this file, first run saw convert to retrieve the cellbin.gem. Then, run stereo2xenium convert to process the data.

  3. If stereo2xenium convert has already been executed, you can run stereo2xenium getTranscripts separately to complete the mapping of molecules to cells.

  4. Warning:

    Mapping molecules to cells is time- and memory-intensive and is not required for downstream analysis.

    You can skip it by running stereo2xenium convert without --cellbin_gem.

inDir=/media/dell/scRNA/spatial/Stereo/brainC04042E3/outs/visualization
SN=C04042E3

saw convert --threads-num 16 gef2gem --bin-size 1 \
--gef ${inDir}/${SN}.tissue.gef \
--cellbin-gef ${inDir}/${SN}.adjusted.cellbin.gef \
--cellbin-gem ${inDir}/${SN}.adjusted.cellbin.gem 

gzip ${inDir}/${SN}.adjusted.cellbin.gem

stereo2xenium convert --input ${inDir} --output ${outDir} --sample ${SN} --segmentation 'HE' --genome mm10 --cellbin_gem --anticlockwise --theta 130

stereo2xenium getTranscripts --input ${inDir} --sample ${SN} --output ${outDir} --cellbin_gem --theta 130 --anticlockwise

Metadata

Release files for stereo2xenium 0.2.8

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

Source distribution (sdist)

Source distribution for stereo2xenium 0.2.8
File Size Uploaded Provenance Actions
stereo2xenium-0.2.8.tar.gz 17.5 kB Without provenance Details for stereo2xenium-0.2.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stereo2xenium 0.2.8
File Interpreter ABI Platform Actions
stereo2xenium-0.2.8-py3-none-any.whl Python 3 none any Details for stereo2xenium-0.2.8-py3-none-any.whl

Total release size: 35.2 kB

Release files / stereo2xenium-0.2.8.tar.gz

Download URL stereo2xenium-0.2.8.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7ba37e15f9f56001312d6b6a44c592032df468935c5b5bd9586bfa18230846a7
BLAKE2b-256 checksum
How to use checksums
58d8dcdcaaff34ceae2c9b971acd289bd2ff1dedf388bef5d39e367f8fa1cee3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Release files / stereo2xenium-0.2.8-py3-none-any.whl

Download URL stereo2xenium-0.2.8-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
434da9e1ef27c04feae4e0193e7699f0bbda4d53343a8861ebfea7f0238f7cdf
BLAKE2b-256 checksum
How to use checksums
7e02fcc3188f5a11db4ca9060f50380092a1e143bcc4ee2bced80a6a29a8d020
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.20

Security for stereo2xenium 0.2.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.

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