Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
custom
Rossari_SciTraMed_2025
Commits
8df73996
Commit
8df73996
authored
Mar 07, 2025
by
Stefano Beretta
Browse files
Update Paper_figures.R
parent
210cbb75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Clustering_Analysis/Paper_figures.R
View file @
8df73996
...
@@ -41,3 +41,31 @@ p_m <- ggplot(data = df_m, mapping = aes(x = UMAPh_1, y = UMAPh_2, color = Annot
...
@@ -41,3 +41,31 @@ p_m <- ggplot(data = df_m, mapping = aes(x = UMAPh_1, y = UMAPh_2, color = Annot
geom_point
(
size
=
.6
)
geom_point
(
size
=
.6
)
Seurat
::
LabelClusters
(
plot
=
p_m
,
id
=
"Annotation"
,
color
=
"black"
,
size
=
5
)
Seurat
::
LabelClusters
(
plot
=
p_m
,
id
=
"Annotation"
,
color
=
"black"
,
size
=
5
)
# Figure S12 - CD4 CAR-T
df
$
CART_CD4_MAGIC
[
is.na
(
df
$
CART_CD4_MAGIC
)]
<-
"NOCAR"
t
<-
table
(
df
$
CART_CD4_MAGIC
,
df
$
orig.ident
)
t
<-
rbind
(
t
,
colSums
(
t
))
rownames
(
t
)
<-
c
(
"CART_CD4_MAGIC"
,
"NOCAR"
,
"Total"
)
t
<-
data.frame
(
t
(
t
))
t
$
CART_CD4_MAGIC_perc
<-
100
*
(
t
$
CART_CD4_MAGIC
/
t
$
Total
)
t
$
Condition
<-
stringr
::
str_split_fixed
(
rownames
(
t
),
"-"
,
2
)[,
2
]
# Fig. S12 - A
ggplot
(
data
=
t
,
mapping
=
aes
(
x
=
Condition
,
y
=
CART_CD4_MAGIC_perc
,
color
=
Condition
))
+
theme_bw
(
base_size
=
18
)
+
theme
(
legend.position
=
"none"
)
+
geom_point
(
size
=
3
)
+
ylab
(
"CD4 WPRE+ (% of total cells)"
)
+
xlab
(
""
)
+
scale_y_continuous
(
limits
=
c
(
0
,
6
))
# Fig. S12 - B
t
<-
df
%>%
filter
(
CART_CD4_MAGIC
==
"CART_CD4_MAGIC"
)
%>%
group_by
(
PROP.Condition
,
Annotation
)
%>%
summarise
(
TotCells
=
n
())
ggplot
(
data
=
t
,
mapping
=
aes
(
x
=
PROP.Condition
,
y
=
TotCells
,
fill
=
Annotation
))
+
theme_bw
(
base_size
=
18
)
+
theme
(
legend.position
=
"right"
)
+
geom_bar
(
stat
=
"identity"
,
position
=
"fill"
)
+
xlab
(
""
)
+
ylab
(
"count"
)
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