Entering edit mode
7.3 years ago
abdul.suboor123
•
0
I want to construct round tree for my protein sequences, I am new to rstudio. By searching about ggtree i got little idea but still facing problems. I give the command
> ggplot(tree, aes(x, y)) + geom_tree() + theme_tree() + xlab("seq") + ylab("comp")
and I got this error, what does it mean?
Error in FUN(X[[i]], ...) : object 'node' not found
Please use the formatting bar (especially the
codeoption) to present your post better. I've done it for you this time.Could you provide a small example to reproduce the error?
and function to generate tree.
Can you also show your input tree. That error could suggest the tree is malformed.
I am using my protein sequences of different species, I am using fastq file for it but it does not work. May be my file format is wrong. I want to know the pipeline for making round tree in rtsudio? I want to make a likelihood tree. I already mentioned above that I am new to R that is why I am facing problems. I will be thankful If someone mention the complete pipeline.
What do you mean you have a FASTQ of protein sequences? I very much doubt that...
You need to make your tree, before you pass it to
ggplot. It will not construct the tree for you, only draw it.Post few records from sequences file
My problem is solved. The command that I have followed is given below.