Convert Size Table to Fragments
size_table_to_fragments.RdThis function converts a size table data frame into a list of fragments. class.
Details
This function takes a size table data frame and converts it into a list of fragments objects. The column names must be "unique_id" (unique sample id), "size" (base pair size), and "signal" (the signal associated with fragment). The dataframe should be long (eg bind rows if the data are separate).
See also
repeat_table_to_fragments(), size_table_to_fragments(), read_fsa()
Examples
size_table <- trace::example_data
colnames(size_table)[c(2, 5, 6)] <- c("unique_id", "size", "signal")
fragments_list <- size_table_to_fragments(size_table)