How to handle gaps in consensus sequence construction from multiple sequence alignment
I am writing a function which takes aligned sequences, and outputs a consensus sequence using IUPAC ambiguous nucleotides. I am unsure how to handle assignment at a given position if gaps are the mode character. Here is an example.
Sequence 0 G-ATGT
Sequence 1 G-ATGT
Sequence 2 G-ATGT
Sequence 3 GCATGT
What would the appropriate consensus sequence in this case be?
• 3,667 views
•
link
2 answers
Look at how sequence logos are built. Some advice can be found here.
• 0 views
•
link
I think the two best options for this are:
- PROSITE pattern notation
- Regular expression syntax.
PROSITE pattern notation may be better known by biologists, whereas regular expressions are more useful for bioinformaticians in my opinion.
• 0 views
•
link
Log in to answer this question.