removeSeq {LymphoSeq} | R Documentation

## Remove sequence

### Description

Removes an amino acid sequence and associated data from all instances within a list of data frames and then recomputes the frequencyCount.

### Usage

    removeSeq(file.list, sequence)

### Arguments

`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.

### Value

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.

### Examples

    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")

[Package LymphoSeq version 1.12.0 Index]