code: def cluster(self, dist_type='cosine', run_clustering=True,
                   dendro=True, views=['N_row_sum', 'N_row_var'],
                   linkage_type='average', sim_mat=False, filter_sim=0.1,
                   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``.
      '''
      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=enrichrgramf cluster(self, dist_type='cosine', run_clustering=True,
                   dendro=True, views=['N_row_sum', 'N_row_var'],
                   linkage_type='average', sim_mat=False, filter_sim=0.1,
                   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``.
      '''
      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)
docs: The main function performs hierarchical clustering, optionally generates filtered views (e.g. row-filtered views), and generates the :``visualization_json``.