getEditDistance: Function to calculate Levenshtein distance between defined...

View source: R/getEditDistance.R

getEditDistanceR Documentation

Function to calculate Levenshtein distance between defined sequence stretches of two longer sequences.

Description

Function to calculate Levenshtein distance between defined sequence stretches of two longer sequences.

Usage

getEditDistance(hits, query, subject, method = "levenshtein")

Arguments

hits

data.frame storing potential hits (donor pseudogenes) that explain a given gene conversion event. Each row corresponds to one definition using a given pseudogene. The boundaries of the pseudogene sequence and the observed repertorie sequence are given.

query

character, the full-length V gene sequence of the observed repertoire sequence for which gene conversion events are annotated.

subject

DNAStringSet object containing a set of pseudogene DNA sequences.

method

the method used to calculate string distances (default: "levenshtein")


Fraternalilab/BrepConvert documentation built on Oct. 14, 2022, 5:54 p.m.