Skip to content

Springff/CCLLM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎓 CCLLM: Cellular Community Large Language Model to identify motifs of cell organization in spatial transcriptomics

Ask DeepWiki

🌟 Overview

CCLLM is a graph-based LLM framework designed to identify conservative topological patterns of cell type combinations as CC motifs from cellular communities in SRT data.

CCLLM constructs a cellular community by cell spatial coordinates, where nodes represent individual cells and edges represent hypothetical spatial relations. The graph structure of the cellular community is then encoded a descriptive prompt template consisting of system instruction, graph structure, task description, and output format. CCLLM leverages prompt engineering to capture contextual information from the cellular community, and is fine-tuned using Low-Rank Adaptation (LoRA) to enable CC motifs identification and provide end-to-end biological interpretation.

🚀 Quick Start

These instructions guide you on how to run CCLLM locally.

Step 1: Clone the Repository

git clone https://github.com/Springff/CCLLM.git
cd CCLLM

Step 2: Configure the Environment

Create and activate a conda environment:

conda create -n myenv python=3.9
conda activate myenv

Install dependencies:

pip install -r requirements.txt

Step 3: Download the Llama3 Model

Important: You need to obtain a license for the Llama3 model and follow Meta's official instructions for downloading and configuring it.

Hugging Face: Llama3-8b-Instruct

Please consult the official Llama3 documentation for the correct download and usage instructions.

Place the downloaded Llama3 model in the llama3_models directory (recommended), or modify the model path in llama3_0.py.

Step 4: Run

python ./CCLLM.py

📋 Project Structure

CCLLM/
├── CCLLM.py                # Main execution script
├── requirements.txt         # Python dependency file
├── README.md               # This document
├── Llama3_models/          # Directory for Llama3 models
├── CCLLM-Llama3/           # Directory for LoRA module
└── ...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages