Seurat -FindVariableGenes problem
1
0
Entering edit mode
5.7 years ago
hsu ▴ 40

I am using Seurat to find variable genes , my code is :

f <- FindVariableGenes(object = f, mean.function = ExpMean, dispersion.function = LogVMR, x.low.cutoff = 0, x.high.cutoff = 3, y.cutoff = 0.5)

And I got this error:

Calculating gene means
0%   10   20   30   40   50   60   70   80   90   100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
Calculating gene variance to mean ratios
0%   10   20   30   40   50   60   70   80   90   100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
Error in seq.int(rx[1L], rx[2L], length.out = nb) : 
  'to' must be a finite number

Can anyone help me solve this error? Thanks a lot.

software error Seurat FindVariableGenes • 4.3k views
ADD COMMENT
0
Entering edit mode

Examples of relevant tags for this question would be Seurat and FindVariableGenes. software error is so generic that the tag has lost all meaning. It's a relevant tag here, but you would benefit from adding more relevant tags, especially the tool name as a lot of people filter by tool name to answer questions.

I've added these tags for you now. The Contact page for Seurat also says:

Please e-mail seuratpackage@gmail.com with any questions about the software. For technical issues, if possible, please include an input file and R markdown instructions for reproducing the problem.

Maybe you could try that also and post here if you get a solution to this problem?

ADD REPLY
0
Entering edit mode

This may or may not be causing the error, but x.low.cutoff (bottom cutoff on x-axis for identifying variable genes) should probably be higher than 0.

ADD REPLY
0
Entering edit mode
5.7 years ago
hsu ▴ 40

Make sure you run NormalizeData prior to running FindVariableGenes. Not doing so can cause this error in some cases.

I solved this problem by doing so.

ADD COMMENT
0
Entering edit mode

Yes. Follow the instructions in the tutorial. There are a lot of steps and they have a specific order.

ADD REPLY

Login before adding your answer.

Traffic: 1941 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6