Utils

geneblocks.utils.sequences_are_circularly_equal(sequences)[source]

Return whether all the sequences represent the same circular sequence.

This means that the sequences are differently rotated versions of a same circular sequence, and for any pair s1, s2 in the sequences, there is an index i such that s1 = s2[i:] + s2[:i].

The sequences parameter should be a list of “ATGC” strings or SeqRecords.