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
Difficult error message - bug or documentation issue? or problem on my object? #332
Comments
Does this still happen if you increase I wouldn't recommend running this function with a very low |
Yes, it does happen. I just dropped n_sample to run it quick. However, I have here a seurat object with which this this function works and another with which it doesn't. Difference is that the one that does not work is subset of the one that works. Works: Doesn't work: |
How many cells are in the subset data? |
869 in subset, 3577 in original |
If you're able to share the subset object that recreates this error I can look into it further. You can email a download link to the object to tstuart@nygenome.org |
Yes, done. |
You can also directly email to Sami.Kilpinen@helsinki.fi |
This error was due to incorrect feature metadata being stored, which could happen if you run FindTopFeatures and then subset the object. This would cause the total counts for each peak to change, since cells are removed. Since LinkPeaks decides which peaks to use based on total accessibility, this cause problems where it was choosing peaks that actually had zero total counts in the dataset. I've pushed a fix to the develop branch that solves this issue by re-computing the feature metadata when an object is subset. You should be able to run: devtools::install_github("timoast/signac", ref = "develop")
library(Signac)
obj <- FindTopFeatures(obj, min.cutoff = NA) # re-compute feature metadata
obj <- LinkPeaks(obj, ...) |
Yes, I confirm that this solved the issue. Thanks. |
Hi,
I wonder is there bug in the Signac code or in data objects, but I get following error:
This is really hard to traceback why this error happens? Where exactly it finds Na where logical is needed? That seurat.object is otherwise working fine. And error is not dependent on that gene amount, I just dropped it to very small to quickly confirm repeat of this problem.
The text was updated successfully, but these errors were encountered: