Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yinglia committed Feb 2, 2023
1 parent 32e037f commit 557e4bc
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Package ‘rapidphylo’

## Overview

`rapidphylo` is an R package for rapid estimation of tree-topology from large allele frequency data using Root Distances Method, under a Brownian Motion model. This is achieved by first computing the maximum likelihood estimates of the root distances, and then inferring the tree-topology from them.

## Installation

Install the released version of this package from CRAN

```r
install.packages("rapidphylo")
```

Or install the development version of this package from GitHub

```r
remotes::install_github('ArindamRoyChoudhury/rapidphylo', upgrade="never")
```


## Example

```r
# A dataset "Human_Allele_Frequencies" is loaded with the package;
# it has allele frequencies in 31,000 sites for 4 human populations and one outgroup human population.

# check data dimension
dim(Human_Allele_Frequencies)

# run RDM function
rd_tre <- RDM(Human_Allele_Frequencies, outgroup = "San", use = "pairwise.complete.obs")

# result visualization
plot(rd_tre, use.edge.length = FALSE, cex = 0.5)
```

0 comments on commit 557e4bc

Please sign in to comment.