Sept. 7, 2015, 4:12 p.m. by Rosalind Team
The following pseudocode bypasses the intermediate step of assigning “head” and “tail” nodes in order to transform a single circular chromosome Chromosome = (Chromosome1, . . . , Chromosomen) into a cycle represented as a sequence of integers Nodes = (Nodes1, . . . , Nodes2n).
Solve the Chromosome To Cycle Problem.
Given: A chromosome Chromosome containing n synteny blocks.
Return: The sequence Nodes of integers between 1 and 2n resulting from applying ChromosomeToCycle to Chromosome.
(+1 -2 -3 +4)
(1 2 4 3 6 5 7 8)