Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
caokai1073 authored Feb 28, 2023
1 parent a108a15 commit 30a3ddb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R process/spot/PDAC_SPOT.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ colnames(scdataA) = paste0('cell',1:ncol(scdataA))

# save SPOT and RNA ref file for uniPort input
write.table(scdataA, quote = F,row.names = T, sep = '\t', file = paste0(file_path,'PDAC_scRNA.txt'))
write.table(dataA, quote = F,row.names = T, sep = '\t', file = paste0(file_path,'PDAC_ST.txt'))
write.table(dataA, quote = F,row.names = T, sep = '\t', file = paste0(file_path,'PDAC_SPOT.txt'))
write.table(names, quote = F,row.names = T, sep = '\t', file = paste0(file_path,'PDAC_scRNA_label.txt'))

# get coord from st data
Expand All @@ -67,8 +67,7 @@ ind <- as.data.frame(t(sapply(
#-----------------------------------------------------------
source(paste0(file_path,'spatial_function.R'))

ot <- read.table(paste0(file_path,'OT_PDAC.txt'),sep = '\t',header = T, row.names = 1)

ot <- read.table(paste0(file_path,'OT_PDAC.txt'),sep = '\t',header = T, row.names = 1) %>% t()
rownames(names) <- names$cell
ot_map <- mapCluster(ot, meta = names, cluster = 'cell_type', min_cut = 0.15, balance = T)

Expand Down

0 comments on commit 30a3ddb

Please sign in to comment.