stackr

description <- readLines("DESCRIPTION")
rvers <- stringr::str_match(grep("R \\(", description, value = TRUE), "[0-9]{1,4}\\.[0-9]{1,4}\\.[0-9]{1,4}")[1,1]
version <- gsub(" ", "", gsub("Version:", "", grep("Version:", description, value = TRUE)))

lifecycle CRAN_Status_Badge Project Status: Active – The project has reached a stable, usable state and is being actively developed. DOI packageversion Last-changedate minimal R version

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

stackr: an R package to run stacks pipeline

This is the development page of stackr.

stackr package provides wrapper functions to run STACKS (process_radtags, ustacks, cstacks, sstacks, tsv2bam, gstacks and populations) inside R.

Who is it for ?

Overview of the differences from running stacks

Made it this far, here's more details:

Installation

To try out the dev version of stackr, copy/paste the code below:

if (!require("devtools")) install.packages("devtools")
devtools::install_github("thierrygosselin/stackr")
library(stackr)

Stacks modules and RADseq typical workflow

stackr package provides wrapper functions to run STACKS process_radtags, ustacks, cstacks, sstacks, tsv2bam, gstacks and populations inside R.

Below, a flow chart showing the corresponding stacks modules and stackr corresponding functions.

Vignette

Citation:

To get the citation, inside R:

citation("stackr")

Life cycle

stackr is quite mature, i've used it for almost 8 years with dozens of projects, but changes are inevitable.



thierrygosselin/stackr documentation built on April 13, 2025, 10:28 a.m.