alanlhutchison / empirical-JTK_CYCLE-with-asymmetry

This repository contains the code described in Hutchison, Maienschein-Cline, and Chiang et al. (2015) Improved statistical methods enable greater sensitivity in rhythm detection for genome-wide data. PLoS Comput Biol 11(3): e1004094. doi:10.1371/journal.pcbi.1004094
MIT License
5 stars 7 forks source link

Error with all zero columns #3

Closed aleccrowell closed 8 years ago

aleccrowell commented 8 years ago

I just wanted to make you aware of a slightly cryptic error I was receiving. I was able to figure it out as it seems to be produced by rows which contain all zeros in the input file which is very easy to rectify once you know what's going on as these obviously aren't of interest anyway. The error message is:

Traceback (most recent call last): File "/Users/user4574/empirical-JTK_CYCLE-with-asymmetry/eJTK-CalcP.py", line 132, in <module> main(args) File "/Users/user4574/empirical-JTK_CYCLE-with-asymmetry/eJTK-CalcP.py", line 31, in main fn_out,fn_null_out = eJTK.main(args) File "/Users/user4574/empirical-JTK_CYCLE-with-asymmetry/bin/eJTK.py", line 85, in main best = a_get_best_match(serie,waveform,triples,dref,new_header) File "accessories.pyx", line 119, in accessories.get_best_match (accessories.c:3618) r = pick_best_match(res) File "accessories.pyx", line 96, in accessories.pick_best_match (accessories.c:2924) phasemask = (min(phases)==phases) ValueError: min() arg is an empty sequence

Anyways thanks for a great tool.

alanlhutchison commented 8 years ago

Hi alecrowell,

Thanks for reminding me of this issue. I believe I have fixed it, so hopefully it doesn't bother you or anyone again.