Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync Armadillo #168

Merged
merged 218 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
a29255d
allow DNAbin/AAbin objects,
KlausVigo Apr 27, 2023
5b2474d
simplify code
KlausVigo Apr 27, 2023
bef9f53
add tip.dates to allow nicer labeling with tip dated phylogenies
KlausVigo May 5, 2023
6a88c1a
clean up
KlausVigo May 5, 2023
adafd66
root tree if necessary
KlausVigo May 5, 2023
81c2994
add reference
KlausVigo May 9, 2023
57fb661
use ape functions
KlausVigo May 9, 2023
8895b92
add MCC option to plotBS. Small improvements
KlausVigo May 9, 2023
ecf476f
Small improvements
KlausVigo May 9, 2023
cdbf6db
print rate for tipdated tree
KlausVigo May 9, 2023
28928d7
uncomment uneeded functions
KlausVigo May 9, 2023
137361f
updates
KlausVigo May 9, 2023
990d3ec
better defaults, check if trees are rooted
KlausVigo May 9, 2023
b60878b
clean up
KlausVigo May 9, 2023
5edb485
bugfix
KlausVigo May 9, 2023
b6c1f59
allow to return vector
KlausVigo May 30, 2023
f4cd79c
fix man page
KlausVigo May 30, 2023
00a7970
allow clade credibilities
KlausVigo May 30, 2023
b06c0cb
fix spelling
KlausVigo Jun 2, 2023
9e2e1db
small
KlausVigo Jun 7, 2023
84df1d2
fix spelling
KlausVigo Jun 16, 2023
83c3be8
simplify
KlausVigo Jun 16, 2023
5b22e63
allow character vectors
KlausVigo Jun 16, 2023
48a0245
Improve manual
KlausVigo Jun 16, 2023
c151435
bug fix
KlausVigo Jun 16, 2023
5b0d695
bugfix
KlausVigo Jun 16, 2023
3efcf6d
clean up
KlausVigo Jun 20, 2023
7b93863
update
KlausVigo Jun 20, 2023
367961b
improve rbind.phyDat
KlausVigo Jun 22, 2023
6174f0d
reorganize code
KlausVigo Jul 4, 2023
d44c9b3
allow direction and rotating the plot
KlausVigo Jul 4, 2023
242b63d
add keep.as.tip
KlausVigo Jul 4, 2023
4e29500
small improvements
KlausVigo Jul 4, 2023
97c9e24
bugfix
KlausVigo Jul 4, 2023
f09bcbd
bug fix
KlausVigo Jul 4, 2023
992eb18
bugfix
KlausVigo Jul 4, 2023
f98a1cf
use experimental ape
KlausVigo Jul 4, 2023
0f70a4e
change to ape develoment
KlausVigo Jul 6, 2023
e5b05e8
update
KlausVigo Jul 11, 2023
3ed5baf
noicer printing
KlausVigo Jul 11, 2023
ec9d8cb
consensus trees might not be
KlausVigo Jul 17, 2023
30ffef7
direct conversion of AAbin objects, uses less memory
KlausVigo Jul 17, 2023
732e37a
use node labels or add them
KlausVigo Jul 18, 2023
9b04b5a
bugfix
KlausVigo Jul 18, 2023
dba93cc
no unnecessary output
KlausVigo Jul 18, 2023
2250b13
bugfix
KlausVigo Jul 18, 2023
8bf0d2f
update
KlausVigo Jul 18, 2023
3a62282
change URL
KlausVigo Jul 24, 2023
09db6f8
allow plotAnc to use proper phyDat arguments
KlausVigo Jul 24, 2023
df2bb82
handle ancestral states better
KlausVigo Aug 1, 2023
229d9a1
distinguish unrooted plots
KlausVigo Aug 1, 2023
947252e
reorganize code
KlausVigo Aug 4, 2023
ec581fc
add colorschemes
KlausVigo Aug 4, 2023
5db2474
bugfix
KlausVigo Aug 4, 2023
d1a46cc
update
KlausVigo Aug 4, 2023
f2724fe
bugfix
KlausVigo Aug 4, 2023
5db5fcb
bugfix
KlausVigo Aug 4, 2023
2a6aba5
bug fix
KlausVigo Aug 21, 2023
d050425
update
KlausVigo Aug 21, 2023
eb1f429
clean up code
KlausVigo Aug 28, 2023
14e039b
speed up candidate tree
KlausVigo Aug 29, 2023
8280af9
improve indexNNI to allow for different porpuses
KlausVigo Aug 29, 2023
5a99179
add several support values to a tree
KlausVigo Sep 6, 2023
c871d71
small improvements to color schemes
KlausVigo Sep 6, 2023
858967d
avoid warning
KlausVigo Sep 7, 2023
cac1415
improve man page
KlausVigo Sep 13, 2023
5adee6e
improve plot.networx
KlausVigo Sep 13, 2023
7b4e8e0
bug fix if duplicated sequences exist
KlausVigo Oct 3, 2023
abb6663
improve examples
KlausVigo Oct 16, 2023
dfef4ea
bug fix
KlausVigo Oct 16, 2023
8647726
add experimental function write.ancestral, interface might change
KlausVigo Oct 17, 2023
71dd002
update man page
KlausVigo Oct 17, 2023
aa8c9c6
add as.phyDat.AAStringset, as.phyDat.DNAStringset going via AAbin/DNA…
KlausVigo Oct 17, 2023
44d350a
change scalebar and suport values with cex
KlausVigo Oct 20, 2023
5cacdbb
set trace=0 by default
KlausVigo Oct 24, 2023
975d23a
improve as.data.frame.ancestral
KlausVigo Nov 14, 2023
ba3c44f
simplify code
KlausVigo Nov 14, 2023
2a375c6
fix documentation
KlausVigo Dec 5, 2023
ea381f1
more ratchet iterations
KlausVigo Dec 5, 2023
f001d48
several bug fies and improvements
KlausVigo Dec 13, 2023
486af8b
improve man page
KlausVigo Dec 18, 2023
1d65575
cleaning up, improve ratchet
KlausVigo Dec 18, 2023
98e09d7
bug fix reported by John Rhodes
KlausVigo Jan 11, 2024
5709e0b
Improve man page
KlausVigo Jan 12, 2024
37d76ef
add references
KlausVigo Jan 12, 2024
9d091b3
small improvements
KlausVigo Jan 12, 2024
b34fc4a
Fix phylip webpage
KlausVigo Jan 15, 2024
819ace8
reorganise code
KlausVigo Jan 15, 2024
8a6a848
update
KlausVigo Jan 15, 2024
3dbe65e
try to avoid errors
KlausVigo Jan 15, 2024
95456b0
try to avoid errors
KlausVigo Jan 15, 2024
8d32c6c
test
KlausVigo Jan 15, 2024
927a461
test if tests work now again
KlausVigo Jan 15, 2024
ebd9d80
add_edge_length assign now also edge length to an splits graph (networx)
KlausVigo Jan 16, 2024
2f66600
fix bug reported by @amizeranschi
KlausVigo Jan 25, 2024
5c3aeba
don't depend on apex
KlausVigo Jan 25, 2024
7a6c2d9
remove duplicated code
KlausVigo Jan 31, 2024
1cd2373
speed up example
KlausVigo Jan 31, 2024
6687277
bugfix
KlausVigo Jan 31, 2024
312b127
apex is back on CRAN
KlausVigo Feb 7, 2024
d821bd6
cleaning up
KlausVigo Feb 7, 2024
54f6361
bug fix
KlausVigo Feb 7, 2024
636b78c
add apex support
KlausVigo Feb 8, 2024
680329f
new tests
KlausVigo Feb 9, 2024
f142b40
clean up
KlausVigo Feb 14, 2024
0ef34aa
improve error messages
KlausVigo Feb 14, 2024
717f47d
small API change
KlausVigo Feb 14, 2024
88fa224
bugfix
KlausVigo Feb 14, 2024
5e53e16
bugfix
KlausVigo Feb 14, 2024
998c93f
use shared ape data
KlausVigo Feb 16, 2024
4b07aac
fixed esoteric error for invariant sites
KlausVigo Feb 21, 2024
ad14693
small updates
KlausVigo Feb 23, 2024
20a83c5
small improvement
KlausVigo Feb 23, 2024
1c6606c
add immproved lower bound by default
KlausVigo Feb 23, 2024
ee876f7
clean up
KlausVigo Mar 5, 2024
68fd4b5
nicer plots
KlausVigo Mar 5, 2024
6501347
improve image (allow gaps as states)
KlausVigo Mar 5, 2024
0ea5b08
Ancestral states of constant sites are now always this state
KlausVigo Mar 5, 2024
d016642
export glance methods
KlausVigo Mar 6, 2024
ad9117a
add gap_as_state
KlausVigo Mar 6, 2024
7b634b5
update
KlausVigo Mar 6, 2024
02e3193
bug fix
KlausVigo Mar 7, 2024
e069e46
small improvements
KlausVigo Mar 7, 2024
4bf2863
add composition_test
KlausVigo Mar 7, 2024
7d02ccc
add composition_test
KlausVigo Mar 7, 2024
68061cb
Merge branch 'master' of https://github.com/KlausVigo/phangorn
KlausVigo Mar 9, 2024
b700fcc
clean up
KlausVigo Mar 18, 2024
ed29611
update man page
KlausVigo Mar 18, 2024
20507bf
small improvement
KlausVigo Mar 26, 2024
20f6282
get rid of note
KlausVigo Apr 3, 2024
a43c136
fix ape link and add r-universe link
KlausVigo Apr 3, 2024
885dda5
small improvement and new check functions
KlausVigo Apr 3, 2024
97a3925
make it more robust
KlausVigo Apr 3, 2024
0dec81b
replace warning by message
KlausVigo Apr 3, 2024
b1af551
add example
KlausVigo Apr 3, 2024
20495f3
clean up
KlausVigo Apr 3, 2024
8c6bb76
new function dna2aa
KlausVigo Apr 3, 2024
1a92ed2
less print out
KlausVigo Apr 4, 2024
aa3bc61
clean up
KlausVigo Apr 4, 2024
e1a3660
ML support for gap as its own state
KlausVigo Apr 4, 2024
cd1adca
bugfix
KlausVigo Apr 4, 2024
fa10b18
small improvements
KlausVigo Apr 4, 2024
4cbd17e
bug fix
KlausVigo Apr 5, 2024
2d56a50
use ggseqlogo instead of seqLogo, update ape to >=5.8
KlausVigo Apr 17, 2024
76aa52c
ancestral reconstruction was rewritten
KlausVigo Apr 17, 2024
90f8166
clean up
KlausVigo Apr 17, 2024
1a4e448
update
KlausVigo Apr 17, 2024
0fb3099
small improvements
KlausVigo Apr 17, 2024
93e7edf
clean up, use definition for color schemes in ape
KlausVigo Apr 17, 2024
c1442bc
prevent warnings
KlausVigo Apr 17, 2024
796fed5
small improvement
KlausVigo Apr 17, 2024
a929e35
scale tree
KlausVigo Apr 17, 2024
71e9307
add links, try black gaps in plots
KlausVigo Apr 18, 2024
1926499
nicer messages, encapsulate code
KlausVigo Apr 18, 2024
ffbab19
add rechceck workflow
KlausVigo Apr 18, 2024
ed09a47
scale edges if necessary
KlausVigo Apr 19, 2024
a7f6ca4
more consistent coloring
KlausVigo Apr 19, 2024
c1a80a5
simpler workflow
KlausVigo Apr 19, 2024
15261fd
Merge branch 'master' of https://github.com/KlausVigo/phangorn
KlausVigo Apr 19, 2024
29eb64f
add supoort codons
KlausVigo Apr 23, 2024
c76a40d
add suport for codons
KlausVigo Apr 23, 2024
d8c0e9f
try avoiding nodes, add as.phyDat.ancestral
KlausVigo Apr 23, 2024
8a56b70
add ggplot2 as import
KlausVigo Apr 23, 2024
6464347
updates
KlausVigo Apr 23, 2024
0106dc5
bugfix
KlausVigo Apr 23, 2024
f6932e3
add xlim and ylim, allow more control for the plots
KlausVigo Apr 28, 2024
212254d
improve documentation, add examples and return values to make pkgchec…
KlausVigo Apr 28, 2024
4b3186c
update, add return
KlausVigo Apr 28, 2024
bd60ac0
don't export read.aa (use read.phyDat instead)
KlausVigo Apr 28, 2024
90bc96e
improve man page
KlausVigo Apr 28, 2024
4c7a814
small improvements
KlausVigo Apr 28, 2024
5a77a8c
small improvements
KlausVigo Apr 29, 2024
8e0cbcf
add tests
KlausVigo Apr 29, 2024
91439ab
update
KlausVigo Apr 29, 2024
9191d98
add examples
KlausVigo Apr 29, 2024
395a169
clean up
KlausVigo Apr 29, 2024
729e8a4
add tests
KlausVigo Apr 29, 2024
0f27d82
improve man pages add return values
KlausVigo May 1, 2024
884d31b
change to make_graph, pointed out by Szabolcs Horvát
KlausVigo May 3, 2024
a025619
Improve man pages
KlausVigo May 10, 2024
1671ae3
bugfix
KlausVigo May 10, 2024
82dfdbb
avoid warning
KlausVigo May 17, 2024
ca442e5
add some additional test infrastructure
KlausVigo May 17, 2024
83b39c8
updates
KlausVigo May 17, 2024
447c641
add tests
KlausVigo May 17, 2024
87902a6
remove plot.ancestral for now
KlausVigo May 17, 2024
01934aa
add tests for some plots
KlausVigo May 17, 2024
7089787
bug fix
KlausVigo May 17, 2024
7166ab5
bug fix
KlausVigo May 17, 2024
542c0f5
update code coverage
KlausVigo May 19, 2024
7dd4383
add test
KlausVigo May 19, 2024
342fcee
remove warning
KlausVigo May 20, 2024
656d1dc
add write.pml
KlausVigo May 20, 2024
9bbeed9
add imports
KlausVigo May 20, 2024
e4e1622
bug fix
KlausVigo May 20, 2024
3be40de
add man pages
KlausVigo May 20, 2024
2231d74
no Remotes
KlausVigo May 21, 2024
ec88541
fix plot
KlausVigo May 21, 2024
b273a84
clean up
KlausVigo May 21, 2024
bfc2650
avoid empty cycle attribute
KlausVigo May 22, 2024
7d484b3
small improvements to plot functions
KlausVigo May 23, 2024
942175f
return x invisible in densiTree
KlausVigo May 27, 2024
6ffc11e
reorganize networx code
KlausVigo Jun 1, 2024
54a4ee5
add rate to print output
KlausVigo Jun 1, 2024
c81e968
change defaults and experiment with early ...
KlausVigo Jun 1, 2024
57141b0
improve ancestral (when reading ASR from iqtree), update man pages
KlausVigo Jun 6, 2024
a4cc7b0
update man page of plotAnc
KlausVigo Jun 7, 2024
7cecbc0
update man page
KlausVigo Jun 7, 2024
2a046ae
Add lt2amb the equivalent to latag2n in ape. Generic in future?
KlausVigo Jun 11, 2024
5ae5761
add experimental joint reconstruction, based on Liam's phytools code.
KlausVigo Jun 11, 2024
b1927f7
update NEWS
KlausVigo Jun 11, 2024
ddbed49
add some links
KlausVigo Jun 11, 2024
5086adc
fix spelling
KlausVigo Jun 11, 2024
971d981
small improvements
KlausVigo Jun 16, 2024
17ce4c1
bugfix
KlausVigo Jun 17, 2024
3b52c30
bugfix
KlausVigo Jun 17, 2024
ea8ca9b
bugfix
KlausVigo Jun 17, 2024
5c33b58
fix wrong links
KlausVigo Jun 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
^vignettes/MLbyHand_cache$
^vignettes/AdvancedFeatures_cache$
^vignettes/logo.png
^codemeta\.json$
^codecov\.yml$
18 changes: 18 additions & 0 deletions .github/workflows/recheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on:
workflow_dispatch:
inputs:
which:
type: choice
description: Which dependents to check
options:
- strong
- most

