Thanks for your reply. Here the program is written in R. but I need the help by python.
• 0 views
•
link
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)
Thanks for your reply. Here the program is written in R. but I need the help by python.
Not sure why that matters. Presumably you need the result and the tool should matter less. Still, I can do the search for you. Googling will probably yield additional results.
Log in to answer this question.
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.