extract aligned amino acid sequences from IMGT/HLA
Need to first pull the hla.xml file
$ curl ftp://ftp.ebi.ac.uk/pub/databases/ipd/imgt/hla/xml/hla.xml.zip -o hla.xml.zip
$ unzip hla.xml.zip
Note the database version (e.g. 3.56.0).
$ perl imgt2aa.pl -v 3.56.0
Generates output files:
data/
HLA-A.db
HLA-B.db
HLA-C.db
HLA-DRB1.db
HLA-DQB1.db
HLA-DPB1.db
Each output file is tab-delimited with:
Run this to create the .sap and KIR files.
./quarterly.pl -v 3.56.0
The hla.xml file contains nucleotide sequences and cDNA coordinates for HLA alleles. The nucleotides for Exon2 are extracted and parsed. Then the cDNA coordinates are used to offset the AA sequence such that the first position in the string (possibly "*") corresponds to AA 1 in the mature protein.
Martin Maiers mmaiers@nmdp.org