cool2matrix assumes that the number of chromosomes of your sample is equal to that of the human genome and the order is numerically ascending.
https://github.com/TaoYang-dev/hicrep/blob/e485dfa71dc98cadbbda70424084e85a4a94e3b0/R/cool2matrix.R#L26-L43
However, there is no description about the assumption in the ?cool2matrix document.
Workaround is using a numerical index of your target chromosome at chr argument of cool2matrix to avoid conversion based on the assumption.
cool2matrix
assumes that the number of chromosomes of your sample is equal to that of the human genome and the order is numerically ascending. https://github.com/TaoYang-dev/hicrep/blob/e485dfa71dc98cadbbda70424084e85a4a94e3b0/R/cool2matrix.R#L26-L43 However, there is no description about the assumption in the?cool2matrix
document. Workaround is using a numerical index of your target chromosome atchr
argument ofcool2matrix
to avoid conversion based on the assumption.