

def get_modules(premodules):
    """premodules is a list of strings for file like object where each line is a module, first value is module name
    and subsequent values are observations in that module. All are separated by tabs.
    """
    modules = OrderedDict()
    for line in premodules:
        line = line.strip().split('\t')