open2c / coolpuppy

A versatile tool to perform pile-up analysis on Hi-C data in .cool format.
MIT License
77 stars 11 forks source link

[Q]ValueError: Too few columns #134

Closed jiangshan529 closed 10 months ago

jiangshan529 commented 1 year ago

Hi, dear authors of coolpup,

I am using coolpup to draw a local pileup of a bed file(three columns seperated by tab). However, it reports the error"ValueError: Too few columns". How should I deal with that? The version of coolpup is 1.1.0. The full error message is as below:

coolpup.py WT_merge_5k.cool aa.bed1 --outname cc4.txt --flank 250000 --local --n_proc 16 --clr_weight_name "" /home/unix/bai/.conda/envs/coolpuppy/lib/python3.9/site-packages/cooltools/lib/numutils.py:652: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details. def iterative_correction_symmetric( /home/unix/bai/.conda/envs/coolpuppy/lib/python3.9/site-packages/cooltools/lib/numutils.py:727: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details. def iterative_correction_asymmetric(x, max_iter=1000, tol=1e-5, verbose=False): Traceback (most recent call last): File "/home/unix/bai/.conda/envs/coolpuppy/bin/coolpup.py", line 8, in sys.exit(main()) File "/home/unix/bai/.conda/envs/coolpuppy/lib/python3.9/site-packages/coolpuppy/CLI.py", line 434, in main raise ValueError("Too few columns") ValueError: Too few columns

Phlya commented 1 year ago

Try specifying --features-format bed Or you can rename the file, so that extension is .bed.

Phlya commented 10 months ago

I assume this is fixed, feel free to reopen.