This repository contains code for scRNA-seq data processing, downstream analysis, and figure generation for the study titled "Profiling of epithelial functional states and fibroblast phenotypes in hormone therapy-naive localized prostate cancer." The dataset comprises 24 patients with hormone therapy-naive localized prostate cancer.
Important
All scripts are configured to run on the Garvan Wolfpack HPC cluster and include absolute file paths.
Each script should provide a description of its function.
Figure scripts are preliminary; some figure panels were manually edited in Adobe Illustrator (in some cases extensively).
The scripts contain further de-identified Cansto IDs (P1 - P24).
The scRNA-seq data was processed using the Seurat package (v3.2.2) with mostly default parameters for normalization, scaling, clustering, and dimensionality reduction.
Differential gene expression analysis (DGEA) was performed using the "MAST" method.
-
20210802_rerun/:
- Scripts for preliminary annotation of the PCa scRNA-seq dataset using SCN (at major level), running CopyKAT, AUCell with PCa signatures, and annotating malignant cells (scripts 01.* - 09.*).
- 03.2_copykat_reference_nocafs_unknown.R was taken forward and used in construction of the malignant spectrum.
- Scripts for preliminary annotation of the PCa scRNA-seq dataset using SCN (at major level), running CopyKAT, AUCell with PCa signatures, and annotating malignant cells (scripts 01.* - 09.*).
-
20210908_epi_annotation/:
- Scripts to re-process epithelial data (log normalised), with manual annotations at celltype major/minor/subset level.
-
NOTE: These scripts do not use the final annotation (it changed during thesis/paper write up).
-
20211028_stromal_annotation_v3_log/:
- Scripts to re-process stromal data (log normalised), with manual annotations at celltype major/minor/subset level.
-
NOTE: These scripts do not use the final annotation (it changed during thesis/paper write up).
-
20211102_immune_annotation_v1_log/:
- Scripts to re-process immune data (log normalised), with manual annotations at celltype major/minor/subset level.
-
NOTE: These scripts do not use the final annotation (it changed during thesis/paper write up).
-
20211117_merged_filtered_v1_log/:
- Scripts to merge objects resulting from the above cell type specific analyses/annotations & re-process all PCa data together (resulting in a merged object). Low QC cells and heterotypic Doublets are filtered out (post-annotation; log normalised).
-
NOTE: These scripts do not use the final annotation (it changed during thesis/paper write up).
-
20220919_CAFs_characterisation/:
- Scripts for CAF analysis and characterisation.
-
NOTE: These scripts do not use the final annotation (it changed during thesis/paper write up).
-
20220928_glial_annotation_v1_log/:
- Scripts to annotate glial cells, which were initially misannotated by SCN and were scattered among other major cell types.
-
Note: These scripts do not use the final annotation (it changed during thesis/paper write up).
-
20220930_SMCs_characterisation/:
- Scripts for SMC analysis and characterisation.
-
Note: These scripts do not use the final annotation (it changed during thesis/paper write up).
-
20221004_atlas_annotation_filtered/:
-
Scripts to merge PCa data after further filtering of CAFs and SMCs (identified in CAF and SMC characterisation).
-
01_recluster_celltypes_filtered.R:
- Reclustering of and DGEA on all cell types after excluding low QC cells and Doublets.
-
02_annotate_cells.R:
- Review each cell type individually after the removal of low QC cells and Doublets. Assess marker gene expression to ensure correct classification and annotation. This is where the 'celltype_major_v2', 'celltype_minor_v2' and 'celltype_subset_v2' are initially assigned and later refined during thesis/paper write-up.
-
03_merge_recluster_filtered.R:
- Merge cell type-specific objects with Plasma and Unassigned cells (which were not separately reclustered due to their low numbers). Run DGEA at various resolutions for both Seurat clusters and cell-type annotations (major/minor/subset).
-
06_merge_recluster_filtered_updateJan23.R:
- Update annotations for the merged object (without reprocessing data from 03_merge_recluster_filtered.R). Replace the relevant metadata and resave the updated object.
-
-
-
20221215_signature_mix/:
- Scripts to run AUCell using various signatures.
-
20230420_epithelial_chapter/:
- These scripts include repeated and curated analyses from earlier work, with improved organisation. They feature plots, updated annotations, and, in some cases, the generation of patient-specific objects (e.g., reclustering of epithelial cells at the sample/patient level).
-
20230721_ar_chapter/:
- These scripts include repeated and curated analyses from earlier work, with improved organisation. They feature plots, updated annotations, and, in some cases, the generation of patient-specific objects (e.g., reclustering of epithelial cells at the sample/patient level).
- 03_recluster_epi_per_patient.R: used to generate patient-specific epithelial objects, used for plots in supplementary data (e.g., Supp Fig 10/11 from initial manuscript submission to Cancer Discovery).
- 06_DGEA_MSMB_vs_malignant.R and 07_run_fgsea.R: used to run DGEA and GSEA between patient-specific epithelial clusters (related to MSMB work in Supp Fig 11, from initial manuscript submission to Cancer Discovery).
- 13_CH_meta_combined.R: used to generate Complex Heatmaps in Supp Fig 10 and 11 (from initial manuscript submission to Cancer Discovery).
- These scripts include repeated and curated analyses from earlier work, with improved organisation. They feature plots, updated annotations, and, in some cases, the generation of patient-specific objects (e.g., reclustering of epithelial cells at the sample/patient level).
-
20230714_collate_annotation/:
-
Scripts used to collate & update annotations resulting from thesis/paper write-up.
-
Note: In some cases, annotations were further refined during the paper write-up (but this should be reflected in these scripts/objects).
-
01_collate_annotation.R:
- Collates and updates annotation for Myeloid, Epithelial, T-, Endothelial, and Glial cells in the merged PCa object.
- Output: "..Jul23_update.rds"
-
02_update_annotation.R:
- Collates and updates annotation for CAFs, B-, Endothelial, and Plasma cells in the merged PCa object.
- Output: "..Oct23_update.rds"
-
03_combine_minor_and_malignant.R:
- Updates the malignant spectrum annotation and adds a new meta data column (celltype_minor_mal), which combines information on malignant spectrum and epithelial lineage annotations (e.g., Luminal_malignant, Luminal_altered_benign, Luminal_normal and Basal_malignant, Basal_altered_benign, Basal_normal) - in the merged PCa object.
- Not relevant to/used in paper.
- Output: "..Mar24_update.rds"
-
04_combine_major_ALL_and_minor_CAFs.R:
-
Note: Use this object for rerunning analyses or plotting with the PCa merged object.
- Creates a new meta data column (celltype_major_temp) combining the major annotation for all cell types with the minor annotation for CAFs, in the merged PCa object. Celltype_major_temp is used to run CellChat on the PCa scRNA-seq dataset.
- Additionally, it updates "Luminal_IFN" to "Club_IFN".
- Output: "..Jul24_update.rds"
-
05_update_list_celltype_objects.R:
-
Note: Use this list for cell type-specific analyses/plots.
- Updates cell type-specific annotation in the list of cell type-specific objects.
- Output: "..PCa_atlas_list_annotated_v2_exc_Plasma_Unassigned_updateOct24.rds"
-
-
-
20240508_ligand_receptor_analysis/:
- Scripts to run CellChat on PCa scRNA-seq data.
-
20240215_figure_one/:
- Scripts to generate plots/repeat analyses for Figure One.
-
20240726_figure_two/:
- Scripts to generate plots/repeat analyses for Figure Two.
-
20240220_figure_three/:
- Scripts to generate plots/repeat analyses for Figure Three.
-
20240304_figure_four/:
- Scripts to generate plots/repeat analyses for Figure Four.
-
20240408_figure_five/:
- Scripts to generate plots/repeat analyses for Figure Five (scRNA-seq only).
-
20240816_supplementary_data/:
- Scripts to generate supplementary figures related to other cell types that are not the primary focus of the PCa atlas manuscript (e.g., Immune cells).
-
20240930_meta_data_final/:
- Scripts to tidy up the meta data and format it according to CELLxGENE's requirements.
- The final PCa merged and cell type-specific Seurat objects, with further de-identified Cansto IDs (prior to submission to CELLxGENE).
-
20241001_prepare_sc_data_for_cellxgene/:
- Scripts to convert the Seurat object to an .h5ad object.
-
custom_functions/:
- Custom functions sourced throughout the analyses, mostly for visualisation purposes.
-
signatures/:
- Gene signatures relevant to the analyses.
-
scRNA_seq_objects_meta_data_dictionary.csv:
- csv file that describes the metadata columns found in the scRNA-seq objects.
- All processed & filtered scRNA-seq data, including the merged object and cell type specific objects, is available for in-browser exploration and download through the CELLxGENE portal.
- Raw scRNA-seq data and genotyping data from this study will be deposited in the European Genome-Phenome Archive (EGA).
The Visium scripts and data are hosted on a different repo, found [here](url: insert link).
For further enquires, please either raise an issue via GitHub or email John Reeves (Data Manager - j.reeves(at)garvan.org.au) or Alexander Swarbrick (Lab Head - a.swarbrick(at)garvan.org.au).
- Add info on single-cell workflow + demux (Souporcell) analysis for this dataset
- Add CELLxGENE links (when available)
- Add EGA accession number (when available)
- Add information re spatial transcriptomics data access & scripts (link to repo)