nmdp-bioinformatics / imgt2aa

extract aligned amino acid sequences from IMGT/HLA
GNU Lesser General Public License v3.0
4 stars 3 forks source link

imgt2aa

extract aligned amino acid sequences from IMGT/HLA

Prerequisites

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

Run

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:

Quarterly

Run this to create the .sap and KIR files.

./quarterly.pl -v 3.56.0

How it works

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.

TODO

Martin Maiers mmaiers@nmdp.org