CCF_parser: Parser function for the required 'CCF' input field.

View source: R/CCF_parser.R

CCF_parserR Documentation

Parser function for the required CCF input field.

Description

This function can parse a string in the format R1:0.1;R2:0.4;R3:0.9 to extract a 3-dimensional named vector with names R1, R2 and R3, and values 0.1, 0.4 and 0.9.

This function can be used when parsing an input dataset in revolver_cohort, the function that creates a REVOLVER cohort.

Usage

CCF_parser(x)

Arguments

x

The string to parse, the accepted format for this function is something like R1:0.1;R2:0.4;R3:0.9.

Value

A parsed named vector.

Note

This function will not convert the types of the parsed entries.

See Also

Other Cohort creation: compute_clone_trees(), compute_mutation_trees(), input_custom_trees(), revolver_check_cohort(), revolver_cohort()

Examples

# The output is a string 3-dimensional vector  
CCF_parser("R1:0.1;R2:0.4;R3:0.9")

caravagn/revolver documentation built on May 21, 2022, 5:48 p.m.