def set_config_motifs(config, params):
    """process the Motifs section"""
    params['sequence_types'] = config.get('Motifs', 'sequence_types').split(','
        )
    params['search_distances'] = {}
    params['scan_distances'] = {}
    for seqtype in params['sequence_types']:
        cat = 'SequenceType-%s' % seqtype
        params['search_distances'][seqtype] = tuple(map(int, config.get(cat,
            'search_distance').split(',')))
        params['scan_distances'][seqtype] = tuple(map(int, config.get(cat,
            'scan_distance').split(',')))
