Skip to main content

A Python package utils to support scanpy usage

Project description

Installation

pip install scutil

This is for scRNAseq data analysis where

usage

for qc and low dim visualization, starting from h5ad file,

as in the tests/

import scutil as su
import scanpy as sc
import json
su.check_workdir("../")
adata = sc.read_h5ad("tests/_data/test.h5ad")

with open('tests/config/params.json', 'r') as f:
    config = json.load(f)

name = config['project_name']
adata = sc.read_h5ad(f"tests/_data/{name}.h5ad")
su.filter_adata(adata, **config['filter_params'])
su.norm_hvg(adata, name, n_top_genes=1000)
su.pca(adata, name, 30, pearson=False)
su.tsne_and_umap(adata, name, n_comps=10, pearson=False, key='celltype')

su.write_adata(adata, f'tests/_data/{name}_qc_vis.h5ad')

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

scutil-0.1.1.tar.gz (155.7 kB view details)

Uploaded Source

Built Distribution

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

scutil-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file scutil-0.1.1.tar.gz.

File metadata

  • Download URL: scutil-0.1.1.tar.gz
  • Upload date:
  • Size: 155.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for scutil-0.1.1.tar.gz
Algorithm Hash digest
SHA256 81fd1fb0126a7c9f68f9bbb1c9c18b0ca325f44145133fd4359135635d31f535
MD5 ad38347260519c0598c6a1dcefc864de
BLAKE2b-256 aedd3bd0e085336a3376bc5cebc4e058a7011e6ba57d4e13ed5f6b243d8da270

See more details on using hashes here.

File details

Details for the file scutil-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: scutil-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for scutil-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2664d0a0cd02ff67164fd9e94911781b28acc97752a97dc45412dd6728ac44e9
MD5 a7e1672a236006608e6adb11216ac624
BLAKE2b-256 ac67e6ab44e735f71ad4da1d31d2e3bc28c8bdb1aebd7072b812182f0b8bd824

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