champ.runCombat is failing: "invalid 'row.names' length"
0
0
Entering edit mode
Gurkenkönig ▴ 10
@gurkenkonig-16328
Last seen 5.8 years ago

I have read in an existing matrix of 450K beta values with champ.filter and linked it to a dataframe of covariates. So far everything worked perfectly (champ.QC, champ.norm, champ.SVD) only in champ.runCombat I always get the same error message.

[===========================]
[<< CHAMP.RUNCOMBAT START >>]
-----------------------------
<< Preparing files for ComBat >>
[Combat correction will be proceed with 414206 probes and 373 samples.]

Error in `.rowNamesDF<-`(x, value = value) : invalid 'row.names' length

Can anyone give me a hint what could be the problem? When checking the covariates and the beta matrix I can't see any problems at the first glance.

champ • 4.1k views
ADD COMMENT
0
Entering edit mode

Hello:

Could you show send your pd file (Sample_Sheet.csv) to me to check what's wrong with it? To email champ450K@gmail.com.

Best

Yuan Tian

ADD REPLY
0
Entering edit mode

By the way, could you please check if the batch varaible (say Slides) in your pd is "Character" or "Factor" format? I found that some users' "Slides" column is numeric, which might triggle this error.

To check the format, use code: class(pd[,X]).

If it's numeric, to change the format, use code: pd[,X] = as.character(pd[,X])

Then you may retry the code.

Best

Yuan Tian

ADD REPLY
0
Entering edit mode

I am also getting the same error message and my Slide column is in character format already.

Any ideas what else may cause this error message?

There are 16 samples in my pd and in myNorm. Everything appears to be correct.

ADD REPLY
0
Entering edit mode

I am also getting the same error message and my Slide column is in character format already.

Any ideas what else may cause this error message?

There are 16 samples in my pd and in myNorm. Everything appears to be correct.

ADD REPLY
0
Entering edit mode

I am having the same error when I am trying to run the test data follwoing the online documentation.

Running champ.runCombat()...
[===========================]
[<< CHAMP.RUNCOMBAT START >>]
-----------------------------
<< Preparing files for ComBat >>
[Combat correction will be proceed with 403116 probes and 8 samples.]

Error in `.rowNamesDF<-`(x, value = value) : invalid 'row.names' length

Is there a solution for this yet?

Best,

R.

ADD REPLY
1
Entering edit mode

Hi:

I just tested, you are right it's not working now. I guess it's because some function/package gets updated, that the ChAMP code needs to be updated.

I will fix it ASAP.

Best Tian

ADD REPLY
0
Entering edit mode

It would be very valuable to add examples or unit tests that exercise this (and other) aspects of the package, so that failures appear in the nightly build report (http://bioconductor.org/checkResults/release/bioc-LATEST/ChAMP/) and can be fixed by the maintainer proactively.

ADD REPLY
1
Entering edit mode

Hi Martin:

Thanks for your suggestion. In past years I am just patching one and another on the package, now I think it's a good idea to start to revise it completely, using some better new packages like datatable, plumber and your suggested unit_test.There are many aspects could be improved compared with 4 years ago.

Best Tian

ADD REPLY
1
Entering edit mode

Hi:

I have fixed the bug, it should be online in 48 hours, also, you can copy from my github to install it now.

Best Tian

ADD REPLY

Login before adding your answer.

Traffic: 589 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