Skip to main content

Spatially-aware quality control for spatial transcriptomics

Project description

Spatially-aware quality control for spatial transcriptomics

SpotSweeper is a package developed for spatially-aware quality control (QC) methods for the detection, visualization, and removal of both local outliers and regional artifacts in spot-based spatial transcriptomics data, such as 10x Genomics Visium, using standard QC metrics.

Features

  • Detect local outliers using robust z-score

  • Plot and highlight local outliers in a spatial context (both showing on screen (interactive) and saving to PDF)

Installation

Install from PyPI:

pip install spotsweeper

Usage

import spotsweeper.local_outliers as lo
import spotsweeper.plot_QC as plot_QC
import spotsweeper.plot_QCpdf as pdf
lo.local_outliers(adata, metric = "total_counts", sample_key = "region")
plot_QC.plot_qc_metrics(adata,"region",metric = "total_counts", outliers="total_counts_outliers")
pdf.plot_qc_pdf(adata,"region",metric = "total_counts", outliers="total_counts_outliers")

Project Status

This package is in early development. Use with caution; interfaces may change.

Note

This project has been set up using PyScaffold 4.6. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

spotsweeper-0.2.6.tar.gz (25.0 kB view details)

Uploaded Source

Built Distribution

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

spotsweeper-0.2.6-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file spotsweeper-0.2.6.tar.gz.

File metadata

  • Download URL: spotsweeper-0.2.6.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.14

File hashes

Hashes for spotsweeper-0.2.6.tar.gz
Algorithm Hash digest
SHA256 bcaf45858cff95e449a0801e967db221e4cb6375ddba90f68125968657cf4d14
MD5 562eed6d04b885dd5f8029d68de6e480
BLAKE2b-256 948ca38848f7d67c1e561bff4c1ad8a1026cc2d4d50fdc5eac21d1c0c2ca6d04

See more details on using hashes here.

File details

Details for the file spotsweeper-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: spotsweeper-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.14

File hashes

Hashes for spotsweeper-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 82e377bd43891150efe096eb60f1acd738eccf840e73938247871df6b9948076
MD5 d90a05ab0b261b3924eb556e1ade1c39
BLAKE2b-256 4412f7df0c54368a7e6725dac8898cb1f6efb42ec813b10b190060c00b3e7cc5

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