Description Usage Arguments Details Value Author(s) Examples
Extract from the HLAdb
object, two sequences and
the reference for a group of specific regions. The final sequences are
the concatenation of the sequences of each region.
1 | getSeqCMP(HLAInfo, regionExt, typeS1, typeS2)
|
HLAInfo |
An object of class |
regionExt |
A |
typeS1 |
A line of the tibble data from the object data return readHLADataset |
typeS2 |
A line of the tibble data from the object data return readHLADataset HLA allele. |
TODO
A list
containing:
refSeq
a character
string containing the reference.
seqS1
a character
string containing the sequence of the
first HLA allele.
seqS2
a character
string containing the sequence of the
second HLA allele.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | library(dplyr)
## Get HLA protein database
data(hladb_protein_3.35.0)
## Two samples from same HLA gene
inputTibble <- tibble(SampleName=c("ERR188021", "ERR188021"),
AlleleName=c("1","2"),
GeneName=c("DRA", "DRA"),
AlleleGroup=c("01", "01"),
Protein=c("01", "01"),
SynSubst=c("01", "02"),
NonCoding=c("03", NA),
Suffix=c(NA, NA)
)
sample1 <- inputTibble[1,]
sample2 <- inputTibble[2,]#'
## Fix regions that will be extracted
regions <- data.frame(start=c(160, 200, 240), end=c(180, 220, 260))
## Extract subsequences
getSeqCMP(HLAInfo = hladb_protein_3.35.0, regionExt = regions,
typeS1 = sample1, typeS2 = sample2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.