Separate multi-subunit protein names into one name per row
Source:R/separateSubunits.R
dot-separateSubunits.Rd
Separates a column at a provided pattern, separates the second second into individual letters and joins segments with a provided joining pattern
Arguments
- df
A data.frame or tibble
- ab
The name of the column containing names to split
- new_col
The name of the new column containing split names
- pattern
The regex pattern to use for splitting
- join_pattern
sprintf pattern for joining t1 (start) and t2 (end)
- t1
first temporary column name
- t2
second temporary column name