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
Release history Release notifications | RSS feed
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.0.tar.gz
(155.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scutil-0.1.0.tar.gz.
File metadata
- Download URL: scutil-0.1.0.tar.gz
- Upload date:
- Size: 155.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9746cfe5d19be6cc6e0621134a9107e5033820b78c6f96fbc7bf2db98d758cbc
|
|
| MD5 |
71ffc3b8372156922860f8f84fd40ea3
|
|
| BLAKE2b-256 |
72de9abbbb5332270a2e0f08764b0dcd17d20077e36ab200304105550571d7d9
|
File details
Details for the file scutil-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scutil-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a7cb3879a0643ff30ea8ec51045182db6395fbd2c014600912f9ed75ae4720e
|
|
| MD5 |
e470cad852808add677f3b58c6d1b7d6
|
|
| BLAKE2b-256 |
c5888ecc1fcb58590c1f1412a2932f30ebfb287f2634b4e7f29acd04524feb4a
|