R/AntibodyForests_infer_ancestral.R
AntibodyForests_infer_ancestral.Rd
Phylogenetic trees and ancestral sequence reconstruction is performed using the IQ-TREE software. The IQ-TREE directory is required beforehand.
AntibodyForests_infer_ancestral(
trees,
alignment.method,
iqtree.directory,
collapse.trees,
parallel
)
AntibodyForests object/list of AntibodyForests objects - the resulting sequence similarity or minimum spanning tree networks from the AntibodyForests function.
string - method/software to perform multiple sequence alignment before the ancestral sequence reconstruction step. Options include: 'mafft' (requires the MAFFT software to be locally installed beforehand), 'clustal', 'clustalomega', 'tcoffee', 'muscle', which all require the 'ape' R package.
string - path to the IQ-TREE software directory.
boolean - if T, will collapse the resulting phylogenetic trees if an intermediate daughter sequence/node is the same as its parent.
boolean - whether to execute the main subroutine in parallel or not. Requires the 'parallel' R package to be installed.
nested list of AntibodyForests objects or single AntibodyForests object, with a modified tree slot including the phylogenetic tree converted into igraph objects and the reconstructed intermediate/ancestral sequences.
if (FALSE) {
AntibodyForests_infer_ancestral(trees, alignment.method = 'mafft',
igtree.directoty = '/Users/.../Desktop/iqtree-1.6.12-MacOSX')
}