Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def cluster(self, dist_type='cosine', run_clustering=True,
dendro=True, views=[],
linkage_type='average', sim_mat=False, filter_sim=0.0,
calc_cat_pval=False, run_enrichr=None, enrichrgram=None):
'''
The main function performs hierarchical clustering, optionally generates
filtered views (e.g. row-filtered views), and generates the :
``visualization_json``.
Used to set views equal to ['N_row_sum', 'N_row_var']
'''
initialize_net.viz(self)
make_clust_fun.make_clust(self, dist_type=dist_type,
run_clustering=run_clustering,
dendro=dendro,
requested_views=views,
linkage_type=linkage_type,
sim_mat=sim_mat,
filter_sim=filter_sim,
calc_cat_pval=calc_cat_pval,
run_enrichr=run_enrichr,
enrichrgram=enrichrgram)