Skip to main content

scTenifoldpy

Project description

scTenifoldpy

PyPI pyversions Pattern GitHub license

This package is a Python version of scTenifoldNet and scTenifoldKnk. If you are a R/MATLAB user, please install them to use their functions. Also, please cite the original paper properly if you are using this in a scientific publication. Thank you!

Installation

pip install scTenifoldpy

Usages

scTenifold can be imported as a normal Python package:

scTenifoldNet

from scTenifold.data import get_test_df
from scTenifold import scTenifoldNet

df_1, df_2 = get_test_df(n_cells=1000), get_test_df(n_cells=1000)
sc = scTenifoldNet(df_1, df_2, "X", "Y", qc_kws={"min_lib_size": 10})
result = sc.build()

scTenifoldKnk

from scTenifold.data import get_test_df
from scTenifold import scTenifoldKnk

df = get_test_df(n_cells=1000)
sc = scTenifoldKnk(data=df,
                   ko_method="default",
                   ko_genes=["NG-1"],  # the gene you wants to knock out
                   qc_kws={"min_lib_size": 10, "min_percent": 0.001},
                   )
result = sc.build()

Command Line tool

Once the package is installed, users can use commandline tool to generate all the results
Use this command to create a config.yml file,

python -m scTenifold config -t 1 -p ./net_config.yml

Next, open the config file, add data path, and edit the parameters.
Then use the command below to produce the scTenifoldNet results:

python -m scTenifold net -c ./net_config.yml -o ./output_folder

Or use the command below to produce the knockout results:

python -m scTenifold knk -c ./knk_config.yml -o ./output_folder

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

scTenifoldpy-0.1.3.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

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

scTenifoldpy-0.1.3-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

Details for the file scTenifoldpy-0.1.3.tar.gz.

File metadata

  • Download URL: scTenifoldpy-0.1.3.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for scTenifoldpy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 41df35ebc1c5eb2bc32401da945b8313999fa70472b5a9b8ce3c06bce65ac190
MD5 d4e7e851bd6af53b3588ade2fa3416b7
BLAKE2b-256 6905ee4f79149b91cee04e295fa562b036035da9fb0bfa4671c52d2dc97a7e5e

See more details on using hashes here.

File details

Details for the file scTenifoldpy-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: scTenifoldpy-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for scTenifoldpy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bbb4e95b3daf223850f7040e5c16bdfdf31fb451d87532f97ba443169cb9e75a
MD5 f8976acb7e3b1b81a1fa56a8f8786b72
BLAKE2b-256 e8524cd394a1e072eb42562146c3f6c43d18f870697e0c8b0ff4486a54c3c2ed

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