Skip to content

Commit

Permalink
Merge 4cfecea into d449ffc
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed Dec 1, 2020
2 parents d449ffc + 4cfecea commit 0afe03e
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 3 deletions.
7 changes: 6 additions & 1 deletion mhcgnomes/data/gene_aliases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,9 @@ Gaga:
# for Gaga-BF2"
Chi-B: BF2
YF1w: YF1
YF2w: YF2
YF2w: YF2
FLA:
DRA: DRA1
DRB: DRB1
DPA: DPA1
DPB: DPB1
32 changes: 32 additions & 0 deletions mhcgnomes/data/species.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,42 @@ Canis simensis:
#
# Felidae
#
# Sources:
# - https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7375346/
#
############################
Felis sp.:
prefix: FLA
name: Cat
genes:
Ia:
- E
- H
- K
Ib:
- A
- C
- F
- J
- L
- M
- O
- Q
- S
IIa:
DP:
- DPA1
- DPB1
DR:
- DRA1
- DRB1
IIb:
DO:
- DOA
- DOB
DM:
- DMA
- DMB
Felis catus:
parent: Felis sp.
prefix: Feca
Expand Down
2 changes: 1 addition & 1 deletion mhcgnomes/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.5.0"
__version__ = "1.6.0"
6 changes: 6 additions & 0 deletions test/test_cat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from mhcgnomes import parse
from nose.tools import eq_

def test_parse_FLA_E_18_01():
s = "FLA-E*18:01"
eq_(parse(s, verbose=True).to_string(), s)
1 change: 1 addition & 0 deletions test/test_cow.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ def test_parse_BoLA_N_001001_with_colon_sep():
eq_(allele.species.prefix, "BoLA")
eq_(allele.gene.name, "N")
eq_(allele.allele_fields, ("001", "01"))

3 changes: 2 additions & 1 deletion test/test_horse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from mhcgnomes import parse, Haplotype
from mhcgnomes import parse, Haplotype, Allele
from nose.tools import eq_

def test_parse_haplotype_ELA_A1():
Expand All @@ -14,3 +14,4 @@ def test_parse_haplotype_ELA_A1_lowercase():
assert type(result) is Haplotype
eq_(result.name, "A1")
assert result.species.is_horse

0 comments on commit 0afe03e

Please sign in to comment.