removeSeq {LymphoSeq} | R Documentation |
Removes an amino acid sequence and associated data from all instances within a list of data frames and then recomputes the frequencyCount.
removeSeq(file.list, sequence)
file.list |
A list of data frames imported using the LymphoSeq function readImmunoSeq. "aminoAcid", "count", and "frequencyCount" are required columns. |
sequence |
A character vector of one or more amino acid sequences to remove from the list of data frames. |
Returns a list of data frames like the one imported except all rows with the specified amino acid sequence are removed. The frequencyCount is recalculated.
file.path <- system.file("extdata", "TCRB_sequencing", package = "LymphoSeq") file.list <- readImmunoSeq(path = file.path) searchSeq(list = file.list, sequence = "CASSDLIGNGKLFF") cleansed <- removeSeq(file.list = file.list, sequence = "CASSDLIGNGKLFF") searchSeq(list = cleansed, sequence = "CASSDLIGNGKLFF")