Entering edit mode
8.0 years ago
nchuang
▴
260
I just want to edit a single base in one sequence in my single alignment. I read in the alignment file (ie needle-wunsch file) with SeqIO library and I get SeqRecord object. Problem is I know how to edit with .tomutable()
for Seq objects but I am not sure how to do that with SeqRecord as it does not have the same function.
Do I have to slice to that position and make a single column SeqRecord object and swap it out at that position with splicing functions?
thanks but I need to keep it in alignment object and I'm not sure you can pull a SeqRecord out and replace it