Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
import argparse | |
import os | |
import zipfile | |
from collections import Counter | |
# gene_set = set(['rs2015343', 'rs12203592', 'rs4778136', 'rs9782955', | |
# 'rs4778138', 'rs3739070', 'rs11074314', 'rs11631797', | |
# 'rs12914687', 'rs1667394', 'rs3794604', 'rs3947367', | |
# 'rs4778241', 'rs7495174', 'rs7170869', |