View source: R/hla_read_alignment.R
hla_read_alignment | R Documentation |
Process HLA alignment data in *.nuc or *.gen files and return a data.frame.
hla_read_alignment(locus, imgtdb, imgtfile = c("nuc", "gen"), exons = NULL, by_exon = FALSE, keep_sep = FALSE)
locus |
character string. The HLA locus to be processed (e.g., "A", "DRB1"). |
imgtdb |
character string. Path to the IMGTHLA directory. |
imgtfile |
character string. Whether to process "nuc" or "gen" files. |
exons |
integer. Range of exons/introns (default is all exons/introns). |
by_exon |
logical. Whether to return sequences separated for each exon/intron (default FALSE). |
keep_sep |
logical. Whether to keep '|' as the separator between exons/introns. |
A data.frame.
## Not run: hla_read_alignment(locus = "DRB1", imgtdb = "~/IMGTHLA") ## End(Not run) ## Not run: hla_read_alignment(locus = "A", imgtdb = "~/IMGTHLA", exons = c(2, 3)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.