int c = fr - 1;
ContactRange cr = forCurrentX.getRangeFor(fr, to);
double cval;
+ // TODO: could use GraphLine instead of arbitrary picking
+ // TODO: could report mean/median/variance for partitions (contiguous selected vs unselected regions and inter-contig regions)
+ // controls feathering - what other elements in row/column should we select
+ double thresh=cr.getMean()+(cr.getMax()-cr.getMean())*.15;
while (c > 0)
{
cval = forCurrentX.getContactAt(c);
if (// cr.getMin() <= cval &&
- cval <= cr.getMax())
+ cval <= thresh)
{
av.getColumnSelection().addElement(c--);
}
{
cval = forCurrentX.getContactAt(c);
if (// cr.getMin() <= cval &&
- cval <= cr.getMax())
+ cval <= thresh)
{
av.getColumnSelection().addElement(c++);
}