DNATool2/Utilities.py
def createDummyRestrSites(l=200,n=40):
    """n random rest sites for seq of length l"""
    sites = {}
    names = createRandomStrings(l,6)    
    locs = [random.randint(0, l) for i in range(n)]
    for x,name in zip(locs, names):
        sites[name] = {'position':x}            
    return sites
n random rest sites for seq of length l
n random rest sites for seq of length l
n random rest sites for seq of length l
def createDummyRestrSites(l=200,n=40):
    sites = {}
    names = createRandomStrings(l,6)    
    locs = [random.randint(0, l) for i in range(n)]
    for x,name in zip(locs, names):
        sites[name] = {'position':x}            
    return sites
def createDummyRestrSites ( l = 200 , n = 40 ) : sites = { } names = createRandomStrings ( l , 6 ) locs = [ random . randint ( 0 , l ) for i in range ( n ) ] for x , name in zip ( locs , names ) : sites [ name ] = { 'position' : x } return sites
n random rest sites for seq of length l
n random rest sites for seq of length l
"""n random rest sites for seq of length l"""
l
n