Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions eigenMT.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ def bf_eigen_windows(test_dict, gen_dict, phepos_dict, OUT_fh, input_header, var
OUT = open(OUT_fh, 'w')
OUT.write(input_header + '\tBF\tTESTS\n')

if len(test_dict) == 0:
print >>sys.stderr, 'No QTLs on the selected chromosome.'
sys.stderr.flush()
return

counter = 1.0
genes = test_dict.keys()
numgenes = len(genes)
Expand Down