Entering edit mode
4.2 years ago
fouerghi20
▴
80
I am trying to run the PHATE function on the counts matrix I extracted from the Seurat object. After running it and obtaining a PHATE object, I try to run cluster_phate on that object, but I always get this error: Error: object of type 'closure' is not subsettable
This is the code I write which is pretty simple and straightforward:
tumor <-GetAssayData(tumor_mel, slot="counts")
tumor_PHATE <-phate(tumor)
cluster_phate(tumor_PHATE)
The error shows up when I run cluster_phate(). Any help is appreciated!
Still looking for answers/help as the error is still showing up!
This occurs when you try to use indexing on a function. What actually is
tumor_PHATE
? Regardless, the github repo for this tool is likely a better place for such questions.Hi Jared,
tumor_PHATE is the variable that holds the result of running the function phate() on the counts matrix.
Are you sure the
phate(tumor)
line ran successfully? What is the output ofsummary(tumor_PHATE)
?Hi RamRS,
Yes, it returns this:
Yes, but what is it? What does running
typeof()
&class()
on it return? Is it a dataframe, a custom class, etc?the typeof() is "list" and class is "phate" "list"
^ still looking for answers!
I will again recommend you open an issue in PHATE's github repo. The devs may have some insight as to what's wrong, my guess is that your input is somehow resulting in some weirdness with the PHATE internals that doesn't result in an error, but returns an object that's unexpected.
Thank you so much Jared.