Code Monkey home page Code Monkey logo

sctenifoldpy's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.