satijalab / sctransform

R package for modeling single cell UMI expression data using regularized negative binomial regression
GNU General Public License v3.0
208 stars 33 forks source link

Why the difference in sample order affects the sctransform results #150

Open yuxuanChen777 opened 1 year ago

yuxuanChen777 commented 1 year ago

I entered the same cellular gene matrix, just changed the order of the cells before and after, why the sctransform results are different

yuxuanChen777 commented 1 year ago

image The var.features found by the sctransform are different after the order of the samples is distorted

yuxuanChen777 commented 1 year ago

Please tell me the reasons for this randomness

lc-hhh commented 1 year ago

Actually, I notice there is a parameter seed.use in SCTransform function. By default, sets the seed to 1448145.