reassignAlleles {tigger} | R Documentation |
Correct allele calls based on a personalized genotype
Description
reassignAlleles
uses a subject-specific genotype to correct
correct preliminary allele assignments of a set of sequences derived
from a single subject.
Usage
reassignAlleles(
data,
genotype_db,
v_call = "v_call",
seq = "sequence_alignment",
method = "hamming",
path = NA,
keep_gene = c("gene", "family", "repertoire")
)
Arguments
data |
|
genotype_db |
vector of named nucleotide germline sequences
matching the calls detailed in |
v_call |
name of the column in |
seq |
name of the column in |
method |
method to use when realigning sequences to
the genotype_db sequences. Currently, only |
path |
directory containing the tool used in the realignment method, if needed. Hamming distance does not require a path to a tool. |
keep_gene |
string indicating if the gene ( |
Details
In order to save time, initial gene assignments are preserved and
the allele calls are chosen from among those provided in genotype_db
,
based on a simple alignment to the sample sequence.
Value
A modifed input data.frame
containing the best allele call from
among the sequences listed in genotype_db
in the
v_call_genotyped
column.
Examples
# Extract the database sequences that correspond to the genotype
genotype_db <- genotypeFasta(SampleGenotype, SampleGermlineIGHV, novel=SampleNovel)
# Use the personlized genotype to determine corrected allele assignments
output_db <- reassignAlleles(AIRRDb, genotype_db, v_call="v_call",
seq="sequence_alignment")