Hi,
I have a list of positions I would like to change in a fasta file with the base I would like to change to tab separated as follows:
1 T 2 C 10 T 50 G
etc
so that eg: ATGTGTC...
becomes TCGTGTC...
There must be a way to do this but I can't do it - have tried to code it in biopython but can't manage.. any ideas?
post what have you tried in biopython.
see below, thanks...
I know this is not quite right but not sure how to make it work
you don't need to import so many modules. Also, you need to subtract 1 from your positions, because python starts at 0.
This is the solution you need but you need to work a little bit to prepare input files
Introducing Known Mutations (From A Vcf) Into A Fasta File