# Create a list of allele names
genes <- c("IGHV1-69D*01","IGHV1-69*01","IGHV4-38-2*01","IGHV1-69-2*01",
"IGHV2-5*01","IGHV1-NL1*01", "IGHV1-2*01,IGHV1-2*05",
"IGHV1-2", "IGHV1-2*02", "IGHV1-69*02")
# Sort genes by name
sortGenes(genes)
# Sort genes by position in the locus
sortGenes(genes, method="pos")
Run the code above in your browser using DataLab