Skip to content

gabrielascui/xenium_to_qupath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xenium to QuPath

This repository contains a Python script designed to facilitate the conversion of Xenium data into a geoJSON format compatible with QuPath.

Features

  • Converts Xenium output data into geoJSON formats.
  • Streamlines the integration of spatial transcriptomics data into QuPath workflows.

Requirements

  • Python 3.7 or higher
  • Required Python libraries (see requirements.txt)

Installation

  1. Clone this repository:
    git clone https://github.com/your-repo/xenium_to_qupath.git

Usage

Modify the script to use the appropiated pixel size and path the the cells.zarr file from the Xenium Ranger output.

Before Running script, extract the cells.zarr.zip file.

unzip cells.zarr.zip -d cells.zarr

Define the zarr_dir and the pixel size in the scripts.

# Path to the Zarr directory (adjust the path accordingly)
zarr_dir = 'cells.zarr'

# pixel size
psize = 0.2125

Run the script with the following command:

python cellsegmentationvectors.py --zarr_dir /path/to/cells.zarr --output_dir /path/to/output/directory

Output

Output file will be a geojson file named 'exported_cells.geojson'.

Contact

For questions or issues, please contact [gascui@lji.org].

About

Xenium output to qupath from zarr files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages