Skip to main content

A regex-fueled parser that tries to let you input a single GEO Experiment accession number and get SpatialData objects for each of its Samples.

Project description

Fetch-Spatial: A SpatialData builder from GEO Experiment entries

Fetch-Spatial is a helper package to try and make downloading and using spatial transcriptomics data from GEO less painful.

After installing it, you should be able to call python -m fetch_spatial GSE123456 path/to/outdir and get an organized folder with the raw input data, one SpatialData.zarr object for each Sample in the Experiment, and a single Report.json file that tells you what pieces of the SpatialData were and were not parse-able.

Note: Currently, only Xenium data is supported, but we hope to add more formats soon

This function returns SpatialData objects even if they are missing images, boundaries, or expression data, so make sure you check the Report.json file to see what actually happened before trying to use the files. We do this because most of the time, if a file is "missing", it's because the Sample had a strange naming convention that we couldn't anticipate, but you can probably figure out which file it is on your own. Then, you have a somewhat-complete SpatialData object that you can just add whatever is missing to using the spatialdata_io package.

Note that spatial transcriptomics files are very large sometimes, so make sure you have enough disk space to write everything. Additionally, this script writes many intermediate files to your /tmp directory (and then cleans them up); if your /tmp is not big enough, you can set SPATIAL_TMP as an environment variable to override where temporary files are written.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fetch_spatial-0.1.0.tar.gz (231.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fetch_spatial-0.1.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file fetch_spatial-0.1.0.tar.gz.

File metadata

  • Download URL: fetch_spatial-0.1.0.tar.gz
  • Upload date:
  • Size: 231.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.11

File hashes

Hashes for fetch_spatial-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b281233926ac75f9cbe3b28765bd1a1ff1e57c66e9e57b89b88ce17f8b3eadcc
MD5 faae249282172d1ef2a5b3d99a3d43f9
BLAKE2b-256 d158cd47a096297b7b870172fe8056814dcc5bec0766ed226498f2eb30ddacc4

See more details on using hashes here.

File details

Details for the file fetch_spatial-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fetch_spatial-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca810f084e08205288f70772db4db4c24d75b82111a85607a49d9d511c74d576
MD5 4a14b8c537f4009b6af45e9a382f7157
BLAKE2b-256 46c7d29649f4160623634460f6e05d5fe304b1bbf7c590614ed6e521bb5f635c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page