add ancestor-specific colors to output bed file