Skip to main content

The Cytocraft package provides prediction of chromosome conformation based on spatial transcriptomic.

Project description

Cytocraft

Overview

The Cytocraft package generates a 3D reconstruction of transcription centers with subcellular resolution spatial transcriptomics.

Installaion

pip install cytocraft

Interactive Mode Usage

import

from cytocraft.craft import *

read input

gem_path = './data/mice/example_scgem.csv'
gem = read_gem_as_csv(gem_path, sep=',')
adata = read_gem_as_adata(gem_path, sep=',', SN='example')
GeneUIDs = get_GeneUID(gem)

run cytocraft

adata = craft(
	gem=gem,
        adata=adata,
        species='Mice',
        seed=999,
        )

CLI Mode Usage

python craft.py [-h] [-p PERCENT] [-c CELLTYPE] [--ctkey CTKEY] [--cikey CIKEY] [--seed SEED] gem_path out_path {Human,Mouse,Axolotls,Monkey}

Positional arguments:

gem_path Input: path to gene expression matrix file

out_path Output: dir path to save results

{Human,Mouse,Axolotls,Monkey} Species of the input data

Optional arguments:

-h, --help show this help message and exit

-p, --percent percent of gene for rotation derivation, default: 0.001

-t, --threshold The maximum proportion of np.nans allowed in a column(gene) in W, default: 0.90

-c, --celltype Path of file containing cell types, multi-celltype mode only

--ctkey Key of celltype column in the cell type file, multi-celltype mode only

--cikey Key of cell id column in the cell type file, multi-celltype mode only

--seed Random seed, default: random int between 0 to 1000

One-celltype example:

python craft.py ./data/SS200000108BR_A3A4_scgem.Spinal_cord_neuron.csv ./results/ Mouse

Multi-celltype example:

python craft.py ./data/SSSS200000108BR_A3A4_scgem.csv ./results/ Mouse --celltype ./data/cell_feature.csv --ctkey cell_type --cikey cell_id

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

cytocraft-0.0.7.tar.gz (6.9 MB view details)

Uploaded Source

File details

Details for the file cytocraft-0.0.7.tar.gz.

File metadata

  • Download URL: cytocraft-0.0.7.tar.gz
  • Upload date:
  • Size: 6.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.17

File hashes

Hashes for cytocraft-0.0.7.tar.gz
Algorithm Hash digest
SHA256 15c63fce6e9fa1d5d69cadee215421e83420196ac1067a0f3985a8e2127d87fb
MD5 0416e0468e4db0cc279c1878f3c1c570
BLAKE2b-256 366f7deec699afd406268caea6e4552e3e7a0ba38e28de08bfd861599e368d8b

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