nvictus on master
[pre-commit.ci] pre-commit auto… Merge pull request #312 from op… (compare)
pre-commit-ci[bot] on pre-commit-ci-update-config
Bump actions/setup-python from … Add flake8-pyproject to pre-com… Merge pull request #304 from op… and 36 more (compare)
nvictus on v0.9.1
nvictus on master
Patch version bump (compare)
nvictus on master
Keep private export for cooltoo… (compare)
nvictus on master
Replace another cached badge (compare)
nvictus on master
Update readme (compare)
nvictus on master
Update license metadata to text… Change pypi badge to prevent ca… (compare)
nvictus on v0.9.0
nvictus on master
Fix pypi workflow (compare)
nvictus on v0.9.0
nvictus on v0.9.0
nvictus on master
Fix eol (compare)
nvictus on master
Prepare for release (compare)
cooler dump --annotate weight
Nezar, I tried do cooler balance and then cooler dump, then I thought weights should be there in my cool file, but I still get this error through python API
matb = c.matrix(balance=True).fetch('chr5:10,000,000-15,000,000')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "cooler/core.py", line 360, in fetch
File "cooler/api.py", line 311, in _slice
File "cooler/api.py", line 560, in matrix
ValueError: No column 'bins/weight' found. Use cooler.ice
to calculate balancing weights.
Is there any step I am missing?
Also another thing, I tried is cooler show, which again gave me error :(
cooler show --out test.png --dpi 200 HB_Cool.cool chr3:0-80,000,000
Traceback (most recent call last):
File "/usr/bin/cooler", line 9, in <module>
load_entry_point('cooler==0.5.2', 'console_scripts', 'cooler')()
File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in call
return self.main(args, kwargs)
File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(args, kwargs)
File "/home/ankita/4DN/cooler/cooler/cooler/cli/show.py", line 135, in show
'log10' : 'log 10 ( relative contact frequency '}[scale]))
File "/usr/lib64/python2.7/site-packages/matplotlib/pyplot.py", line 1976, in colorbar
ret = gcf().colorbar(mappable, cax = cax, ax=ax, kw)
File "/usr/lib64/python2.7/site-packages/matplotlib/figure.py", line 1387, in colorbar
cb = cbar.colorbar_factory(cax, mappable, kw)
File "/usr/lib64/python2.7/site-packages/matplotlib/colorbar.py", line 1173, in colorbar_factory
cb = Colorbar(cax, mappable, kwargs)
File "/usr/lib64/python2.7/site-packages/matplotlib/colorbar.py", line 854, in init
ColorbarBase.init(self, ax, **kw)
TypeError: init() got an unexpected keyword argument 'label'
h5py
. f = h5py.File('myfile.cool', 'r')
'weight' in f['bins']
cooler show
. I suspect it's related to the matplotlib
version. Could you print the results of pip list
?
So, I am not sure if it is correct to ask but we do these steps
$ cooler makebins $CHROMSIZES_FILE 10000 > bins.10kb.bed
$ cooler cload bins.10kb.bed $CONTACTS_FILE out.cool
As I understood I am getting a cool file which is 10 kb binned. What if I don't want it to be binned and create a cool file ? Does that make sense?
AttributeError Traceback (most recent call last)
<ipython-input-1-8423f6653a05> in <module>()
10
11 where = np.flatnonzero
---> 12 chromsizes = cooler.read_chromsizes('http://s3.amazonaws.com/pkerp/data/mm9/chromInfo.txt') # defaults to reading chr#,X,Y,M
13 chromosomes = list(chromsizes.keys())
14 cumullengths = np.r[0, np.cumsum(chromsizes)]
AttributeError: module 'cooler' has no attribute 'read_chromsizes'
higlass_getter.py
chr10
As I understood I am getting a cool file which is 10 kb binned. What if I don't want it to be binned and create a cool file ? Does that make sense?
So what you are asking for is a binary version of the contact list? Cool files represent contact matrices so by definition they must be binned (i.e. aggregated) some way
cooler digest
can make a fragment-delimited bin file
Hi, I would like to import a bed file in Hi-Glass where it is overlapping intervals of chromosome as following:
id start end mid-point Value
chr1 1 100000 50000 53.696604901
chr1 5001 105000 55000 53.3929395224
chr1 10001 110000 60000 53.393254991
chr1 15001 115000 65000 53.3523366425 ..
as a hitile file. Any suggestion on how should I do this?