read_macs_output: read ms-formatted MaCS output into a matrix of haplotypes.

View source: R/RcppExports.R

read_macs_outputR Documentation

read ms-formatted MaCS output into a matrix of haplotypes.

Description

This is implemented in Rcpp for speed. It is designed to read a single replicate coalescent simulation in macs' msformatter format and convert the 0/1's to 1/2's and return in a big integer matrix of haplotypes that can then be put together as desired later. (i.e. different pops and into different diploid individuals)

Usage

read_macs_output(Input)

Arguments

Input

the path to the mac | msformatter output file to read in. Note that tilde expansion will not occur on this path


eriqande/glads documentation built on April 12, 2022, 9:18 a.m.