repeat_table_to_repeats {trace} | R Documentation |
Convert Repeat Table to Repeats Fragments
Description
This function converts a repeat table data frame into a list of fragments_repeats. class.
Usage
repeat_table_to_repeats(df, unique_id, repeat_col, frequency_col)
Arguments
df |
A data frame containing the repeat data. |
unique_id |
A character string indicating the column name for unique identifiers. |
repeat_col |
A character string indicating the column name for the repeats. |
frequency_col |
A character string indicating the column name for the repeat frequencies. |
Details
This function takes a repeat table data frame and converts it into a list of repeats fragments. The function allows specifying column names for repeats, frequencies, and unique identifiers.
Value
A list of fragments_repeats objects.
Examples
repeat_table <- trace::example_data_repeat_table
test_fragments <- repeat_table_to_repeats(
repeat_table,
repeat_col = "repeats",
frequency_col = "height",
unique_id = "unique_id"
)
[Package trace version 0.6.0 Index]