I want to generate m derivatives of the parent sequence by mutating p% of the bases in the parent gene. The final m+1 derivative genes will then be stored in a fasta file.
This is my code:
mySeq="AATTCC"
random_sequence=''
for i in range(0,100):
random_sequence+=random.choice(mySeq)
print(random_sequence)
print("l: The length of the parent sequence:",len(random_sequence))
print("frequence:", (random_sequence).count(random_sequence)/len(random_sequence))
nmute = 5
for i in range (nmute):
print(" random_sequence after %p mute:" % nmute, random_sequence)
What is the problem? It is expected to explain where you get stuck and what you tried to solve the issue.
It is showing error.