I want to generate a consensus sequence of a large number of amino acid sequences using python.
If there are three different amino acid sequences:
MAHEDYIG ... HLY MAAEDYLP ... HLY MAHEDYIG ... TLY
Then MAHEDYIG ... HLY has to be generated as a consensus sequence.
Could anyone create python code for this algorithm? I want to put FASTA file, which is aligned with Multiple Sequence Alignment tool, in the code and want to put a specific weight for each conserved residue.