Changes between Version 22 and Version 23 of SOP/scRNA-seq
- Timestamp:
- 08/25/20 17:38:26 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SOP/scRNA-seq
v22 v23 102 102 {{{ 103 103 all_Filt <- RunPCA(object = all_Filt, features = VariableFeatures(object = all_Filt)) 104 104 105 pdf("./PCAPlot.pdf", w=11, h=8.5) 105 106 DimPlot(object = all_Filt, reduction = "pca") … … 116 117 all_Filt <- RunUMAP(object = all_Filt, dims = 1:20) 117 118 all_Filt <- RunTSNE(object = all_Filt, dims = 1:20) 119 118 120 pdf("./UMAP_colorByExp.pdf", w=11, h=8.5) 119 121 DimPlot(object = all_Filt, reduction = "umap") … … 129 131 all_Filt <- FindNeighbors(object = all_Filt, dims = 1:20) 130 132 all_Filt <- FindClusters(object = all_Filt, resolution = 0.5) 133 131 134 pdf("./UMAP_colorByCluster_Res0.5.pdf", w=11, h=8.5) 132 135 UMAPPlot(object = all_Filt, label= TRUE) 133 136 dev.off() 137 134 138 all_Filt <- FindClusters(object = all_Filt, resolution = 0.4) 135 139 pdf("./UMAP_colorByCluster_Res0.4.pdf", w=11, h=8.5) 136 140 UMAPPlot(object = all_Filt, label= TRUE) 137 141 dev.off() 142 138 143 all <- FindClusters(object = all_Filt, resolution = 0.3) 139 144 pdf("./UMAP_colorByCluster_Res0.3.pdf", w=11, h=8.5) … … 148 153 * consider each cell as a sample 149 154 * aggregate counts across all cells in a group/cluster, and treat them as one sample 150 155 Seurat has 2 functions "FindAllMarkers" and "FindMarkers" that work well as long as the fold change and percentage of cells expressing the gene thresholds are not relaxed from the defaults "logfc.threshold = 0.25, min.pct = 0.1." More stringent thresholds (MIN_LOGFOLD_CHANGE = 0.7, MIN_PCT_CELLS_EXPR_GENE = .25) also work well. 156 * example command to compare each cluster to all other clusters: 157 {{{ 158 all.markers.pos.wilcox = FindAllMarkers(all_Filt, 159 min.pct = MIN_PCT_CELLS_EXPR_GENE, 160 logfc.threshold = MIN_LOGFOLD_CHANGE, 161 only.pos = TRUE, 162 test.use="wilcox") 163 }}} 164 * example command to compare 2 or more clusters or cell identities (''i.e.'' control and treatment) 165 {{{ 166 markers1_versus_18.pos.wilcox = FindMarkers(all_Filt, 167 min.pct = MIN_PCT_CELLS_EXPR_GENE, 168 logfc.threshold = MIN_LOGFOLD_CHANGE, 169 only.pos = TRUE, 170 test.use="wilcox", 171 ident.1 = "1", 172 ident.2 = "18" 173 }}} 151 174 === Add biological annotations to cells or cell clusters === 152 175