remove_fragments | R Documentation |
A convenient function to remove specific samples from a list of fragments.
remove_fragments(fragments_list, samples_to_remove)
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. |
A modified list of fragments with the specified samples removed.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.