def get_nterm_mod(seq, mod):
    """Check for a given nterminal mod.

    If the sequences contains the mod a 1 is returned, else 0.
    """
    if seq.startswith(mod):
        return 1
    else:
        return 0