Open ytLiz opened 7 months ago
Hi,
I don't see any problem with the code you provided for running the quadratic programming function. The for loop:
for ( i in 1:ncol(mk) ){
w[i,] <- QP(mk[f,i],mw[f,])$qp$solution
}
is comparing each cluster in the mutant data against all clusters in the wild type, so there is no preselection here.
I do see subtile differences in some marker genes in your dotplots compared to the original publication, so I suspect that the clustering can have an impact on the quadratic programming function. I noticed a mistake on the clustering steps for the mutant dataset on my scripts. In line 100, the leiden resolution should be 2 instead of 1.5. I already updated this. Other reasons for changing the clustering may be to have removed few cells in your analyses and /or using different package versions. If useful, I used the following package versions:
RaceID: 0.2.6
quadprog: 1.5-8
leiden: 0.3.9
I also made available the SCseq objects I used on this link So you can use them to compare. Here is a code to upload them into the R environment:
#Wild type data:
sw <- readRDS("DahlinSCseq_WT.rds")
listw <- readRDS("DahlinSCseq_list_WT.rds")
resw <- listw$res
clw <- listw$cl
probsw <- listw$probs
#Kit mutant data
sk <- readRDS("DahlinSCseq_Mut.rds")
listk <- readRDS("DahlinSCseq_list_Mut.rds")
resk <- listk$res
clk <- listk$cl
probsk <- listk$probs
Let me know in case of further questions or problems
Hi,
I am having some issues when running the VarID2_Figure4.R. I tried to reproduce the pipeline by using the same data. Because some data points were severely scattered, I deleted them. After doing the data filtering I got these result graphs.
the graphs of wild-type samples are the following:
the graphs of mutant samples are the following:
I tried to choose the cluster 1 of wild-type samples and the cluster 1 of mutant samples as LT-HSCs. But when I computed the similarity weights of clusters and made the heat map, I found that there is almost no similarity between the clusters I have chosen.
the heat map is the following:
and this is the code I used:
I wonder that if I should modify the code and how to do so, or if I may have other errors. I would appreciate if you can provide me some help.
Best, Liz