Skip to main content

Scripts for using scanpy from the command line

Project description

scanpy-scripts Anaconda-Server Badge

A command-line interface for functions of the Scanpy suite, to facilitate flexible constrution of workflows, for example in Galaxy, Nextflow, Snakemake etc.

Install

The recommended way of using this package is through the latest container produced by Bioconda here. If you must, one can install scanpy-scripts via conda:

conda install scanpy-scripts

pip installation is also possible, however the version of mnnpy is not patched as in the conda version, and so the integrate command will not work.

pip install scanpy-scripts

For development installation, we suggest following the github actions python-package.yml file.

Currently, tests run on python 3.9, so those are the recommended versions if not installing via conda. BKNN doesn't currently install on Python 3.10 due to a skip in Bioconda.

Test installation

There is an example script included:

scanpy-scripts-tests.bats

This requires the bats testing framework to run. The script downloads a well-known test 10X dataset and executes all of the commands described below.

Commands

Available commands are described below. Each has usage instructions available via --help, consult function documentation in scanpy for further details.

Usage: scanpy-cli [OPTIONS] COMMAND [ARGS]...

  Command line interface to [scanpy](https://github.com/theislab/scanpy)

Options:
  --debug              Print debug information
  --verbosity INTEGER  Set scanpy verbosity
  --version            Show the version and exit.
  --help               Show this message and exit.

Commands:
  read       Read 10x data and save in specified format.
  filter     Filter data based on specified conditions.
  norm       Normalise data per cell.
  hvg        Find highly variable genes.
  scale      Scale data per gene.
  regress    Regress-out observation variables.
  pca        Dimensionality reduction by PCA.
  neighbor   Compute a neighbourhood graph of observations.
  embed      Embed cells into two-dimensional space.
  cluster    Cluster cells into sub-populations.
  diffexp    Find markers for each clusters.
  paga       Trajectory inference by abstract graph analysis.
  dpt        Calculate diffusion pseudotime relative to the root cells.
  integrate  Integrate cells from different experimental batches.
  multiplet  Execute methods for multiplet removal.
  plot       Visualise data.

Versioning

Major and major versions will follow the scanpy versions. The first digit of the patch should follow the scanpy patch version as well, subsequent digits in the patch are reserved for changes in this repository.

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

scanpy-scripts-1.9.301.tar.gz (47.5 kB view details)

Uploaded Source

Built Distribution

scanpy_scripts-1.9.301-py3-none-any.whl (55.1 kB view details)

Uploaded Python 3

File details

Details for the file scanpy-scripts-1.9.301.tar.gz.

File metadata

  • Download URL: scanpy-scripts-1.9.301.tar.gz
  • Upload date:
  • Size: 47.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for scanpy-scripts-1.9.301.tar.gz
Algorithm Hash digest
SHA256 c681d9cf5670d8b771b7327684f19d52f9661ee31e685241af4d960220a5d63b
MD5 c9ffaa1fb3ca2897778eca61ad25f11c
BLAKE2b-256 44d0b12f1703345fb15f975173d6c5da10b3ae1e3f8866169cb10471573da999

See more details on using hashes here.

File details

Details for the file scanpy_scripts-1.9.301-py3-none-any.whl.

File metadata

File hashes

Hashes for scanpy_scripts-1.9.301-py3-none-any.whl
Algorithm Hash digest
SHA256 887dfa8675e7b55be79297efb7d2a9a41a4c5530213ea45f77974ab063c0297c
MD5 e9ee07ef6dd6f2f3b9f405543394ecf8
BLAKE2b-256 b349842de570b4d3ee41fac08bbd9ff8002868d3ec7eee52f752e3937c143e08

See more details on using hashes here.

Supported by

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