Deleted:How to assign custom colour codes for protein Multiple sequence alignment?
0
0
Entering edit mode
K. • 0
@7ba17aca
Last seen 4.3 years ago
India

I need to customise the colour code for protein multiple sequence alignment (MSA), However the existing R packages only supports the predefined colour codes, which are single letter based. But, I have to assign my own colour scheme for a pair of letters (amino acid). I have gone through the packages like ggmsa and ggplot2 etc., but failed to find the solution. I need to generate a figure as shown below,

I tried with the following scripts but failed to complete my task.

library(tidyverse)
library(ggtree) 
library(seqinr)
tree = read.tree("tree.newick") 
msaplot(p=ggtree(tree), fasta = "msa.fasta")
msaplot(p=ggtree(tree) + geom_tiplab(align=TRUE), fasta = "msa.fasta")
Alignment MultipleSequenceAlignment Phylogenetics GenomicSequence • 594 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 661 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6