Flexible, user-friendly genomic data visualization toolkit.
More details please read the documentation. Interactively online demo: binder
See CONTRIBUTING.md
@article{xu2021coolbox,
title={CoolBox: A flexible toolkit for visual analysis of genomics data},
author={Xu, Weize and Zhong, Quan and Lin, Da and Zuo, Ya and Dai, Jinxia and Li, Guoliang and Cao, Gang},
journal={BMC bioinformatics},
volume={22},
number={1},
pages={1--9},
year={2021},
publisher={Springer}
}
This project exists thanks to all the people who contribute.
Hi! Is it possible to do the joint_center using two different cool file? To show the difference between the 2 contact maps?
Can it be used on the MacOS M1 version?
Thanks
It got the following error:
Hi, the fontsize of the gene names in the GTF in the jointview is quite small relative to the HI-C matrix. Is there anyway this can be customized?
Hi, I am plotting a jointview. However, I am plotting many fewer base pairs on the X axis than on the Y axis. How do I modify the aspect ratio to make each pixel square and the whole plot rectangular? Right now it is making the whole plot rectangular by stretching the matrix
Hi there, thanks for such a useful package.
I have encountered a bug when I try to plot a SNP track containing no SNPs in the plotted region.
If I am working with a TSV file:
chr4 15730398 1.6493369536091678e-05
chr4 15730146 1.6493369536091678e-05
chr4 15737348 1.3897495444980216e-05
chr4 15737101 1.3897495444980216e-05
And I try to plot a track like this:
``` import coolbox from coolbox.api import *
snp_path = 'data.snp.bgz'
test_range_error = 'chr4:15720000-15728000'
frame = XAxis() + SNP(snp_path, col_chrom=0, col_pos=1, col_pval=2) frame.plot(test_range_error) ```
Then I get the error:
```
[ERROR:frame.py:215 - plot()] Error occured when plot track:
track name: SNP.14
track type:
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/conda/lib/python3.8/site-packages/coolbox/core/frame/frame.py", line 209, in plot track.plot(ax, copy(gr), gr2=copy(gr2)) File "/opt/conda/lib/python3.8/site-packages/coolbox/core/track/hist/base.py", line 101, in plot data = self.fetch_plot_data(gr, **kwargs) File "/opt/conda/lib/python3.8/site-packages/coolbox/core/track/hist/snp.py", line 75, in fetch_plot_data df['score'] = self.transform_fn()(df['score']) File "/opt/conda/lib/python3.8/site-packages/pandas/core/frame.py", line 3024, in getitem indexer = self.columns.get_loc(key) File "/opt/conda/lib/python3.8/site-packages/pandas/core/indexes/base.py", line 3082, in get_loc raise KeyError(key) from err KeyError: 'score' ```
Ideally, plotting a range containing no SNPs would just return an empty track?
Hi! When plotting arcs for BEDPE
file format, if the first coordinate comes after the second coordinate (i.e. start_x > start_y
), the arc is not drawn. I have fixed this issue by swapping the first coordinate with the second coordinate (see figure where the first track after the gene track shows some features, the second track is how it looks after my fix, and the third track is before the fix where some arcs are missing).
Is there some other more elegant fixes?
By the way, I am using coolbox
version 0.3.3
. I quickly checked the source of the latest version (i.e. 0.3.8
) but I did not immediately find any indication that this is addressed in the latest version (but of course I may have missed it 🙂).
Thank you in advance for your consideration and response! 🙂