Remove Samples from List
remove_fragments.Rd
A convenient function to remove specific samples from a list of fragments.
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)