Skip to content

Commit

Permalink
ready for v0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cecileane committed Jun 17, 2022
1 parent 551ea79 commit dbd8ae2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PhyloNetworks"
uuid = "33ad39ac-ed31-50eb-9b15-43d0656eaa72"
license = "MIT"
version = "0.14.3"
version = "0.15.0"

[deps]
BioSequences = "7e6ae17a-c86d-528c-b3b9-7f778a29fe59"
Expand Down
15 changes: 12 additions & 3 deletions docs/src/man/multiplealleles.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ will be used to calculate the quartet CF. If a given gene tree has
each set of 4 alleles is given a weight of `1/(n_a n_b n_c n_d)`
to calculated of the CF for `A,B,C,D` (such that the total weight from
this particular gene trees is 1).
It is save to save this data frame, then use it for `snaq!` like this:
It is safe to save this data frame, then use it for `snaq!` like this:

```julia
CSV.write("tableCF_species.csv", df) # to save the data frame to a file
Expand Down Expand Up @@ -67,7 +67,7 @@ species level: with the allele names replaced by the appropriate species names.
individual are given the same name (the individual's 'name') across
all genes for which that individual was sequenced.
- For a four-taxon set `A,B,C,D`, all the individuals from `A`, `B`, `C` and `D`
are considered, say `a1,b1,c1,d1`, `a2,b1,c1,d1`, `a1,b2,c1,d1`, `a2,b2,c1,d1`
are considered, say `(a1,b1,c1,d1)`, `(a2,b1,c1,d1)`, `(a1,b2,c1,d1)`, `(a2,b2,c1,d1)`
and so on. The CFs of these 4-taxon sets are averaged together to obtain the
CFs at the species level. This procedures gives more weight to genes that have
many alleles (because they contribute to more sets of 4 individuals) and less
Expand All @@ -92,6 +92,12 @@ These quartets, with repeated species, are informative about the population
size of extant populations, i.e. about the lengths of external branches in
coalescent units.

The main difference between this section compared to the previous section
("between-species 4-taxon sets") is that quartets with 2 individuals from
the same species are included here, such as `a1,a2,b1,c1`.
Also, the weighting of quartets is different. Here, genes with more alleles
are given more weight.

now we can run snaq:

```julia
Expand All @@ -104,7 +110,10 @@ If `snaq!` takes too long that way, we can try a less ambitious estimation
that does not estimate the external branch lengths, that is,
*without* using quartets that have 2 individuals from the same species.
To do so, we can use the quartet concordance factors at the species level,
but filter out the quartets with one (or more) species repeated:
but filter out the quartets with one (or more) species repeated.
This can be done as in the first section ("between-species 4-taxon sets")
to give equal weight to all genes,
or as shown below to give more weight to genes that have more alleles:

```julia
df_sp = writeTableCF(d_sp) # some quartets have the same species twice
Expand Down

2 comments on commit dbd8ae2

@cecileane
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

new features in newick network parsing:

  • faster reading of multiple phylogenies
  • negative edge lengths are now read, but set to 0
  • nexus-style comments are allowed (and ignored)

breaking change:

  • nulldeviance considers the null model without an intercept if the input model doesn't have one.

bug fixes in:

  • reading of fasta files, with ambiguous sites
  • deleteleaf! for highly non-tree-child networks
  • hybridlambdaformat with existing original internal node names, e.g. when read as bootstrap values, that caused Hybrid-Lambda to fail silently.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/62557

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.15.0 -m "<description of version>" dbd8ae2e5f5496fac26dbc2579e924374e8502dd
git push origin v0.15.0

Please sign in to comment.