-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82c6314
commit b5c17ad
Showing
6 changed files
with
17 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ author: | |
- name: Nick Borcherding | ||
email: [email protected] | ||
affiliation: Washington University in St. Louis, School of Medicine, St. Louis, MO, USA | ||
date: "April 6, 2023" | ||
date: "April 2, 2024" | ||
output: | ||
BiocStyle::html_document: | ||
toc_float: true | ||
|
@@ -27,6 +27,7 @@ library(BiocStyle) | |
```{r} | ||
suppressMessages(library(Seurat)) | ||
suppressMessages(library(ggplot2)) | ||
suppressMessages(library(dplyr)) | ||
suppressMessages(library(Ibex)) | ||
suppressMessages(library(viridis)) | ||
suppressMessages(library(patchwork)) | ||
|
@@ -241,44 +242,6 @@ plot7 <- DimPlot(ibex_example, reduction = "Ibex.umap") + NoLegend() | |
plot5 + plot6 + plot7 | ||
``` | ||
|
||
## Regressing shared feature space | ||
|
||
There is a high degree of overlap in the feature space of expanded clonotypes, not only in the adaptive receptor genes that form the clonotype, but also in potentially functional genes. To identify divergent clusters in shared clonotypes using ```clonalCommunity()```, we can use the Ibex dimensions to identify clusters in order to then regress out closely associated clonotypes. | ||
|
||
```{r} | ||
library(harmony) | ||
library(bluster) | ||
#Cluster clones | ||
ibex_example <- clonalCommunity(ibex_example, | ||
reduction.name = "Ibex.KF", | ||
cluster.parameter=NNGraphParam(k=20)) | ||
#Run Harmony and new UMAP for RNA | ||
DefaultAssay(ibex_example) <- "RNA" | ||
ibex_example<- RunHarmony(ibex_example, "ibex.clusters", verbose = FALSE) | ||
ibex_example <- RunUMAP(ibex_example, | ||
reduction = "harmony", | ||
dims = 1:20, | ||
reduction.key = "RC_UMAP_", | ||
reduction.name = "regressClone_RNA") | ||
plot8 <- DimPlot(ibex_example, | ||
reduction = "rna.umap", | ||
group.by = "CTaa") + | ||
NoLegend() + | ||
scale_color_viridis(option="B", discrete = TRUE) | ||
plot9 <- DimPlot(ibex_example, | ||
reduction = "regressClone_RNA", | ||
group.by = "CTaa") + | ||
NoLegend() + | ||
scale_color_viridis(option="B", discrete = TRUE) | ||
plot8 + plot9 | ||
``` | ||
|
||
# CoNGA Reduction | ||
|
||
Recent [work](https://pubmed.ncbi.nlm.nih.gov/34426704/) has proposed using representative cells for the characterization of clonotype and gene expression relationships. In order to generate these representative cells, either a mean expression across a clone or using the PCA dimensional space to identify a single cell that has the minimum euclidean distance across a clone. | ||
|