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
datandarray

Array of data which has been peak picked.

locationslist

List of peak locations.

pthresfloat

Postive peak threshold. None for no postive peaks.

nthresfloat

Negative peak threshold. None for no negative peaks.

d_strucndarray, optional

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

l_strucndarray, optional

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

dnilint, optional

Number of dilation to apply on segments before determining clusters.

Returns
cluster_idslist

List of cluster number corresponding to peak locations.