Choose the normal phenotype sequence for TRBJ2-2

This commit is contained in:
coolneng 2021-05-15 17:36:58 +02:00
parent 2acec89f84
commit e4189cab01
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,11 @@ parse_metadata <- function(metadata) {
#' @return A \code{character} containing the gene sequence
match_id_sequence <- function(names, vdj_segments, id) {
matches <- grep(names, pattern = id)
row <- matches[1]
if(id == "TRBJ2-2"){
row <- matches[2]
} else {
row <- matches[1]
}
return(as.character(vdj_segments[row]))
}