Open jcshuy opened 9 months ago
The convergence plot looks strange.
Can you share some extra information about the datasets (number of batches, differences expected between batches)? From the top of my head I would encourage you to set lambda=NULL
to see whether this improves things.
Also, how many PCs are you using for this?
Sorry for the late response. To be honest I am still quite new to single cell analysis and I am not too familiar of how this dataset was processed; I believe it may be two batches (there are 2 control samples and two treated samples).
After QC I have run 75 PCs for this dataset
seurObj <- NormalizeData(seurObj) %>% FindVariableFeatures(selection.method = "vst") %>% ScaleData(vars.to.regress = c('nCount_RNA','nFeature_RNA')) %>% RunPCA(npcs = 75, verbose = T)
and the resulting PCA plot looks like this:
Running harmony with lambda set to NULL results in this following convergence plot:
It also appears that the harmony plot is unchanged from the original unintegrated plot.
Hi, sorry if this was already addressed in a previous issue-- I was not able to source a solution to this. I ran Harmony on a relatively large (~21k cells) merged Seurat v4 object with the following command:
seurObj <- RunHarmony(seurObj, 'orig.ident', plot_convergence = T, early_stop = F, max_iter = 40)
and afterwards the convergence plot showed a result like this: I also checked the UMAP and believe the two did not converge correctly. However, I am confused why the result turned out like this. I have used Harmony in the past and usually they will converge without issue if setting a largermax_iter
value along withearly_stop = F
. Does anybody have a solution to remedy this?Session info: