The project
ChatCell
aims to facilitate single-cell analysis with natural language, which derives from the
Cell2Sentence
technique to obtain cell language tokens and utilizes cell vocabulary adaptation for T5-based pre-training. Have a try with the demo at
💻GPTStore App
.
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
tokenizer = AutoTokenizer.from_pretrained("zjunlp/chatcell-large")
model = AutoModelForSeq2SeqLM.from_pretrained("zjunlp/chatcell-large")
input_text="Detail the 100 starting genes for a Mix, ranked by expression level: "# Encode the input text and generate a response with specified generation parameters
input_ids = tokenizer(input_text,return_tensors="pt").input_ids
output_ids = model.generate(input_ids, max_length=512, num_return_sequences=1, no_repeat_ngram_size=2, top_k=50, top_p=0.95, do_sample=True)
# Decode and print the generated output text
output_text = tokenizer.decode(output_ids[0],skip_special_tokens=True)
print(output_text)
🧬 Single-cell Analysis Tasks
ChatCell can handle the following single-cell tasks:
Random Cell Sentence Generation.
Random cell sentence generation challenges the model to create cell sentences devoid of predefined biological conditions or constraints. This task aims to evaluate the model's ability to generate valid and contextually appropriate cell sentences, potentially simulating natural variations in cellular behavior.
Pseudo-cell Generation.
Pseudo-cell generation focuses on generating gene sequences tailored to specific cell type labels. This task is vital for unraveling gene expression and regulation across different cell types, offering insights for medical research and disease studies, particularly in the context of diseased cell types.
Cell Type Annotation.
For cell type annotation, the model is tasked with precisely classifying cells into their respective types based on gene expression patterns encapsulated in cell sentences. This task is fundamental for understanding cellular functions and interactions within tissues and organs, playing a crucial role in developmental biology and regenerative medicine.
Drug Sensitivity Prediction.
The drug sensitivity prediction task aims to predict the response of different cells to various drugs. It is pivotal in designing effective, personalized treatment plans and contributes significantly to drug development, especially in optimizing drug efficacy and safety.
@article{fang2024chatcell,
title={ChatCell: Facilitating Single-Cell Analysis with Natural Language},
author={Fang, Yin and Liu, Kangwei and Zhang, Ningyu and Deng, Xinle and Yang, Penghui and Chen, Zhuo and Tang, Xiangru and Gerstein, Mark and Fan, Xiaohui and Chen, Huajun},
year={2024},
}
Runs of zjunlp chatcell-large on huggingface.co
22
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About chatcell-large huggingface.co Model
chatcell-large huggingface.co
chatcell-large huggingface.co is an AI model on huggingface.co that provides chatcell-large's model effect (), which can be used instantly with this zjunlp chatcell-large model. huggingface.co supports a free trial of the chatcell-large model, and also provides paid use of the chatcell-large. Support call chatcell-large model through api, including Node.js, Python, http.
chatcell-large huggingface.co is an online trial and call api platform, which integrates chatcell-large's modeling effects, including api services, and provides a free online trial of chatcell-large, you can try chatcell-large online for free by clicking the link below.
zjunlp chatcell-large online free url in huggingface.co:
chatcell-large is an open source model from GitHub that offers a free installation service, and any user can find chatcell-large on GitHub to install. At the same time, huggingface.co provides the effect of chatcell-large install, users can directly use chatcell-large installed effect in huggingface.co for debugging and trial. It also supports api for free installation.