read_CAPRIpop_string: Read "CAPRIpop" file from a string

View source: R/input.R

read_CAPRIpop_stringR Documentation

Read "CAPRIpop" file from a string

Description

Read a "CAPRIpop" formatted file, from a text string

Usage

read_CAPRIpop_string(txt)

Arguments

txt

string in valid "CAPRIpop" format

Value

the described mutational matrix as a (sparse) matrix

Examples

read_CAPRIpop_string("
s\\g A B C D freqs
S1 0 0 0 1 0.1
S2 1 0 0 0 0.1
S3 1 0 0 0 0.2
S4 1 0 0 1 0.3
S5 1 1 0 1 0.05
S6 1 1 0 1 0.1
S7 1 0 1 1 0.05
S8 1 1 0 1 0.01
")


redsnic/CIMICE documentation built on March 30, 2022, 2:46 a.m.