Get imputed contact mapο
The RWR algorithm is a variant of the traditional random walk technique. It is designed to explore the graph by randomly walking through its nodes, with the added feature that at each step, there is a probability the walk will βrestartβ and return to a predefined starting node. We implement this algorithm, as referenced in previous research, for the interpolation of single-cell 3D genome data.
First, we construct a probability transition matrix by normalizing the single-cell contact matrix (A) such that each row sums to 1. The walk restarts at the starting node with a probability \(π\), and with the probability \(1βπ\), it proceeds to a neighboring node. The goal is to find the steady-state Ο which represents the matrix given the restart probability \(π\). The RWR is solved iteratively through the following steps:
Initialization: Start with an initial probability vector \(π0 = A\).
Iteration: Update π using the formula: \(ππ‘+1 = (1βπ)π ππ‘ + πA\). \(P\) is XXX.
Convergence: Repeat the iteration until Ο converges, when \(|| ππ‘+1 - ππ‘ ||< 10^{-6}\).
Upon completion of the iterations, we obtain ππ‘+1 which serves as the imputated single-cell contact matrix.
stark impute --mcool-path/absolute/path/to/data/gini/dipC_GSE117874_hum \
--resolution 1000000 \
--output/absolute/path/to/result/impute \
--nthread 2
The result like this: