ms: Functions to run ms and parse ms-like output

run_msR Documentation

Functions to run ms and parse ms-like output

Description

run_ms() executes ms as an external program.

parse_ms() transforms ms-like output into a list of matrices.

split_ms() splits ms-like output by replications.

as_int_matrix() converts a string vector into an integer matrix.

Usage

run_ms(nsam = 4L, nreps = 2L, theta = 5)

parse_ms(msout, byrow = FALSE)

split_ms(msout)

as_int_matrix(samples, byrow = FALSE)

Arguments

nsam

number of samples

nreps

number of repeats

theta

population mutation rate

msout

string vector of ms-like output

byrow

logical value passed to matrix

samples

string vector

Value

run_ms() returns a string vector

parse_ms() returns a list of integer matrices

split_ms() returns a list of string vector

as_int_matrix() returns an integer matrix


heavywatal/rwtl documentation built on April 2, 2024, 6:08 p.m.