read_CAPRI_string: Read "CAPRI" file from a string

View source: R/input.R

read_CAPRI_stringR Documentation

Read "CAPRI" file from a string

Description

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

Usage

read_CAPRI_string(txt)

Arguments

txt

string in valid "CAPRI" format

Value

the described mutational matrix as a (sparse) matrix

Examples

read_CAPRI_string("
s\\g A B C D
S1 0 0 0 1
S2 1 0 0 0
S3 1 0 0 0
S4 1 0 0 1
S5 1 1 0 1
S6 1 1 0 1
S7 1 0 1 1
S8 1 1 0 1
")


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