Changes between Version 22 and Version 23 of SOP/scRNA-seq


Ignore:
Timestamp:
08/25/20 17:38:26 (4 years ago)
Author:
ibarrasa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SOP/scRNA-seq

    v22 v23  
    102102{{{
    103103all_Filt <- RunPCA(object = all_Filt, features = VariableFeatures(object = all_Filt))
     104
    104105pdf("./PCAPlot.pdf", w=11, h=8.5)
    105106DimPlot(object = all_Filt, reduction = "pca")
     
    116117all_Filt <- RunUMAP(object = all_Filt, dims = 1:20)
    117118all_Filt <- RunTSNE(object = all_Filt, dims = 1:20)
     119
    118120pdf("./UMAP_colorByExp.pdf", w=11, h=8.5)
    119121DimPlot(object = all_Filt, reduction = "umap")
     
    129131all_Filt <- FindNeighbors(object = all_Filt, dims = 1:20)
    130132all_Filt <- FindClusters(object = all_Filt, resolution = 0.5)
     133
    131134pdf("./UMAP_colorByCluster_Res0.5.pdf", w=11, h=8.5)
    132135UMAPPlot(object = all_Filt, label= TRUE)
    133136dev.off()
     137
    134138all_Filt <- FindClusters(object = all_Filt, resolution = 0.4)
    135139pdf("./UMAP_colorByCluster_Res0.4.pdf", w=11, h=8.5)
    136140UMAPPlot(object = all_Filt, label= TRUE)
    137141dev.off()
     142
    138143all <- FindClusters(object = all_Filt, resolution = 0.3)
    139144pdf("./UMAP_colorByCluster_Res0.3.pdf", w=11, h=8.5)
     
    148153  * consider each cell as a sample
    149154  * aggregate counts across all cells in a group/cluster, and treat them as one sample
    150 
     155Seurat 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{{{
     158all.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{{{
     166markers1_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}}}
    151174=== Add biological annotations to cells or cell clusters  ===
    152175