[hg] galaxy 2674: Bug fix for 'Fetch closest feature' tool.
details: http://www.bx.psu.edu/hg/galaxy/rev/0a41293e679a changeset: 2674:0a41293e679a user: guru date: Thu Sep 10 17:35:21 2009 -0400 description: Bug fix for 'Fetch closest feature' tool. 1 file(s) affected in this change: tools/new_operations/flanking_features.py diffs (12 lines): diff -r ce8c57840343 -r 0a41293e679a tools/new_operations/flanking_features.py --- a/tools/new_operations/flanking_features.py Thu Sep 10 17:31:05 2009 -0400 +++ b/tools/new_operations/flanking_features.py Thu Sep 10 17:35:21 2009 -0400 @@ -129,7 +129,7 @@ map(outfields.append, result_down[-1].other) #The last element of result_down will be the closest element to the given interval elif result_up: map(outfields.append, result_up[res_ind].other) - else: + elif result_down: map(outfields.append, result_down[-1].other) #The last element of result_down will be the closest element to the given interval yield outfields
participants (1)
-
Greg Von Kuster