R04

作者: rong酱 | 来源:发表于2021-08-09 23:58 被阅读0次
#! /path/to/Rscript

library(Seurat)
library(dplyr)
library(ggplot2)

rds <- readRDS('Merge.Rdata')
rds1 <- FindNeighbors(rds, dims = 1:10)
rds2 <- FindClusters(rds1, resolution = 0.5)  # resolution 值不同,可以改变分群个数
table(rds2@active.ident) # 可以显示 分多少群
#subpbmc<-subset(x = rds2,idents="2")
#subbset<-subset(x=rds2,cells=colnames(rds2@assays$RNA@counts)[1:30])
#treerds<-BuildClusterTree(rds2)
#PlotClusterTree(treerds)
#install.packages('ape')
#library('ape')
rds4<-CalculateBarcodeInflections(rds2)
#SubsetByBarcodeInflections(rds4)

umaprds4 <- RunUMAP(rds4, dims = 1:10)
head(umaprds4@reductions$umap@cell.embeddings)
tsnerds4 <- RunTSNE(umaprds4, dims = 1:10)
rdsallmarkers <- FindAllMarkers(tsnerds4, only.pos = TRUE, min.pct = 0.25, logfc.threshold = 0.25)
write.table(rdsallmarkers,'/tp/marker.txt',sep = '\t', row.names = FALSE, col.names = TRUE, quote = FALSE)

相关文章

  • R04

  • R组

    高能要事 R组知行组 口号:知行合一,勇敢前行。 R01 李艳峰 R02 罗春桃 R03 赵泽林 R04 张魁 ...

  • 第259期R04第四周作业

    【第四周锦囊作业】图片: 一、刻意练习 没有反思的人生不值得过 -苏格拉底【月度检视】 一、健康:早睡早起统计、...

网友评论

      本文标题:R04

      本文链接:https://www.haomeiwen.com/subject/vsatbltx.html