Spaces:
Runtime error
Runtime error
Nicky Nicolson
commited on
Commit
•
7875bd2
1
Parent(s):
bc6bc45
add missing method def
Browse files- tab2csv.py +9 -0
tab2csv.py
CHANGED
@@ -4,6 +4,15 @@ import bananompy
|
|
4 |
from tqdm import tqdm
|
5 |
tqdm.pandas()
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
if __name__ == '__main__':
|
8 |
parser = argparse.ArgumentParser()
|
9 |
parser.add_argument("inputfile")
|
|
|
4 |
from tqdm import tqdm
|
5 |
tqdm.pandas()
|
6 |
|
7 |
+
def getFirstFamilyName(s):
|
8 |
+
firstFamilyName = None
|
9 |
+
parsed = bananompy.parse(s)
|
10 |
+
try:
|
11 |
+
firstFamilyName = parsed[0]['parsed'][0]['family']
|
12 |
+
except:
|
13 |
+
pass
|
14 |
+
return firstFamilyName
|
15 |
+
|
16 |
if __name__ == '__main__':
|
17 |
parser = argparse.ArgumentParser()
|
18 |
parser.add_argument("inputfile")
|