I would like to visualize tree with multiple sequence alignment. So, I have followed the following code in R. My din.newick
file is shown below,
(org1:0.49999997,org2:0.47298786,org3:28.37858179); My din.fasta alignment file shown below,
>org1
ATGCTA
>org2
TAGCAT
>org3
AGTAGT
I have tried the following code,
library(tidyverse)
library(ggtree)
library(seqinr)
tree = read.tree("din.newick")
msaplot(p=ggtree(tree), fasta = "din.fasta")
msaplot(p=ggtree(tree) + geom_tiplab(align=TRUE), fasta = "din.fasta")
The above mentioned code is generating tree with the alignment matrix, but the tree root tip labels are not visible. It is either overlapped with matrix or it is not at all visible.
Kindly help me to fix this issue.
Hello Dineshkumar K!
It appears that your post has been cross-posted to another site: https://bioinformatics.stackexchange.com/questions/8817/issue-with-visualising-cladogram-phylogenetic-tree-with-multiple-sequence-alignm
This is typically not recommended as it runs the risk of annoying people in both communities.
@SMK, hereafter I would not repeat this mistake.
No problem, just remember to cross-reference at both sites.