Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
sc-TissueMapper
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Strand Lab
sc-TissueMapper
Commits
4387f699
Commit
4387f699
authored
Jun 07, 2019
by
Gervaise Henry
🤠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Calculate UMAP for epi and st sub
parent
c1200b07
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
r.scripts/Pd_convert_to_UMAP.R
r.scripts/Pd_convert_to_UMAP.R
+18
-0
No files found.
r.scripts/Pd_convert_to_UMAP.R
View file @
4387f699
...
...
@@ -13,20 +13,38 @@ source("./r.scripts/sc-TissueMapper_functions.R")
source
(
"./r.scripts/sc-TissueMapper_process.R"
)
load
(
"./analysis/sc10x.Rda"
)
load
(
"./analysis/sc10x.Epi.Rda"
)
load
(
"./analysis/sc10x.St.Rda"
)
try
(
if
(
as.numeric
(
substring
(
sc10x
@
version
,
1
,
1
))
<
3
){
sc10x
<-
UpdateSeuratObject
(
sc10x
)
sc10x.Epi
<-
UpdateSeuratObject
(
sc10x.Epi
)
sc10x.St
<-
UpdateSeuratObject
(
sc10x.St
)
}
)
sc10x
<-
RunUMAP
(
sc10x
,
dims
=
1
:
30
,
reduction
=
"cca.aligned"
)
sc10x.Epi
<-
RunUMAP
(
sc10x.Epi
,
dims
=
1
:
30
,
reduction
=
"cca.aligned"
)
sc10x.St
<-
RunUMAP
(
sc10x.St
,
dims
=
1
:
30
,
reduction
=
"cca.aligned"
)
Idents
(
object
=
sc10x
)
<-
"Merge_Epi.dws_St.go_NE"
Idents
(
object
=
sc10x.Epi
)
<-
"Epi.dws.sub_NE"
Idents
(
object
=
sc10x.St
)
<-
"St.go"
sc10x
<-
RenameIdents
(
object
=
sc10x
,
"OE1"
=
"Club"
)
sc10x
<-
RenameIdents
(
object
=
sc10x
,
"OE2"
=
"Hillock"
)
sc10x.Epi
<-
RenameIdents
(
object
=
sc10x.Epi
,
"OE1"
=
"Club"
)
sc10x.Epi
<-
RenameIdents
(
object
=
sc10x.Epi
,
"OE2"
=
"Hillock"
)
postscript
(
paste0
(
"./analysis/UMAP.aggr.eps"
))
DimPlot
(
sc10x
,
reduction
=
"umap"
,
label
=
FALSE
,
order
=
rev
(
c
(
"BE"
,
"LE"
,
"Hillock"
,
"Club"
,
"NE"
,
"Fib"
,
"SM"
,
"Endo"
,
"Leu"
)),
cols
=
rev
(
c
(
brewer.pal
(
5
,
"Reds"
)[
2
:
5
],
"grey50"
,
brewer.pal
(
5
,
"Blues"
)[
2
:
5
])))
dev.off
()
postscript
(
paste0
(
"./analysis/UMAP.epi.eps"
))
DimPlot
(
sc10x.Epi
,
reduction
=
"umap"
,
label
=
FALSE
,
order
=
rev
(
c
(
"BE"
,
"LE"
,
"Hillock"
,
"Club"
,
"NE"
)),
cols
=
rev
(
c
(
"grey50"
,
brewer.pal
(
5
,
"Blues"
)[
2
:
5
])))
dev.off
()
postscript
(
paste0
(
"./analysis/UMAP.st.eps"
))
DimPlot
(
sc10x.St
,
reduction
=
"umap"
,
label
=
FALSE
,
order
=
rev
(
c
(
"Fib"
,
"SM"
,
"Endo"
,
"Leu"
)),
cols
=
rev
(
c
(
brewer.pal
(
5
,
"Reds"
)[
2
:
5
])))
dev.off
()
write.table
(
Embeddings
(
object
=
sc10x
,
reduction
=
"umap"
),
file
=
paste0
(
"./analysis/UMAP.aggr.csv"
),
row.names
=
TRUE
,
col.names
=
NA
,
append
=
FALSE
,
sep
=
","
)
write.table
(
Embeddings
(
object
=
sc10x.Epi
,
reduction
=
"umap"
),
file
=
paste0
(
"./analysis/UMAP.epi.csv"
),
row.names
=
TRUE
,
col.names
=
NA
,
append
=
FALSE
,
sep
=
","
)
write.table
(
Embeddings
(
object
=
sc10x.St
,
reduction
=
"umap"
),
file
=
paste0
(
"./analysis/UMAP.st.csv"
),
row.names
=
TRUE
,
col.names
=
NA
,
append
=
FALSE
,
sep
=
","
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment