Description Usage Arguments Details Value Author(s) Examples
Parse HLA Database alignment files that are present in a directory, as specified by input, an generate a class object that can be used in further analysis. The function only parse one type of aligment file at the time. There is 3 types of alignment files that can be parsed: CDS sequence, genomic and protein.
Beware that the names of the alignment files should not be changed as the name is used to identify the gene that is currently parsed.
1 | parseHLADbAlignment(hlaDbPath, seqType = c("prot", "nuc", "gen"))
|
hlaDbPath |
A |
seqType |
A |
See http://hla.alleles.org/alleles/text_index.html
An object of class HLAdb
with 3 entries. The entries are:
refSeq
A list
of character
string that
represent reference sequences; one sequence
per HLA gene.
posInit
A list
of integer
;
one starting position per HLA gene.
HLAAlignment
A data.table
containing the information
for each allele of each HLA gene.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 | ## Get path where some HLA database files are stored
directory <- system.file("extdata", package = "HLAClustRView")
## Parse HLA database files of protein type
HLAInfo <- parseHLADbAlignment(hlaDbPath=directory, seqType="prot")
## Show reference sequences
HLAInfo$refSeq
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.