-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while running runDWLSDeconv #170
Comments
Hi @PerrineLacour , I also had an error running the same function but my error was
after running with these parameters
did you find a solution for this, Best |
I thought we had figured this out, but I'm including @gcyuan to the conversation as his team might be able to help out. |
Hi, No unfortunately I could not find a solution, I am working around it for now (by combining information from other samples). Thank you! Let me know if you need more information on the issue. Best, |
Hi @PerrineLacour , I'm sorry to hear that this issue was not yet resolved. @PerrineLacour or @moutazhelal Would it be possible to share - ideally a small - reproducible example that leads to this error? The information can also be de-identified and shared via email if that helps. Thanks |
Hi @RubD , I can share some de-identified data for a reproducible example. Could you share an email address I can send this data to? Best, |
Can you share it with rdries@bu.edu and joselynchavezf@gmail.com? Thanks, |
Could you let us know which version of Giotto you used that had this problem?
… On Feb 17, 2022, at 9:17 AM, Ruben Dries ***@***.***> wrote:
I thought we had figured this out, but I'm including @gcyuan to the conversation as his team might be able to help out.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
Did you figure out what caused the problem? I encountered similar errors when running DWLS. My input ST data only has a few dozen genes. Would that be a problem? I'm using Giotto suite 2.0.0.997.
|
I also get the same issue. My Giotto version is 1.1.0.
|
Hi @moutazhelal and @leihouyeung, To fix the problem you encountered, I can check the function 'runDWLSDeconv' if you guys would like to share your data including giotto object ‘Giotto_NDLN’ and ‘signature_matrix’. Thanks, |
@XuanCao-CX Thanks for your help. The code is uploaded to Google Drive. Actually, I follow the code from here, because I did not find any tutorial on deconvolution in the Giotto documents. Could you please supply a de novo pipeline for deconvolution of spatial transcriptomics? Thanks a lot. |
Hi @leihouyeung, Here is the pipeline to run deconvolution of spatial transcriptomics. To solve your problem, here I used seqFISH+ dataset as an example, you should run Part 1-9 of our online seqFISH+ pipeline (https://rubd.github.io/Giotto_site/articles/mouse_seqFISH_cortex_200914.html) and fellow this example to check the data format for sign_list and dwls_signature_matrix. Please keep in mind, single-cell resolution doesn't need deconvolution and this pipeline just used for users to easily understand the DWLS steps in Giotto. Please let me know if there's any other problems. Best, ` Cell-type EnrichmentSetp1: PAGEmakePAGEsigMatrixgeneral cell typesclusters_cell_types_cortex = c('L6 eNeuron', 'L4 eNeuron', 'L2/3 eNeuron', 'L5 eNeuron', names(clusters_cell_types_cortex) = c(1.1, 2.1, 3.1, 4.1, create sign_listcts = data.table::data.table(cluster = names(clusters_cell_types_cortex), cell_types=clusters_cell_types_cortex) scrna_markers = scrna_markers_subclusters[which(scrna_markers_subclusters$comb_rank <= 100)] runPAGEEnrichPAGEsignMatrix <- makeSignMatrixPAGE(sign_names = clusters, sign_list = sign_list) heatmap of enrichment versus annotation (e.g. clustering result)cell_types = colnames(PAGEsignMatrix) cell_types_subset = colnames(PAGEsignMatrix) Step2: Spatial Cell-type DeconvolutionSig_scrna <- unique(scrna_markers_subclusters$genes[which(scrna_markers_subclusters$comb_rank <= 100)]) dwls_signature_matrix <- makeSignMatrixDWLS(gobject = SS_seqfish, SS_seqfish <- runDWLSDeconv(gobject = SS_seqfish, sign_matrix = dwls_signature_matrix) |
Thanks so much for your reply, but do you have a more generalized pipeline for deconvolution? The deconvolution of seqFISH+ datasets seems a special case for simulations and in general, the deconvolution pipeline maybe not be so long like this. For example, I only have the expression profile of scRNA-seq and spatial transcriptomics (wth spots coordinates), and the annotation of scRNA-seq. |
A kind reminder. @XuanCao-CX |
Hi @leihouyeung, I have already run the "runDWLSDeconv" using the data you provided both in issues #170 and #228 and I got the same error. We are currently fixing this bug. I will test your data again when this bug is fixed. Best, Xuan |
thanks so much for your help. If you have any updates, please tell me. |
@XuanCao-CX Hello, any update? |
Hi @leihouyeung, The 'runDWLSDeconv' is available from master branch using you dataset(PDAC_GSM4100721.rds). Attached you will find my notebook running Giotto pipeline using you dataset. Best, |
@XuanCao-CX Thanks for your update. I have tried your code and I have the following issues:
But when I do the leiden clustering and running deconvolution, the error showed like So I want to know your Giotto version. Maybe the version is the main issue.
Thanks so much for your help! |
@XuanCao-CX Kindly reminder. Could you please supply the new R file for runDWLSDeconv_V1 function to me? Thanks. |
Hi @leihouyeung, My Giotto version is from master branch and we have already uploaded function "runDWLSDeconv" in master brunch that you issue was soloved. Best, |
@XuanCao-CX Thanks so much for your update. It works on some of my datasets, but when I apply this on the other datasets, here comes another issue when running runDWLSDeconv: Maybe it is related to the "spatial_enrichment. R" file (line 1572) that |
@XuanCao-CX KIndly reminder |
Hi @leihouyeung , Since the code works for some of your datasets and the error caused in other of your datasets, you can check the your input spatial data and sign_matrix when running runDWLSDeconv. It means that if you have many clusters and small number of genes in sign_matrix so that some of the clusters aren't assigned genes from sign_matrix and this may cause error you got. Best, |
@XuanCao-CX Do you have the quantitive restriction that how many minimum expressed genes should be in each cell type? Because I think it is a general problem for people who want to deconvolve their data with a large number of cell types. For reference, here is the file for sign_matrix. I do not think there are small number of genes in sign_matrix. Please have a check, thanks. |
@XuanCao-CX I have tried to debug your code and regulate the hyper-parameter for deconvolving our Visium datasets which could be deconvolved by the other methods, but unfortunately, it was in vain. Could you help me with debugging your SptialDWLS code for deconvolving our Visium datasets? The datasets are here. Thanks. |
@XuanCao-CX Kindly reminder. |
Hello,
When running runDWLSDeconv, I get the following error
I created the object following the visium mouse brain vignette, and the reference matrix was created with makeSignMatrixDWLS. I am using Giotto_1.0.4. The same reference works for other datasets with similar size and the deconvolution works for this dataset if I use another reference or change the clusters.
I saw that another issue reported the same problem but it was closed without a solution.
Do you know how to fix that problem?
Best,
The text was updated successfully, but these errors were encountered: