Skip to content

Commit

Permalink
update visualization function
Browse files Browse the repository at this point in the history
  • Loading branch information
JinNing329 committed Mar 12, 2024
1 parent 5135ef7 commit 0d731fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions R/Visualization.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ suppressPackageStartupMessages(library("Seurat"))
suppressPackageStartupMessages(library("ggplot2"))
suppressPackageStartupMessages(library("ComplexHeatmap"))
suppressPackageStartupMessages(library("circlize"))
data.norm<-GetTDEseqAssayData(tde,'data')
data.norm<-GetTDEseqAssayData(obj,'data')
seu<-CreateSeuratObject(data.norm)
seu@assays$RNA@data<-data.norm
seu<-ScaleData(seu)
mat <- GetAssayData(seu,slot = 'scale.data')
metadata <- GetTDEseqAssayData(tde,'meta.data')
res_dat=GetTDEseqAssayData(tde,'tde')
metadata <- GetTDEseqAssayData(obj,'meta.data')
res_dat=GetTDEseqAssayData(obj,'tde')
res_dat=res_dat[order(res_dat$pvalue),]
feature_annot=c()
if(is.null(features))
Expand Down Expand Up @@ -164,8 +164,8 @@ PatternLine<-function (obj, feature.show = NULL, cols = NULL)
stop(paste0("Genes to be shown are not specified!!"))
}

dat = dat[feature.show, ]
time=as.numeric(colnames(dat))
dat = dat[feature.show, ]

N=length(feature.show)
if(N!=1)
Expand Down

0 comments on commit 0d731fb

Please sign in to comment.