This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error in quantro function

Hi,

I am using the function "quantro" (library R-quantro) to test the distribution of beta values among cases and controls to assess if it is necessary perform the quantile normalization. Test data provided in the vignette worked, but when I try with my data I get this error:

qtest <- quantro(object = MetDataset, groupFactor = Status$Status)
[quantro] All median values equal. No ANOVA performed. 
                    No median normalization.
[quantro] Calculating the quantro test statistic.
Error in Fnik[, which(groupFactor %in% x)] : 
  incorrect number of dimensions

Anyone did struggle with this? In the beginning I thought it was just an error of the number of cases/controls in the groupFactor object, but it unfortunately it wasn't.

Thanks

SP

normalization quantro methylation

1 answer

Late response, but I just got the same error.

You have to remove rows containing NaNs

Try:

qtest <- quantro(object = MetDataset[complete.cases(MetDataset),], groupFactor = Status$Status)

Log in to answer this question.