Skip to content

Commit be275be

Browse files
committed
Figures for Module Score
1 parent 427788d commit be275be

6 files changed

Lines changed: 12987 additions & 6 deletions

File tree

vignettes/SCWorkflow-Annotations.Rmd

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,26 @@ ggsave(Anno_SO$p2, filename = "./images/Anno2.png", width = 10, height = 10)
7070

7171
This function will merge an external table of cell annotations into an existing Seurat Object's metadata table. The input external metadata table must have a column named "Barcode" that contains barcodes matching those found in the metadata already present in the input Seurat Object. The output will be a new Seurat Object with metadata that now includes the additional columns from the external table.
7272

73-
```{r,eval=run_Chunks,echo=T}
74-
CellType_Anno_Table=read.csv("PerCell_Metadata.csv")
7573

76-
```
7774

78-
```{r,eval=T,echo=F}
75+
```{r,echo=F}
76+
if (run_Chunks){
7977
Anno_SO=readRDS("./images/Anno_SO.rds")
8078
8179
8280
Anno_SO$object@meta.data[,'mouseRNAseq_main',drop=F]%>%rename('Cell Type'=mouseRNAseq_main)%>%rownames_to_column('Barcode')%>%
83-
head()%>%
84-
knitr::kable()
81+
write.table("PerCell_Metadata.csv",sep=",",row.names=F,quote=F)
82+
}else {
83+
84+
CellType_Anno_Table=read.csv("PerCell_Metadata.csv")
85+
86+
}
87+
88+
CellType_Anno_Table%>%head()%>% knitr::kable()
89+
90+
```
91+
92+
```{r,eval=run_Chunks,echo=T}
8593
8694
```
8795

vignettes/images/CBM1.png

66.9 KB
Loading

vignettes/images/MS1.png

-139 KB
Loading

vignettes/images/MS2.png

131 KB
Loading

vignettes/images/MS3.png

12 KB
Loading

0 commit comments

Comments
 (0)