nmrglue.analysis.peakpick.clusters

nmrglue.analysis.peakpick.clusters(data, locations, pthres, nthres, d_struc=None, l_struc=None, ndil=0)[source]

Perform cluster analysis of peak locations.

Parameters :

data : ndarray

Array of data which has been peak picked.

locations : list

List of peak locations.

pthres : float

Postive peak threshold. None for no postive peaks.

nthres : float

Negative peak threshold. None for no negative peaks.

d_struc : ndarray, optional

Structure of binary dilation to apply on segments before clustering. None uses a square structure with connectivity of one.

l_struc : ndarray, optional

Structure to use for determining segment connectivity in clustering. None uses square structure with connectivity of one.

dnil : int, optional

Number of dilation to apply on segments before determining clusters.

Returns :

cluster_ids : list

List of cluster number corresponding to peak locations.

Previous topic

nmrglue.analysis.peakpick.add_edge

Next topic

nmrglue.analysis.peakpick.pack_table

This Page