GibbsModule workflow. In Step 1, a random PSWM is initialized. Steps 2-5 are the iterative steps. In Step 2, N candidate binding sites are sampled from every homologous sequence using the same PSWM. In this example, three candidate-binding sites are sampled on each sequence (N = 3). Every sampled binding site defines a candidate CRM, which includes the binding site itself and 100 bp of flanking region on each side. These candidate CRMs are marked 1, 2, 3 on the target sequence, and 1′, 2′, 3′ and 1″, 2″, 3″ on the sequences of two assisting species. In Step 3, Module-Alignment is applied to every candidate CRM on the target sequence and every CRM on the assisting sequences. In the example, the alignments are applied to CRM pairs of (1, 1′), (1, 2′), (1, 3′), (2, 1′), (2, 2′), . . . , (3, 1″), (3, 2″), and (3, 3″). In Steps 3 and 4, a most conserved CRM on the target sequence is picked up by arg

(

(
score(
n,
n')) +

(
score(
n,
n′))), where
n,
n′, and
n″ are indicators of candidate CRMs in homologous sequences SeqA, orthA1, and orthA2, respectively. (X, O, #) Other motifs close to the core motif within a CRM. In Step 5, a new PSWM is calculated from the core motifs in the most conserved CRMs.