MAnorm error in script
1
0
Entering edit mode
7.4 years ago
#### ▴ 220

I am using MAnorm for differential peak analysis and while running MAnorm.r I am getting following Error:

Ops.data.frame((common_peak_count_read1 + 1), (common_peak_count_read2 + : ‘/’ only defined for equally-sized data frames Execution halted

when I looked into the source code the error is output of following command :

M<-log2((common_peak_count_read1+1)/(common_peak_count_read2+1))

I am not sure what is meant by equally-sized data frames here? Any suggestions on this ?

ChIP-Seq • 2.0k views
ADD COMMENT
0
Entering edit mode

This is an R script, not a shell script. Your code looks like a custom function, but the error could mean that the custom function can only operate on data frames that have an equal number of rows and columns. You're going to have to dig deeper to find why your input does not generate those equally sized data frames.

ADD REPLY
1
Entering edit mode
7.4 years ago

Hi,

I got the same error. It appears to be due to a change in bedtools coverage from May 2015 (see the note marked "important" in the bedtools coverage page: http://bedtools.readthedocs.io/en/latest/content/tools/coverage.html)

To fix this, you should edit the MAnorm.sh code, look for all the lines beginning with "coverageBed" and replace one input file with the other.

For example:

coverageBed -a read1.bed -b unique_peak1.bed

should be changed to:

coverageBed -b read1.bed -a unique_peak1.bed

Good luck!

ADD COMMENT

Login before adding your answer.

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