Hi there!
I'd like to make use of your permulations method to generate null distributions for an analysis I'm working on about gene loss and duplication in spiders. Because one of my aims is to investigate duplication events, I am looking at many genes in which there is more than one copy for some species. This means the gene trees often have multiple tips per species. And, even without considering paralogs, I suspect that the individual gene trees do not all necessarily match the species tree in terms of topology. (These are the Resolved Gene Trees generated by Orthofinder.)
I understand from this discussion that the readTrees function wants all genes to have the same topologies. So one solution I imagine would be to use a tool like OrthoSnap to extract single-copy trees from each of my orthogroups, then use your estimatePhangornTreeAll wrapper function to generate a readTree-compatible species tree from all the individual pruned gene trees.
However, since for my purposes all I really need is the permulated phenotype vectors to use as the null for a separate method, I'm wondering if there is a way for me to convert an existing species tree with branch lengths in Newick file format to a format that could be provided directly to the simBinPheno and simBinPhenoVec functions, rather than having the readTrees function generate the master tree for me? This would save me the effort of pruning all my gene trees to be single copy and using them to make a master tree, which after all I am not sure would produce as reliable of a species tree/branch lengths as the one I already have (also from OrthoFinder).
Alternatively, if you have suggestions of any other strategy by which to generate the permulated trees when using genes which have multiple copies in some species, please let me know!
Thank you,
Calvin
Hi there!
I'd like to make use of your permulations method to generate null distributions for an analysis I'm working on about gene loss and duplication in spiders. Because one of my aims is to investigate duplication events, I am looking at many genes in which there is more than one copy for some species. This means the gene trees often have multiple tips per species. And, even without considering paralogs, I suspect that the individual gene trees do not all necessarily match the species tree in terms of topology. (These are the Resolved Gene Trees generated by Orthofinder.)
I understand from this discussion that the readTrees function wants all genes to have the same topologies. So one solution I imagine would be to use a tool like OrthoSnap to extract single-copy trees from each of my orthogroups, then use your estimatePhangornTreeAll wrapper function to generate a readTree-compatible species tree from all the individual pruned gene trees.
However, since for my purposes all I really need is the permulated phenotype vectors to use as the null for a separate method, I'm wondering if there is a way for me to convert an existing species tree with branch lengths in Newick file format to a format that could be provided directly to the
simBinPhenoandsimBinPhenoVecfunctions, rather than having the readTrees function generate the master tree for me? This would save me the effort of pruning all my gene trees to be single copy and using them to make a master tree, which after all I am not sure would produce as reliable of a species tree/branch lengths as the one I already have (also from OrthoFinder).Alternatively, if you have suggestions of any other strategy by which to generate the permulated trees when using genes which have multiple copies in some species, please let me know!
Thank you,
Calvin