@@ -6,11 +6,11 @@ library(dplyr)
66load(" ./tmp/base_image.RData" )
77
88for (i in 1 : nrow(samples )) {
9- x <- Read10X(
9+ x <- Read10X( # pulling data with no filter
1010 data.dir = samples $ dir [i ]
1111 )
12- str_section_head(" Raw Object" )
13- x <- CreateSeuratObject(
12+ str_section_head(" Raw Object" ) # logging
13+ x <- CreateSeuratObject( # certain data will gen null matrix sans filters
1414 counts = x ,
1515 project = samples $ project [i ],
1616 min.cells = params [" min.cells" , ],
@@ -20,15 +20,15 @@ for (i in 1:nrow(samples)) {
2020 x ,
2121 pattern = " (?i)^MT-"
2222 )
23- str_section_head(" Base Seurat Object" )
23+ str_section_head(" Base Seurat Object" ) # logging
2424 x <- subset(
2525 x ,
2626 nCount_RNA > params [" min.count" , ] &
2727 nCount_RNA < params [" max.count" , ] &
2828 percent.mt < params [" percent.mt" , ]
2929 )
3030 x <- NormalizeData(x )
31- str_section_head(" Subset, Normalized" )
31+ str_section_head(" Subset, Normalized" ) # logging
3232 genes <- rownames(x )
3333 x <- ScaleData(
3434 x ,
@@ -46,15 +46,15 @@ for (i in 1:nrow(samples)) {
4646 samples $ name [i ],
4747 x
4848 )
49- str_section_head(" Scaled" )
49+ str_section_head(" Scaled" ) # logging
5050}
5151
5252# create and save list of seurat objects
5353objects <- list ()
5454for (i in samples $ name ) {
5555 objects <- c(
5656 objects ,
57- get(i )
57+ get(i ) # need get() to call object instead of string
5858 )
5959}
6060
0 commit comments