Skip to content

Commit f306018

Browse files
authored
Added MIC support 4
1 parent 08c5f8b commit f306018

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hladownload/eplet.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
'DRB': "https://www.epregistry.com.br/index/databases/database/DRB/",
1616
'DQ': "https://www.epregistry.com.br/index/databases/database/DQ/",
1717
'DP': "https://www.epregistry.com.br/index/databases/database/DP/",
18+
'MICB': "http://epregistry.ufpi.br/index/databases/database/MICA/"
1819
}
1920
#Request header to prevent 403 error
2021
requestHeader = {
@@ -37,6 +38,7 @@
3738
'DRB': ['DRB1', 'DRB3', 'DRB4', 'DRB5'],
3839
'DQ': ['DQA1', 'DQB1'],
3940
'DP': ['DPA1', 'DPB1'],
41+
'MICB': ['MICB']
4042
}
4143
locusToLocusGroup = {
4244
'A': 'ABC',
@@ -50,7 +52,8 @@
5052
'DQA1': 'DQ',
5153
'DQB1': 'DQ',
5254
'DPA1': 'DP',
53-
'DPB1': 'DP'
55+
'DPB1': 'DP',
56+
'MICB': 'MICB'
5457
}
5558
epletLoci = list(locusToLocusGroup.keys())
5659

@@ -266,4 +269,4 @@ def saveEplets(outputFolder, alignmentObject, extension = 'csv', delimiter = ','
266269
#Save the tables from the eplet maps
267270
tables = getMappedEpletTables(epletMaps, outputFolder, allEplets = allEplets)
268271
for name, table in tables.items():
269-
table.to_csv(join(outputFolder, f'{name}-eplets.{extension}'), index=False, sep=delimiter)
272+
table.to_csv(join(outputFolder, f'{name}-eplets.{extension}'), index=False, sep=delimiter)

0 commit comments

Comments
 (0)