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 mean.var.plot #1

Closed
roryk opened this issue Oct 21, 2015 · 7 comments
Closed

error in mean.var.plot #1

roryk opened this issue Oct 21, 2015 · 7 comments

Comments

@roryk
Copy link

roryk commented Oct 21, 2015

Hi everyone,

I have an error when I run mean.var.plot:

nbt = mean.var.plot(nbt, y.cutoff=2, x.low.cutoff=2, fxn.x=expMean,  fxn.y=logVarDivMean)

Error in seq.int(rx[1L], rx[2L], length.out = nb) : 'to' must be finite

I stuck a link up on Dropbox to a nbt object that is causing the problem.

https://dl.dropboxusercontent.com/u/2822886/nbt.RData

I'm rubbish at debugging problems in S4 objects-- any ideas about what is wrong?

@roryk
Copy link
Author

roryk commented Oct 21, 2015

Figured out my issue. Thanks!

@roryk roryk closed this as completed Oct 21, 2015
@carmensandoval
Copy link

HI Roryk,

I'm having the same problem... what solved it for you in the end?

@roryk
Copy link
Author

roryk commented Dec 1, 2015

Sorry @carmensandoval, I forget exactly what it was but it was some problem with my data though not the function. I think I had not logged the data before making the Seurat object.

@azimmunivar
Copy link

I'm also having an issue with this. Did anyone get to the bottom of it?

@roryk
Copy link
Author

roryk commented May 3, 2016

@azimmunivar I forgot to log the data which caused the issue. Did you do that?

@marong0511
Copy link

@roryk I am also having an issue with this. Did you deal with UMI data? I did normalize data before running this.
I found when I scaledata with a linear model (default setting), everything goes well. But when I used 'negbinom' model to deal with UMI data, it goes wrong in Findvariablegenes with the same error you mentioned before.

@lihong1github
Copy link

I found the solution to this issue. If you normalize the data first using the "NormalizeData" function as shown below, it will fix this error.

seurat.object <- NormalizeData(
object = seurat.object,
normalization.method = "LogNormalize",
scale.factor = 10000)

mojaveazure pushed a commit that referenced this issue Nov 26, 2018
fixing gzip warning and adding a message
andrewwbutler pushed a commit that referenced this issue May 30, 2019
Make sure refdata in TransferData() is sparse
andrewwbutler pushed a commit that referenced this issue Jan 22, 2020
Changes to correct passing weights for Leiden
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

5 participants