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
Welcome to the HiCExplorer GitHub repository! Before opening the issue please check
that the following requirements are met :
Search whether this issue (or a similar issue) has been solved before using the search tab above. Link the previous issue if appropriate below.
Maybe on TODO already? The TODO bullet references this issue.
Paste your HiCExplorer version (hicInfo --version) and your python version (python --version) below.
DEBUG:h5py._conv:Creating converter from 7 to 5
DEBUG:h5py._conv:Creating converter from 5 to 7
DEBUG:h5py._conv:Creating converter from 7 to 5
DEBUG:h5py._conv:Creating converter from 5 to 7
hicInfo 3.7-dev
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).
parallel --header : --colsep " " -k -j "${parallel}" \
"hicAdjustMatrix \
--matrix {infile} \
--outFileName {outfile} \
--chromosomes chr1 chr2 chr3 chr4 chr5 chr6 chr7 chr8 chr9 chr10 chr11 chr12 chr13 chr14 chr15 chr16 chr17 chr18 chr19 chr20 chr21 chr22 chrX \
--interIntraHandling {intra_inter}" \
:::: "${list}"
# have tested with {intra_inter} as either "inter" or "intra"
#+ {infile} is, for example, cool2cool_balance_cardioPooled_D0_500000_downsampled_pooled_cis.0.78.cool
#+ {outfile} is, for example, cool2cool_balance_cardioPooled_D0_500000_downsampled_pooled_cis.0.78.sans-inter.cool
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).
Example hicInfo readout for infile, cool2cool_balance_cardioPooled_D0_500000_downsampled_pooled_cis.0.78.cool
# fwiw, I have excluded chrM and chrY in the conversion from infile to outfile...
Wanted behavior: Retention of column 'weight' in outfile (and/or an option to retain or discard the column) Actual behavior: Loss of column 'weight' in outfile
Note: Thank you for implementing an option to exclude to cis or trans contacts via hicAdjustMatrix. This makes different kinds of Hi-C analyses easier to do. If possible, I think it would be useful to have the ability to retain the weights from balanced matrices (i.e., matrices previously comprised of both cis and trans contacts). For now, I would like to avoid re-balancing with cis or trans contacts only. I can imagine that this option would be useful for adjusted matrices comprised of subsets of chromosomes, including both cis and trans contacts.
The text was updated successfully, but these errors were encountered:
Hi, I've looked into this a bit more and it appears that, in the process of using hicAdjustMatrix, unbalanced counts are replaced by the balanced counts, hence the loss of the column 'weight'. This is clear in the attached images.
I think this behavior is fine for my use cases (although I'm not sure about other researchers).
The issue is a bit of a historical one now; the h5 files never stored the correction factors and raw values separately, therefore in many parts of the source code, including in hicAdjustMatrix, we have not changed this behavior for the cool files. As long as the users stay within HiCExplorer, it should also not matter. However, I think it is not too difficult to change the behavior; we just need to implement it. Maybe in the next 3.8 release, but given the time I have to implement new features, I cannot promise a 3.8 release will be published this year.
Welcome to the HiCExplorer GitHub repository! Before opening the issue please check
that the following requirements are met :
Maybe on
TODO
already? TheTODO
bullet references this issue.hicInfo --version
) and your python version (python --version
) below.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:
(ignore if you simply spotted the issue in the code/documentation).
below (ignore if you simply spotted the issue in the code/documentation).
Example
hicInfo
readout for infile,cool2cool_balance_cardioPooled_D0_500000_downsampled_pooled_cis.0.78.cool
Example
hicInfo
readout for outfile,cool2cool_balance_cardioPooled_D0_500000_downsampled_pooled_cis.0.78.sans-inter.cool
(i.e., retain cis contacts only)Wanted behavior: Retention of column 'weight' in outfile (and/or an option to retain or discard the column)
Actual behavior: Loss of column 'weight' in outfile
Note: Thank you for implementing an option to exclude to cis or trans contacts via
hicAdjustMatrix
. This makes different kinds of Hi-C analyses easier to do. If possible, I think it would be useful to have the ability to retain the weights from balanced matrices (i.e., matrices previously comprised of both cis and trans contacts). For now, I would like to avoid re-balancing with cis or trans contacts only. I can imagine that this option would be useful for adjusted matrices comprised of subsets of chromosomes, including both cis and trans contacts.The text was updated successfully, but these errors were encountered: