def _convert_to_clusters(c):
    """Return 1 cluster per loci"""
    new_dict = {}
    n_cluster = 0
    logger.debug("_convert_to_cluster: loci %s" % c.loci2seq.keys())
    for idl in c.loci2seq:
        n_cluster += 1
        new_c = cluster(n_cluster)
        #new_c.id_prev = c.id
        new_c.loci2seq[idl] = c.loci2seq[idl]
        new_dict[n_cluster] = new_c
    logger.debug("_convert_to_cluster: new ids %s" % new_dict.keys())
    return new_dict
def _convert_to_clusters ( c ) : new_dict = { } n_cluster = 0 logger . debug ( "_convert_to_cluster: loci %s" % c . loci2seq . keys ( ) ) for idl in c . loci2seq : n_cluster += 1 new_c = cluster ( n_cluster ) new_c . loci2seq [ idl ] = c . loci2seq [ idl ] new_dict [ n_cluster ] = new_c logger . debug ( "_convert_to_cluster: new ids %s" % new_dict . keys ( ) ) return new_dict
Return 1 cluster per loci