[](https://travis-ci.org/SimonGreenhill/RateCounter)
[](https://coveralls.io/github/SimonGreenhill/RateCounter?branch=master)
[](https://doi.org/10.3389/fpsyg.2018.00576)
*RateCounter* is a python library and program for calculating the number of rate differences between taxa given a nexus file.
It is based on the method in:
```
Greenhill SJ, Hua X, Welsh CF, Schneemann H & Bromham L. 2018. [Population Size and the Rate of Language Evolution: A Test across Indo-European, Austronesian and Bantu Languages](https://www.frontiersin.org/articles/10.3389/fpsyg.2018.00576/abstract). Frontiers in Psychology doi: 10.3389/fpsyg.2018.00576
```
Please cite this paper if you find this software helpful.
**Installation:**
```shell
pip install RateCounter
```
**Usage:**
As a standalone program:
```shell
> ratecounter --help
usage: ratecounter [-h] [-v] nexus taxon1 taxon2
Calculate rates from the nexus for the two taxa
positional arguments:
nexus nexusfile
taxon1 Taxon 1
taxon2 Taxon 2
optional arguments:
-h, --help show this help message and exit
-v, --verbose increases verbosity
> ratecounter test.nex Taxon1 Taxon2
GAIN A 1
GAIN B 1
LOSS A 1
LOSS B 1
TOTAL A 2
TOTAL B 2
ABSENCE 1
RETENTION 1
SHARED GAIN 1
SHARED LOSS 1
UNCOUNTABLE 19
TOTAL 27
```
As a python library
```python
from ratecounter.main import RateCounter
rc = RateCounter(nexusfile=args.nexusfile)
scores = rc.get_scores(Taxon1, Taxon2)
```
Metadata
Release files for RateCounter 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| RateCounter-1.1.tar.gz | 7.5 kB | Without provenance | Details for RateCounter-1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| RateCounter-1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for RateCounter-1.1-py2.py3-none-any.whl |
Total release size: 17.8 kB
Release files / RateCounter-1.1.tar.gz
| Download URL | RateCounter-1.1.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a1aaff2b4b05c8715f7b50dbc7e2b8c4cb4f1c0b3a330b753f4a30367017d3a
|
|
BLAKE2b-256 checksum How to use checksums |
98c4cef751b8325b2b758c60fab2dbd093cb3991751517c0ea6d3ceca31fb3d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Release files / RateCounter-1.1-py2.py3-none-any.whl
| Download URL | RateCounter-1.1-py2.py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1688f8d25495ed20bc3197f75040aa54b682da5e801935c2683120022d098a64
|
|
BLAKE2b-256 checksum How to use checksums |
0d1c72d228cdfcab9b313ca39e7e444c5d7f550578de8a7b6c3b0d17ed78d7e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for RateCounter 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.