Python uses a dot to access attributes, while R uses $; this function converts the python style into R so that we can use R code to populate variables with R lists. From this: '{sample.name}' to this: '{sample$name}'

.pyToR(str)

Arguments

str

String to recode

Value

string with the recoded accession syntax

Examples

.pyToR("{sample.genome}/{sample.read_type}/test")
#> [1] "{sample$genome}/{sample$read_type}/test"