View source: R/align_imgt_ref_to_TCR_seq.R
align_imgt_ref_to_TCR_seq | R Documentation |
With Biostrings::pairwiseAlignment() the borders of the V(D)J-segments in your TCR sequence can be determined. The sequence within these border may then be used for further steps. In case of mouse, IMGT gene segments from Mus musculus are preferred.
align_imgt_ref_to_TCR_seq(
chain,
TCR,
cl_long,
imgt_ref,
sequence_col = "consensus_seq",
C_allele = NULL,
type = "local",
...
)
chain |
character which TCR chain to align, currently only TRA and TRB |
TCR |
a named vector; which of your TCRs to align, the name indicates which column name of cl_long to use, the value indicates what to look for in that column |
cl_long |
clonotype data frame long format |
imgt_ref |
the prepared data.frame of IMGT references |
sequence_col |
name of the column to pull sequences from |
C_allele |
optional name of the constant allele to use for the alignment, must be the entry in the "Allele"-column of the imgt_ref data frame |
type |
type of alignment |
... |
arguments to MultiplePairwiseAlignmentsToOneSubject |
cl_wide |
clonotype data frame wide format |
a list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.