You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DE_table_all= Idents(seurat_obj) %>% levels() %>% intersect(sender_celltypes) %>% lapply(get_lfc_celltype, seurat_obj=seurat_obj, condition_colname=condition_colname, condition_oi=condition_oi, condition_reference=condition_reference, expression_pct=expression_pct, celltype_col=NULL) %>% reduce(full_join, by="gene") # use this if cell type labels are the identities of your Seurat object -- if not: indicate the celltype_col properly
seurat_obj_subset= SetIdent(seurat_obj_subset, value=seurat_obj_subset[[condition_colname, drop=TRUE]]) %>% subset(idents=condition_oi) ## only shows cells of the condition of interest
1220
1220
rotated_dotplot= DotPlot(seurat_obj %>% subset(cells= Cells(seurat_obj_subset)), features=order_ligands_adapted, cols="RdYlBu") + coord_flip() + theme(legend.text= element_text(size=10), legend.title= element_text(size=12)) # flip of coordinates necessary because we want to show ligands in the rows when combining all plots
rotated_dotplot= DotPlot(seurat_obj %>% subset(idents=sender_celltypes), features=order_ligands_adapted, cols="RdYlBu") + coord_flip() + theme(legend.text= element_text(size=10), legend.title= element_text(size=12)) # flip of coordinates necessary because we want to show ligands in the rows when combining all plots
1742
+
rotated_dotplot= DotPlot(seurat_obj[[assay_oi]] %>% subset(idents=sender_celltypes), features=order_ligands_adapted, cols="RdYlBu") + coord_flip() + theme(legend.text= element_text(size=10), legend.title= element_text(size=12)) # flip of coordinates necessary because we want to show ligands in the rows when combining all plots
rotated_dotplot= DotPlot(seurat_obj %>% subset(idents=sender_celltypes), features=order_ligands_adapted, cols="RdYlBu") + coord_flip() + theme(legend.text= element_text(size=10), legend.title= element_text(size=12)) # flip of coordinates necessary because we want to show ligands in the rows when combining all plots
2124
+
rotated_dotplot= DotPlot(seurat_obj[[assay_oi]] %>% subset(idents=sender_celltypes), features=order_ligands_adapted, cols="RdYlBu") + coord_flip() + theme(legend.text= element_text(size=10), legend.title= element_text(size=12)) # flip of coordinates necessary because we want to show ligands in the rows when combining all plots
0 commit comments