Open estebanelias opened 2 weeks ago
@estebanelias You should use the normalized data instead of count data. Please check the tutorial:
counts <- t(as.matrix(ad$X))
library.size <- Matrix::colSums(counts) data.input <- as(log1p(Matrix::t(Matrix::t(counts)/library.size) * 10000), "dgCMatrix")
R version 4.4.0 (2024-04-24) -- "Puppy Cup" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: aarch64-apple-darwin20
R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.
[Workspace loaded from ~/.RData]
Loading required package: SeuratObject Loading required package: sp
Attaching package: ‘SeuratObject’
The following objects are masked from ‘package:base’:
Attaching package: ‘anndata’
The following object is masked from ‘package:SeuratObject’:
Attaching package: ‘dplyr’
The following objects are masked from ‘package:stats’:
The following objects are masked from ‘package:base’:
Loading required package: igraph
Attaching package: ‘igraph’
The following objects are masked from ‘package:dplyr’:
The following objects are masked from ‘package:stats’:
The following object is masked from ‘package:base’:
Loading required package: ggplot2
Thanks,