def genomic_signal(fn, kind):
    try:
        klass = _registry[kind.lower()]
    except KeyError:
        raise ValueError(
            'No support for %s format, choices are %s'
            % (kind, _registry.keys()))
    m = klass(fn)
    m.kind = kind
    return m
Given an inline formset save it to the database.
dataset/ETHPy150Open daler/metaseq/metaseq/_genomic_signal.py/genomic_signal--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/contrib/admin/options.py/ModelAdmin.save_formset