Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mCRC Manuscript Scripts

This repository contains all R scripts and analysis pipelines used for the manuscript: "Spatial Zonation of Tumor Cell States, Stromal-Immune Networks, and Growth Patterns in Metastatic Colorectal Cancer". Scripts are organized by analysis category and figure generation.

Folder Structure

  • A_Data_preprocessing/ - Data preprocessing pipelines
    • A_snMultiome/ - Single-nucleus multiome (RNA + ATAC) processing
    • B_Xenium/ - Xenium spatial transcriptomics processing
    • C_CellChat/ - Cell-cell communication analysis
    • D_AUCell/ - Gene set enrichment analysis
    • F_inferCNV/ - InferCNV per-sample run, metadata builders, and CMETS-vs-subclone plots
  • B_Data_collection_visualization/ - Data collection overview figures
  • C_Somatic_mutation_analysis/ - Mutation analysis and visualization
  • D_Bulk_RNAseq/ - Bulk RNA-seq analysis (CMS: CMScaller on primary, lmCMScaller on liver)
  • E_NB_and_Functional_Zone/ - Neighborhood and functional zone analysis, including new Ext. Data Fig. 5 paired BANKSY (S5abc_paired_BANKSY_neighborhoods.R)
  • F_Tumor_subtypes/ - Tumor subtype analysis (original Ext. Data Fig. 5 is now Fig. 6), including KRAS local/section VAF (15, 17–20) and AUCell survival with MSI/MMR Cox (14)
  • G_TMR_PSI_interaction/ - Tumor Margin Region and Peri-Stromal Interface analysis (Ext. Data Fig. 7), including expanded tissue-depth states (F4c_expanded_tissue_depth_tumor_states.R) and CHRDL2 / GSE253554
  • H_Organ_specific_adaption/ - Organ-specific adaptation analysis (Ext. Data Fig. 8), including Tabula Sapiens HGF/HBEGF/SLIT2

Generated Seurat objects, GEO/GDC downloads, and local PDFs/PNGs are listed in .gitignore and should not be committed. Already-tracked figure files stay tracked.

Requirements

  • R: 4.4.3 (via seurat5_env conda environment)
  • Python: 3.13.3 (R analysis), 3.13.7 (3D analysis), 3.11.6 (Banksy clustering), 3.10.19 (morphological annotation)
  • Key packages: Seurat v5.3.0, tidyverse, ComplexHeatmap, AUCell, CellChat
  • System: Linux (tested on RHEL 7), 30GB+ RAM recommended

Quick Start

# R analysis (most scripts)
conda env create -f envs/seurat5_env.yml
conda activate seurat5_env

# Morphological annotation
conda env create -f envs/morph_env.yml
conda activate morph_env
pip install git+https://github.com/ding-lab/morph.git

# 3D reconstruction
conda env create -f envs/3d-analysis_env.yml
conda activate 3d-analysis

# Banksy clustering (Xenium)
conda env create -f envs/banksy_env.yml
conda activate banksy

See envs/README.md for build times and detailed setup instructions. For package documentation, see PACKAGE_DOCUMENTATION.md.

Bioinformatics Tools

Many bioinformatics tools were used in the course of this work. All tools written and/or published by the authors are freely available at our public GitHub repository (https://github.com/ding-lab/), including:

Usage

Scripts are named with figure identifiers (F#X_ for main figures, S#X_ for supplementary). Set working directory to script location and source:

setwd('/path/to/mCRC_Manuscript_Script/[folder_name]')
source('script_name.R')

Note: Scripts require access to specific server file paths and data directories. Many depend on custom functions in /diskmnt/Users2/epeng/Projects/mCRC/scripts/.


Manuscript: Spatial Zonation of Tumor Cell States, Stromal-Immune Networks, and Growth Patterns in Metastatic Colorectal Cancer
Status: Under Review

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

⌂