/** This file is auto-generated by the grok api command. If you notice any changes, please push them to the repository. Do not edit this file manually. */ import * as grok from 'datagrok-api/grok'; import * as DG from 'datagrok-api/dg'; export namespace scripts { /** Compute a condensed pairwise distance matrix between rows of the input table. */ export async function distanceScript(data: DG.DataFrame , distance_name: string ): Promise { return await grok.functions.call('Dendrogram:DistanceScript', { data, distance_name }); } /** Cluster rows of the input table hierarchically and return the tree in Newick format. */ export async function hierarchicalClusteringScript(data: DG.DataFrame , distance_name: string , linkage_name: string ): Promise { return await grok.functions.call('Dendrogram:HierarchicalClusteringScript', { data, distance_name, linkage_name }); } /** Cluster observations hierarchically from a precomputed distance matrix and return the tree in Newick format. */ export async function hierarchicalClusteringByDistanceScript(data: DG.DataFrame , size: number , linkage_name: string ): Promise { return await grok.functions.call('Dendrogram:HierarchicalClusteringByDistanceScript', { data, size, linkage_name }); } } export namespace funcs { export async function info(): Promise { return await grok.functions.call('Dendrogram:Info', {}); } /** Dendrogram tree visualization */ export async function dendrogram(): Promise { return await grok.functions.call('Dendrogram:Dendrogram', {}); } export async function getTreeHelper(): Promise { return await grok.functions.call('Dendrogram:GetTreeHelper', {}); } export async function getDendrogramService(): Promise { return await grok.functions.call('Dendrogram:GetDendrogramService', {}); } export async function generateTreeDialog(): Promise { return await grok.functions.call('Dendrogram:GenerateTreeDialog', {}); } /** Test/demo app for Dendrogram */ export async function dendrogramApp(): Promise { return await grok.functions.call('Dendrogram:DendrogramApp', {}); } /** Test/demo app for Dendrogram Large */ export async function dendrogramLargeApp(): Promise { return await grok.functions.call('Dendrogram:DendrogramLargeApp', {}); } /** Test/demo app for TreeForGrid (custom renderer) */ export async function treeForGridApp(): Promise { return await grok.functions.call('Dendrogram:TreeForGridApp', {}); } /** Test/demo app for TreeForGridFilter (custom renderer) */ export async function treeForGridFilterApp(): Promise { return await grok.functions.call('Dendrogram:TreeForGridFilterApp', {}); } /** Test/demo app for TreeForGridCutApp (custom renderer, cutting slider) */ export async function treeForGridCutApp(): Promise { return await grok.functions.call('Dendrogram:TreeForGridCutApp', {}); } /** Test/demo app for hierarchical clustering (inject tree to grid) */ export async function hierarchicalClusteringApp(): Promise { return await grok.functions.call('Dendrogram:HierarchicalClusteringApp', {}); } /** Test/demo app for hierarchical clustering (inject tree to grid) */ export async function hierarchicalClusteringSequencesApp(): Promise { return await grok.functions.call('Dendrogram:HierarchicalClusteringSequencesApp', {}); } /** Calculates hierarchical clustering on features and injects tree to grid */ export async function hierarchicalClustering(df: DG.DataFrame , colNameList: string[] , distance: string , linkage: string ): Promise { return await grok.functions.call('Dendrogram:HierarchicalClustering', { df, colNameList, distance, linkage }); } /** Opens Newick file */ export async function importNewick(fileContent: string ): Promise { return await grok.functions.call('Dendrogram:ImportNewick', { fileContent }); } export async function previewNewick(file: DG.FileInfo ): Promise { return await grok.functions.call('Dendrogram:PreviewNewick', { file }); } /** Calculates hierarchical clustering on features and injects tree to grid */ export async function hierarchicalClusteringSequences(): Promise { return await grok.functions.call('Dendrogram:HierarchicalClusteringSequences', {}); } /** Calculates hierarchical clustering on features and injects tree to grid */ export async function hierarchicalClusteringMolecules(): Promise { return await grok.functions.call('Dendrogram:HierarchicalClusteringMolecules', {}); } /** Calculates hierarchical clustering on features and injects tree to grid */ export async function hierarchicalClustering2(): Promise { return await grok.functions.call('Dendrogram:HierarchicalClustering2', {}); } /** Heatmap is a spreadsheet (grid) that contains colors instead of numbers and strings. For numerical data, the higher values are colored red, and the lower ones appear blue. The central value is assigned a light color so that darker colors indicate a larger distance from the center. For categorical data, each possible value is set to one color from a qualitative palette. */ export async function heatMapDemo(): Promise { return await grok.functions.call('Dendrogram:HeatMapDemo', {}); } }