File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -575,25 +575,26 @@ psi_pca <- prcomp(t(psis_mtx))
575575
576576# Add annotations of the conditions to the samples
577577psi_pca_pc <-
578- tibble (
579- pc = psi_pca$x,
578+ data.frame (
579+ psi_pca$x,
580580 sample = colnames(psis_mtx)
581- ) |>
581+ ) |>
582582 mutate(
583583 condition = case_when(
584584 grepl("S1", sample) ~ "RBFOX2kd",
585585 .default = "Controlkd"
586586 )
587- )
587+ )
588+
588589
589590# Get the amount of variances contained within PC1 and PC2
590- psi.pca.summary <- summary(psi.pca )$importance
591+ psi.pca.summary <- summary(psi_pca )$importance
591592pc1var <- round(psi.pca.summary[2, 1] * 100, 1)
592593pc2var <- round(psi.pca.summary[2, 2] * 100, 1)
593594
594595# Plot PCA data
595596ggplot(
596- psi.pca.pc ,
597+ psi_pca_pc ,
597598 aes(
598599 x = PC1,
599600 y = PC2,
You can’t perform that action at this time.
0 commit comments