Skip to content

Commit

Permalink
Merge pull request #17 from JRaviLab/16-bug-molevolvr-dep-phangornreadaa
Browse files Browse the repository at this point in the history
fixes #16
  • Loading branch information
the-mayer authored Sep 20, 2024
2 parents 9e6d0e5 + 52855df commit 94369a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ importFrom(phangorn,plotBS)
importFrom(phangorn,pml)
importFrom(phangorn,pml.control)
importFrom(phangorn,pratchet)
importFrom(phangorn,read.aa)
importFrom(phangorn,read.phyDat)
importFrom(phangorn,upgma)
importFrom(plotly,plot_ly)
importFrom(purrr,as_vector)
Expand Down
4 changes: 2 additions & 2 deletions R/tree.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ generate_trees <- function(aln_path = here("data/alns/")) {
#' @param out_file
#'
#' @importFrom ape write.tree
#' @importFrom phangorn bootstrap.pml dist.ml NJ modelTest phyDat plotBS pml pml.control pratchet optim.parsimony optim.pml read.aa upgma
#' @importFrom phangorn bootstrap.pml dist.ml NJ modelTest phyDat plotBS pml pml.control pratchet optim.parsimony optim.pml read.phyDat upgma
#' @importFrom seqinr dist.alignment read.alignment
#' @importFrom stats logLik
#'
Expand Down Expand Up @@ -156,7 +156,7 @@ generate_fa2tre <- function(fa_file = "data/alns/pspa_snf7.fa",
###########################
## Alignment file formats and conversion
# read in sequence data, convert to phyDat
prot_fa <- read.aa(fa_file, format = "fasta")
prot_fa <- read.phyDat(fa_file, format = "fasta", type = "AA")
prot_phyDat <- phyDat(prot_fa, type = "AA", levels = NULL)
prot10 <- subset(prot_phyDat, 1:10)
prot10_phyDat <- phyDat(prot10, type = "AA", levels = NULL)
Expand Down

0 comments on commit 94369a2

Please sign in to comment.