read_CAPRI_string {CIMICE} | R 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
    ")

[Package CIMICE version 1.2.1 Index]