Skip to content

Commit 8b875ab

Browse files
committed
Imports together
1 parent ab32d6a commit 8b875ab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pyard/util.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
import copy
4-
import re
5-
import urllib.request
6-
import zipfile
73
#
84
# pyard pyARD
95
# Copyright (c) 2018 Be The Match operated by National Marrow Donor Program. All Rights Reserved.
@@ -25,6 +21,10 @@
2521
# > http://www.fsf.org/licensing/licenses/lgpl.html
2622
# > http://www.opensource.org/licenses/lgpl-license.php
2723
#
24+
import copy
25+
import re
26+
import urllib.request
27+
import zipfile
2828
from datetime import datetime, date
2929

3030
import pandas as pd
@@ -44,7 +44,7 @@ def all_macs(csv_file, data_dir, url='https://hml.nmdp.org/mac/files/numer.v3.zi
4444
if re.search("^\D", line) and not re.search("CODE", line) and not re.search("LAST", line):
4545
data.append(line.split("\t"))
4646
f.close()
47-
df = pd.DataFrame(data, columns=['Code','Alleles'])
47+
df = pd.DataFrame(data, columns=['Code', 'Alleles'])
4848
df.to_csv(csv_file, header=True, index=False)
4949
df['Alleles'] = df['Alleles'].apply(lambda x: x.split("/"))
5050
mac_dict = df.set_index("Code").to_dict('index')

0 commit comments

Comments
 (0)