I have a code in which i create a set of alphabets of specified count .Now in particular positions in it i want to embed my choice of letters how do i do it.here is my code
now here in this I am creating a list of sequence containing the letters only "ATGC".Now I want to specify in this that say at particular postions like say the first fifteen characters should be what i mentioned. and say i also want to do when for positions from 41 to 50 i want a specifies set of letters something like this " "CGTCAAGTTCAAGT GC".how to do this?
why is my code not working?
waiting for your reply
cheers!
Code:
def random_seq():
seq=""
ch=""
for i in range(0,50):
ch=random.choice(("ATGC"))
seq=seq+ch
for i in seq:
seq[i:i+15]="CGTCAAGTTCAAGTGC"
return seq
why is my code not working?
waiting for your reply
cheers!
Comment