Skip to content
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 in wilcox.test #23

Open
thineskrishna opened this issue Nov 25, 2023 · 1 comment
Open

Error in wilcox.test #23

thineskrishna opened this issue Nov 25, 2023 · 1 comment

Comments

@thineskrishna
Copy link

Hi Thank you for creating this tool.

I come across the following error and any advice is appreciated

SpaCET_obj <- SpaCET.deconvolution(SpaCET_obj, cancerType="PRAD", coreNo=8)
[1] "Stage 1. Infer malignant cell fraction."
[1] "Stage 1 - Step 1. Clustering."
[1] "Stage 1 - Step 2. Find tumor clusters."
Error in wilcox.test.default(cor_sig_clustering[, 1], mu = 0, alternative = "greater") :
not enough (non-missing) 'x' observations
In addition: Warning message:
In sqrt(n - 2) : NaNs produced

I have included link to my SpaCET_obj for your reference
https://drive.google.com/file/d/1kMSlQC8FZ1vcd1G2AJkNlUa91hwtxdCp/view?usp=drive_link

Many thanks

@beibeiru
Copy link
Collaborator

Hi, @thineskrishna

Thank you for your interest in SpaCET.

The error is caused by the existence of a few low-quality spots (no gene detected in these spots) in your input ST data.
You can use SpaCET.quality.control to filter spots first, which is shown below.

> load("SpaCET_obj.RData")
> SpaCET_obj <- SpaCET.quality.control(SpaCET_obj)
[1] "19 spots are removed."
[1] "2756 spots are kept."
> SpaCET_obj <- SpaCET.deconvolution(SpaCET_obj, cancerType="PRAD", coreNo=8)
[1] "Stage 1. Infer malignant cell fraction."
[1] "Stage 1 - Step 1. Clustering."
[1] "Stage 1 - Step 2. Find tumor clusters."
[1] "                  > Use CNA signature: PRAD"
[1] "Stage 1 - Step 3. Infer malignant cells."
[1] "Stage 2. Hierarchically deconvolve non-malignant cell fraction."
[1] "Stage 2 - Level 1. Estimate the major lineage."
[1] "Stage 2 - Level 2. Estimate the sub lineage."

Please let me know if you have any further questions.

Best,
Beibei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants