-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hic-mrheatmap - Segmentation fault #6
Comments
Are you using the latest version, the development version, or an older one? |
commit 3aeed74 |
Also, is this data produced using a restriction fragment fend file, a binned restriction fragment fend file, or a binned fend file? |
I am using a restriction fragment fend file. fends are quite small since we used DpnII. |
Okay, give me a little bit to see if I can reproduce the error on my end. Unfortunately segmentation errors are a pain to track down. |
I've uploaded a fix for this error. Please let me know if this solves the issue or if you continue to have problems. Thanks |
Finding multi-resolution heatmap for 1 by 10... Done Seems to work, thx a lot! |
For a number of trans combinations it works now but it fails for others. Particular the smaller chromosomes/scaffolds seemed to be affected. [21071139.394452] hifive[9749]: segfault at 928a500 ip 00007f97723b2da6 sp 00007ffde78bd7e0 error 4 in _hic_binning.so[7f9772380000+54000] |
I suspect what is happening is that there is no data for those chromosome combinations (or at least insufficient data). I will have to address this, but for now I would suggest two things. First, could you run the command "python -c 'import hifive; hic=hifive.HiC('YOUR_PROJECT'); data=hic.trans_heatmap(CHR1, CHR2, binsize=100000);" and see whether it returns a warning, where CHR1 and CHR2 is a pair of chromosomes that MRHeatmap fails with? Second, until this is solved I suggest just passing a list of chromosomes to HiFive only including major chromosomes, unless you need the smaller ones. However if it is a lack of data, there is little to be done for the trans interactions. I will work on the error, though, to make sure that it does not cause a program crash. |
I tested it for the combination that failed previously: python -c 'import hifive; hic=hifive.HiC("contigs.nrm.project"); data=hic.trans_heatmap("SCF_7", "SCF_10", binsize=10000)' Finding enrichment array for SCF_7:0-140000 by SCF_10:0-420000... Finding mean signals across trans interactions... Done Unfortunately, I need the smaller ones since I am trying to find a scaffold that is linked to existing chromosomes but was previously not mapped to it. |
Could it be that it is a simple quotation problem? python -c 'import hifive; hic=hifive.HiC("contigs.nrm.project"); data=hic.trans_heatmap('SCF_7', 'SCF_10', binsize=10000)' File "", line 1, in or python -c 'import hifive; hic=hifive.HiC("contigs.nrm.project"); data=hic.trans_heatmap('12', 'SCF_10', binsize=10000)' Traceback (most recent call last): |
I will get this fixed, but it will probably be a few days. In the meantime, On Tue, Oct 18, 2016 at 10:07 AM, Felix Bemm [email protected]
|
I agree that those two errors are the result of mixing and matching single On Tue, Oct 18, 2016 at 10:10 AM, Felix Bemm [email protected]
|
I am trying to fetch mrh data (especially trans interactions) from a normalized project. As soon as I specify more than one chromosome/scaffold hic-mrheatmap often gives me a segmentation fault. The behavior is not the same across all possible combinations of chromosomes/scaffolds. For some it returns a mrh for others it dies with
Finding multi-resolution heatmap for 12 by SCF_7...Segmentation fault
[21071391.448646] hifive[12069]: segfault at 880240c8 ip 00007f1c13e2ada6 sp 00007ffff75859f0 error 4 in _hic_binning.so[7f1c13df8000+54000]
Any idea where to start looking?
The text was updated successfully, but these errors were encountered: