<p>You're trying to cbind two matrices of different sizes, so computeMatrix is throwing an error since it's unclear which row goes with which. You need to ensure that matrices have exactly the same number of rows and that the Nth row in each match (i.e., they should be bound together with cbind).</p>

CC BY-SA 4.0
2020-05-03T20:20:47.587Z
2020-05-03T20:20:47.587Z
Devon Ryan
<p>I have several matrix from computematrix of deeptools. I need to merge two of them using "computeMatrixOperations cbind -m input1.mat.gz input2.mat.gz -o output.mat.gz"
but I am running to error "/computeMatrixOperations.py", line 521, in cbindMatrices
    hm.matrix.matrix = np.hstack((hm.matrix.matrix, np.empty(hm2.matrix.matrix.shape)))"</p>

<p>Is there any other way to merge the matrixes? </p>

CC BY-SA 4.0
2020-05-03T07:43:26.077Z
Please post the full error message, not just a single line.
Devon Ryan
CC BY-SA 4.0
2020-05-03T20:17:32.447Z
Thanks, here is the error: https://www.dropbox.com/s/zudmn4lwo3yikw6/Capture.JPG?dl=0
Mariam
<phylogenetics><ngs><chip-seq><deeptools>
merge the matrix from computematrix of deeptools
# merge the matrix from computematrix of deeptools

(Asked by: username_0 on 2020-05-03)

I have several matrix from computematrix of deeptools. I need to merge two of them using "computeMatrixOperations cbind -m input1.mat.gz input2.mat.gz -o output.mat.gz"
but I am running to error "/computeMatrixOperations.py", line 521, in cbindMatrices
hm.matrix.matrix = np.hstack((hm.matrix.matrix, np.empty(hm2.matrix.matrix.shape)))"

Is there any other way to merge the matrixes?

**Tags:** phylogenetics, ngs, chip-seq, deeptools
> **Comments:**
> **username_1**: Please post the full error message, not just a single line.  
> **username_0**: Thanks, here is the error: https://www.dropbox.com/s/zudmn4lwo3yikw6/Capture.JPG?dl=0  

---

## 1 answers

### Answer by username_1 on 2020-05-03. Score: 1

You're trying to cbind two matrices of different sizes, so computeMatrix is throwing an error since it's unclear which row goes with which. You need to ensure that matrices have exactly the same number of rows and that the Nth row in each match (i.e., they should be bound together with cbind).


---