name: Reverse dependency check

jobs:
revdep_check:
name: Reverse check ${{ inputs.which }} dependents
uses: r-devel/recheck/.github/workflows/recheck.yml@v1
with:
which: ${{ inputs.which }}
23 changes: 17 additions & 6 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,54 @@ on:

name: test-coverage

permissions: read-all

jobs:
test-coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
extra-packages: any::covr, any::xml2
needs: coverage

- name: Test coverage
run: |
covr::codecov(
cov <- covr::package_coverage(
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
covr::to_cobertura(cov)
shell: Rscript {0}

- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
file: ./cobertura.xml
plugin: noop
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
15 changes: 9 additions & 6 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: phangorn
Title: Phylogenetic Reconstruction and Analysis
Version: 2.12.0.900
Version: 3.0.0.0
Authors@R:
c(person("Klaus", "Schliep", role = c("aut", "cre"),
email = "[email protected]",
Expand Down Expand Up @@ -38,12 +38,14 @@ URL: https://github.com/KlausVigo/phangorn,
https://klausvigo.github.io/phangorn/
BugReports: https://github.com/KlausVigo/phangorn/issues
Depends:
ape (>= 5.7),
ape (>= 5.8),
R (>= 4.1.0)
Imports:
digest,
fastmatch,
generics,
ggseqlogo,
ggplot2,
graphics,
grDevices,
igraph (>= 1.0),
Expand All @@ -62,18 +64,19 @@ Suggests:
rgl,
rmarkdown,
seqinr,
seqLogo,
testthat (>= 3.0.0),
tinytest,
vdiffr,
xtable
LinkingTo:
Rcpp, RcppArmadillo
Remotes: github::emmanuelparadis/ape
Rcpp
VignetteBuilder:
knitr,
utils
biocViews: Software, Technology, QualityControl
Encoding: UTF-8
Repository: CRAN
Roxygen: list(old_usage = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Language: en-US
Config/testthat/edition: 3
36 changes: 34 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ S3method(as.data.frame,phyDat)
S3method(as.matrix,splits)
S3method(as.networx,phylo)
S3method(as.networx,splits)
S3method(as.phyDat,AAStringSet)
S3method(as.phyDat,AAbin)
S3method(as.phyDat,DNAStringSet)
S3method(as.phyDat,DNAbin)
S3method(as.phyDat,MultipleAlignment)
S3method(as.phyDat,alignment)
S3method(as.phyDat,ancestral)
S3method(as.phyDat,character)
S3method(as.phyDat,data.frame)
S3method(as.phyDat,factor)
Expand All @@ -40,6 +44,8 @@ S3method(cbind,phyDat)
S3method(cophenetic,networx)
S3method(cophenetic,splits)
S3method(glance,phyDat)
S3method(glance,pml)
S3method(glance,pmlMix)
S3method(hash,multiPhylo)
S3method(hash,phylo)
S3method(identify,networx)
Expand All @@ -55,6 +61,7 @@ S3method(plot,pml)
S3method(plot,pmlCluster)
S3method(plot,pmlPart)
S3method(print,SOWH)
S3method(print,ancestral)
S3method(print,codonTest)
S3method(print,phyDat)
S3method(print,pml)
Expand Down Expand Up @@ -97,12 +104,14 @@ export(addTrivialSplits)
export(add_boxplot)
export(add_ci)
export(add_edge_length)
export(add_support)
export(allCircularSplits)
export(allCompat)
export(allDescendants)
export(allSitePattern)
export(allSplits)
export(allTrees)
export(ancestral)
export(ancestral.pars)
export(ancestral.pml)
export(as.Matrix)
Expand All @@ -123,6 +132,7 @@ export(coalSpeciesTree)
export(codon2dna)
export(codonTest)
export(compatible)
export(composition_test)
export(consensusNet)
export(coords)
export(createLabel)
Expand All @@ -140,10 +150,13 @@ export(dist.p)
export(distanceHadamard)
export(distinct.splits)
export(diversity)
export(dna2aa)
export(dna2codon)
export(edQt)
export(fhm)
export(fitch)
export(gap_as_ambiguous)
export(gap_as_state)
export(genlight2phyDat)
export(getClans)
export(getClips)
Expand All @@ -154,10 +167,13 @@ export(glance)
export(h2st)
export(h4st)
export(hadamard)
export(has_gap_state)
export(hash)
export(keep_as_tip)
export(ldfactorial)
export(lento)
export(lli)
export(ltg2amb)
export(map_duplicates)
export(mast)
export(matchSplits)
Expand All @@ -184,6 +200,7 @@ export(phyDat2alignment)
export(plotAnc)
export(plotBS)
export(plotRates)
export(plotSeqLogo)
export(plot_gamma_plus_inv)
export(pml)
export(pml.control)
Expand All @@ -203,7 +220,6 @@ export(rNNI)
export(rSPR)
export(random.addition)
export(ratchet.control)
export(read.aa)
export(read.nexus.dist)
export(read.nexus.networx)
export(read.nexus.partitions)
Expand All @@ -218,17 +234,20 @@ export(simSeq)
export(splitsNetwork)
export(sprdist)
export(superTree)
export(supgma)
export(threshStateC)
export(tidy)
export(transferBootstrap)
export(treedist)
export(upgma)
export(wRF.dist)
export(wpgma)
export(write.ancestral)
export(write.nexus.dist)
export(write.nexus.networx)
export(write.nexus.splits)
export(write.phyDat)
export(write.pml)
export(write.splits)
export(writeDist)
import(Rcpp)
Expand All @@ -243,6 +262,14 @@ importFrom(Matrix,sparseMatrix)
importFrom(fastmatch,fmatch)
importFrom(generics,glance)
importFrom(generics,tidy)
importFrom(ggplot2,facet_grid)
importFrom(ggplot2,facet_wrap)
importFrom(ggplot2,ggplot)
importFrom(ggplot2,scale_x_continuous)
importFrom(ggseqlogo,geom_logo)
importFrom(ggseqlogo,ggseqlogo)
importFrom(ggseqlogo,make_col_scheme)
importFrom(ggseqlogo,theme_logo)
importFrom(grDevices,adjustcolor)
importFrom(grDevices,col2rgb)
importFrom(grDevices,hcl.colors)
Expand Down Expand Up @@ -274,9 +301,9 @@ importFrom(graphics,title)
importFrom(igraph,E)
importFrom(igraph,all_shortest_paths)
importFrom(igraph,decompose)
importFrom(igraph,graph)
importFrom(igraph,graph_from_adjacency_matrix)
importFrom(igraph,layout_nicely)
importFrom(igraph,make_graph)
importFrom(igraph,shortest_paths)
importFrom(igraph,topo_sort)
importFrom(igraph,vcount)
Expand All @@ -286,8 +313,12 @@ importFrom(stats,AIC)
importFrom(stats,BIC)
importFrom(stats,aggregate)
importFrom(stats,as.dist)
importFrom(stats,binomial)
importFrom(stats,chisq.test)
importFrom(stats,constrOptim)
importFrom(stats,cophenetic)
importFrom(stats,cor)
importFrom(stats,dbinom)
importFrom(stats,dgamma)
importFrom(stats,ecdf)
importFrom(stats,hclust)
Expand All @@ -313,6 +344,7 @@ importFrom(stats,update)
importFrom(stats,xtabs)
importFrom(utils,combn)
importFrom(utils,download.file)
importFrom(utils,head)
importFrom(utils,installed.packages)
importFrom(utils,packageDescription)
importFrom(utils,read.table)
Expand Down
55 changes: 51 additions & 4 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
CHANGES in PHANGORN VERSION 2.12.0
CHANGES in PHANGORN VERSION 3.0.0

NEW FEATURES

o new function supgma, performing serial sampled UPGMA

(Drummond, Rodrigo 2000)

o new function gap_as_state, treating gaps as a state.

o new function keep_as_tip allows to prune a tree and keep nodes as a tip

(suggested by Hedvig Skirgård)

o nnls now can estimate trees with calibrations and tip dated trees

o the functions Descendants, Ancestors, Siblings, mrca.phy now also accept a

character vector for the node argument and not only integers.

o Ancestral state reconstructionwas in parts rewritten. Output is now an

object of class ancestral. E.g. ancestral states of constant sites are now

always this state.

o Improvements to several plot functions to get nicer plots out of the box.

o Nicer defaults for plot.pml, mainly for rooted trees.

o plotAnc got an argument scheme allowing to use different color schemes,

especially for amino acid models shared with image.AAbin.

o plot.networx gets two additional arguments, direction is in plot.phylo and

angle to rotate the network.

o new function composition_test comparing indicating possible problems

with base / state composition.


OTHER CHANGES

Expand All @@ -12,11 +53,17 @@ OTHER CHANGES

which were implicitly using "estimated".

o some improvements to pmlPart
o some improvements to pmlPart.

o the sankoff algorithm has been rewritten.

BUG FIXES

o pml_bb roots the tree, if method is either ultrametric or tipdated. Fixes

o nicer defaults for plot.pml
problem when modelTest object was supplied.

o the sankoff algorithm has been rewritten
o nnls.tree now checks if the tree has singletons.


CHANGES in PHANGORN VERSION 2.11.0
Expand Down
10 changes: 7 additions & 3 deletions R/Coalescent.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,13 @@ comp2 <- function(x, y) {
#' @references Liu, L., Yu, L. and Pearl, D. K. (2010) Maximum tree: a
#' consistent estimator of the species tree. \emph{Journal of Mathematical
#' Biology}, \bold{60}, 95--106.
#' @examples
#' ## example in Liu et al. (2010)
#' tr1 <- read.tree(text = "(((B:0.05,C:0.05):0.01,D:0.06):0.04,A:0.1);")
#' tr2 <- read.tree(text = "(((A:0.07,C:0.07):0.02,D:0.09):0.03,B:0.12);")
#' TR <- c(tr1, tr2)
#' sp_tree <- coalSpeciesTree(TR)
#' @keywords cluster
#'
#' @export
coalSpeciesTree <- function(tree, X = NULL, sTree = NULL) {
if (is.null(X)) return(speciesTree(tree))
Expand Down Expand Up @@ -98,8 +103,7 @@ coalSpeciesTree <- function(tree, X = NULL, sTree = NULL) {
Labels = attr(X, "levels"), Size = l, class = "dist",
Diag = FALSE, Upper = FALSE
)

sTree <- upgma(dm, "single")
sTree <- as.phylo(hclust(dm, method = "single"))
# dm of pairwise states
}
else {
Expand Down
Loading
Loading