Spporting material used in the manuscript

"The common origin of symmetry and structure in genetic sequences" by G. Cristadoro , M. Degli Esposti , E. G. Altmann

In [1]:
import crossCorrelations as cc

Cross correlation for pairs of dinucleotides

In [2]:
chrom = 1
din1="CC"
din2="TC"
cc.plotcross(din1,din2,chrom)

Indicator of symmetry for a given chromosome

In [3]:
chrom=1 # Select cromossome
cc.plotSymmetries(chrom)

Same as above for all chromosomes

In [4]:
listChrom = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,'X','Y']
In [5]:
for i in listChrom:
    cc.plotSymmetries(i)
In [6]:
for chrom in listChrom:
    cc.plotcross(din1,din2,chrom)

Correlations for all pairs of dinucleotides

In [7]:
chrom=1
alldin=cc.allbigrams()

usedpairs=[] 
for i in alldin:
    for j in alldin:
        if(i+j not in usedpairs):
            cc.plotcross(i,j,chrom)
            for k in cc.symmetries(i,j):
                usedpairs.append(k)