remove_fragments {trace} | R Documentation |
Remove Samples from List
Description
A convenient function to remove specific samples from a list of fragments.
Usage
remove_fragments(fragments_list, samples_to_remove)
Arguments
fragments_list |
A list of fragments_repeats objects containing fragment data. |
samples_to_remove |
A character vector containing the unique IDs of the samples to be removed. |
Value
A modified list of fragments with the specified samples removed.
Examples
gm_raw <- trace::example_data
metadata <- trace::metadata
test_fragments <- peak_table_to_fragments(
gm_raw,
data_format = "genemapper5",
dye_channel = "B",
min_size_bp = 300
)
all_fragment_names <- names(test_fragments)
# pull out unique ids of samples to remove
samples_to_remove <- all_fragment_names[c(1, 5, 10)]
samples_removed <- remove_fragments(test_fragments, samples_to_remove)
[Package trace version 0.6.0 Index]