You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you use the latest HiCExplorer release? If not, please install it via a conda environment: conda create --name hicexplorer hicexplorer=3.6 python=3.8 -c bioconda -c conda-forge
and activate the environment: conda activate hicexplorer. Retry your command. You can exit a conda environment via conda deactivate. To learn more about conda and environments, please consider the following documentation.
Retry your command, is it solved now? If not please continue with the following:
Paste the full HiCExplorer command that produces the issue below
(ignore if you simply spotted the issue in the code/documentation).
Paste the output printed on screen from the command that produces the issue
below (ignore if you simply spotted the issue in the code/documentation).
Description
There is an inconsistency in the way distances and occurrences are handled in the expected_interactionsobs_exp_matrix functions in utilities.py. Specifically, the obs_exp_matrix function divides the distance by 2, while the expected_interactions function does not account for the symmetry of the Hi-C matrix in its occurrences calculation.
Expected Behavior
The distance calculation and occurrences should be consistent across both functions. The occurrences should account for the symmetry of the Hi-C matrix, except for the main diagonal.
Actual Behavior
The obs_exp_matrix function divides the distance by 2.
Line 578 in utilities.py:
Search whether this issue (or a similar issue) has been solved before using the search tab above. Link the previous issue if appropriate below.
Paste your HiCExplorer version (
hicInfo --version
) and your python version (python --version
) below.Have you checked our documentation on hicexplorer.readthedocs.io?
Do you use conda to install HiCExplorer?
Do you use the latest HiCExplorer release? If not, please install it via a conda environment:
conda create --name hicexplorer hicexplorer=3.6 python=3.8 -c bioconda -c conda-forge
and activate the environment:
conda activate hicexplorer
. Retry your command. You can exit a conda environment viaconda deactivate
. To learn more about conda and environments, please consider the following documentation.Retry your command, is it solved now? If not please continue with the following:
Paste the full HiCExplorer command that produces the issue below
(ignore if you simply spotted the issue in the code/documentation).
Paste the output printed on screen from the command that produces the issue
below (ignore if you simply spotted the issue in the code/documentation).
Description
There is an inconsistency in the way distances and occurrences are handled in the
expected_interactions
obs_exp_matrix
functions in utilities.py. Specifically, theobs_exp_matrix
function divides the distance by 2, while theexpected_interactions
function does not account for the symmetry of the Hi-C matrix in its occurrences calculation.Expected Behavior
The distance calculation and occurrences should be consistent across both functions. The occurrences should account for the symmetry of the Hi-C matrix, except for the main diagonal.
Actual Behavior
obs_exp_matrix
function divides the distance by 2.Line 578 in utilities.py:
expected_interactions
function does not account for the symmetry of the Hi-C matrix in its occurrences calculation.Line 364 in utilities.py:
I'm concerned about this implementation but unsure if my concerns are valid. I look forward to your response. Thank you!
The text was updated successfully, but these errors were encountered: