remove_centromere {HiCcompare} | R Documentation |
Function to remove centromere columns and rows from a full Hi-C contact matrix
remove_centromere(mat)
mat |
A full Hi-C matrix |
A list of (1) the column/row numbers of the centromere and (2) the Hi-c matrix with the centromere removed
m <- matrix(rpois(100, 5), 10, 10) m[5,] <- 0 m[,5] <- 0 remove_centromere(m)