Skip to content

Commit

Permalink
Update seurat_init.R
Browse files Browse the repository at this point in the history
fixed crucial error
  • Loading branch information
eberdan authored Aug 28, 2024
1 parent 9972431 commit d6624c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inst/templates/singlecell/scripts/seurat_init.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ seurat_merge$mitoRatio <- seurat_merge@meta.data$mitoRatio/100 # Divide by 100 f
# Number of genes per UMI for each cell
seurat_merge$Log10GenesPerUMI <- log10(seurat_merge$nFeature_RNA) / log10(seurat_merge$nCount_RNA)

# Extract cell level metadata
metadata <- seurat_merge@meta.data
metadata$barcode <- rownames(metadata)

# Import experimental metadata
metaexp <- read.csv("/path/to/experimental/metadata/meta.csv")

Expand Down

0 comments on commit d6624c5

Please sign in to comment.