Skip to contents

The input should be a named list where the names represent lineages and the values are vectors of mutations. The output will be a valid lineage matrix.

Usage

lineage_defs_from_list(lineage_list)

Arguments

lineage_list

A named list of vectors of mutations. Mutation names should be in the same format as those in your data, otherwise post-processing will be required.

Value

A lineage matrix (rownames are lineages, colnames are mutations, entry i,j is 1 if lineage i contains mutation j, 0 otherwise).