def write_data(path_to_file, biclusters, threshold=1):
    """Saves bicluster labels to disk.
    
    Args:
        path_to_file (str): Reference to location for storing file.
        biclusters (array-like): The bicluster members.
        
       
    Kwargs:
        threshold (int): The minimum number of members allowed in each 
            bicluster.
        
    """
    with open(path_to_file, 'w') as outfile:
        num = 1

        for bicluster in biclusters:
            
            outfile.write('clusternum_{0}\n'.format(num))
            if len(bicluster) < threshold:
                outfile.write('\n')
            else:
                for item in bicluster:
                    outfile.write('{}\n'.format(item))

            num += 1
            
    return None