rhierbaps

rhierbaps: R implementation of hierBAPS

https://github.com/gtonkinhill/rhierbaps

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 1 committers (100.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.5%) to scientific vocabulary

Keywords

population-genetics population-genomics population-structure r
Last synced: 6 months ago · JSON representation

Repository

rhierbaps: R implementation of hierBAPS

Basic Info
  • Host: GitHub
  • Owner: gtonkinhill
  • License: other
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 1.63 MB
Statistics
  • Stars: 35
  • Watchers: 4
  • Forks: 3
  • Open Issues: 1
  • Releases: 0
Topics
population-genetics population-genomics population-structure r
Created over 8 years ago · Last pushed almost 5 years ago
Metadata Files
Readme License

README.Rmd

---
bibliography: vignettes/bibliography.bib
output: 
  github_document
---



```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "inst/vignette-supp/",
  echo=TRUE, 
  warning=FALSE, 
  message=FALSE,
  tidy=TRUE
)
```


  [![R-CMD-check](https://github.com/gtonkinhill/rhierbaps/workflows/R-CMD-check/badge.svg)](https://github.com/gtonkinhill/rhierbaps/actions)



# rhierbaps

We have recently developed a faster verion of the BAPs clustering method. It can be found [here](https://github.com/gtonkinhill/fastbaps). 

## Installation
`rhierbaps` is available on CRAN.
```{r, eval=FALSE}
install.packages("rhierbaps")
```

The development version is available on github. It can be installed with `devtools`
```{r, eval = FALSE}
install.packages("devtools")

devtools::install_github("gtonkinhill/rhierbaps")
```

If you would like to also build the vignette with your installation run:

```{r, eval=FALSE}
devtools::install_github("gtonkinhill/rhierbaps", build_vignettes = TRUE)
```

## Quick Start
Run hierBAPS.

```{r, fig.width =8, fig.height=6, fig.align='center'}
# install.packages("rhierbaps")
library(rhierbaps)

fasta.file.name <- system.file("extdata", "seqs.fa", package = "rhierbaps")
snp.matrix <- load_fasta(fasta.file.name)
hb.results <- hierBAPS(snp.matrix, max.depth=2, n.pops=20, quiet = TRUE)
head(hb.results$partition.df)
```

```{r, echo = FALSE}
intro_rmd <- 'vignettes/introduction.Rmd'

raw_rmd <- readLines(intro_rmd)

# remove yaml 
yaml_lines <- grep("---", raw_rmd)

# remove appendix (session info)
appendix <- grep("Session", raw_rmd)

compressed_rmd <- raw_rmd[c(-seq(yaml_lines[1], yaml_lines[2], by = 1), 
                            -seq(appendix, length(raw_rmd)))]
writeLines(compressed_rmd, "child.Rmd")
```

```{r, child = 'child.Rmd'}
```

```{r cleanup, echo=FALSE, include=FALSE}
if (file.exists("child.Rmd")) {
  file.remove("child.Rmd")
}
```

Owner

  • Name: Gerry Tonkin-Hill
  • Login: gtonkinhill
  • Kind: user
  • Location: Australia

Postdoctoral Fellow at the University of Oslo | previously at the Sanger Institute | pathogen genomics, statistics, machine learning

GitHub Events

Total
Last Year

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 42
  • Total Committers: 1
  • Avg Commits per committer: 42.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Gerry Tonkin-Hill g****0@c****k 42
Committer Domains (Top 20 + Academic)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 323 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 2
  • Total versions: 5
  • Total maintainers: 1
cran.r-project.org: rhierbaps

Clustering Genetic Sequence Data Using the HierBAPS Algorithm

  • Versions: 5
  • Dependent Packages: 1
  • Dependent Repositories: 2
  • Downloads: 323 Last month
Rankings
Stargazers count: 9.5%
Forks count: 14.2%
Dependent packages count: 18.1%
Dependent repos count: 19.3%
Average: 19.8%
Downloads: 37.6%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • ape * imports
  • ggplot2 * imports
  • matrixStats * imports
  • patchwork * imports
  • purrr * imports
  • utils * imports
  • formatR * suggests
  • ggtree * suggests
  • knitr * suggests
  • markdown * suggests
  • phytools * suggests
  • rmarkdown * suggests
  • testthat * suggests