Automated detection and delineation of protein domains