Description Usage Arguments Details Value Author(s) References Examples
Given a folder containing homolog trees, filter the trees to only those
containing one-to-one orthologs (i.e., no duplications within a sample).
This function will overwrite any output files with the same name in
outdir.
1 2 3 4 5 6 7 8 9 10 11  | filter_1to1_orthologs(
  path_to_ys = pkgconfig::get_config("baitfindR::path_to_ys"),
  tree_folder,
  tree_file_ending,
  minimal_taxa = 4,
  outdir,
  overwrite = FALSE,
  get_hash = TRUE,
  echo = pkgconfig::get_config("baitfindR::echo", fallback = FALSE),
  ...
)
 | 
path_to_ys | 
 Character vector of length one; the path to the folder containing Y&S python scripts, e.g., "/Users/me/apps/phylogenomic_dataset_construction/"  | 
tree_folder | 
 Character vector of length one; the path to the folder containing the trees to be used for filtering.  | 
tree_file_ending | 
 Character vector of length one; only tree files with this file ending will be used.  | 
minimal_taxa | 
 Numeric; minimal number of taxa required for tree to be included. Default 4, the minimum number of taxa needed for an un-rooted tree.  | 
outdir | 
 Character vector of length one; the path to the folder where the filtered trees should be written.  | 
overwrite | 
 Logical; should previous output of this command be erased so new output can be written? Once erased it cannot be restored, so use with caution!  | 
get_hash | 
 Logical; should the 32-byte MD5 hash be computed for all filtered tree files concatenated together? Used for by   | 
echo | 
 Logical; should the standard output and error be printed to the screen?  | 
... | 
 Other arguments. Not used by this function, but meant to be used by   | 
Wrapper for Yang and Smith (2014) filter_1to1_orthologs.py
For each tree file ending in tree_file_ending in tree_folder, that tree will be written to outdir if it consists solely of one-to-one orthologs with the file ending .1to1ortho.tre. If get_hash is TRUE, the 32-byte MD5 hash be computed for all filtered tree files concatenated together will be returned.
Joel H Nitta, joelnitta@gmail.com
Yang, Y. and S.A. Smith. 2014. Orthology inference in non-model organisms using transcriptomes and low-coverage genomes: improving accuracy and matrix occupancy for phylogenomics. Molecular Biology and Evolution 31:3081-3092. https://bitbucket.org/yangya/phylogenomic_dataset_construction/overview
1  | ## Not run: filter_1to1_orthologs(tree_folder = "some/folder/containing/tree/files", tree_file_ending = ".tre", tree_folder = "some/folder/containing/tree/files", outdir = "some/folder")
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.