I'm trying to programmatically replace a set of amino acid residues on an MSA with a "Z" from a list of unaligned positions. Any ideas on how I could do this?
Input: a list of unaligned positions for each sequence + an MSA
Output: an MSA with those unaligned positions on the aligned MSA replaced with a Z for each sequence.
I have a multiple sequence alignment i'm working with and a list of sites on that alignment that are glycosylated. I was trying to run a script that would take the input of the positions as a list of characters along with the MSA to replace the Nth character with a "Z" to easily visualize the sites. So essentially if I feed it the following sequence
M----KFLAFLCLLGFANAQ-------------D-GKCG----TLSNKSPS--------------------K
and positions
2, 5, 10, 11, 14
it should spit back
M----ZFLZFLCLZZFAZAQ-------------D-GKCG----TLSNKSPS--------------------K