UniDec
Universal Deconvolution of Mass and Ion Mobility Spectra
Classes | Functions | Variables
UniDec.unidec_modules.ManualSelectionWindow Namespace Reference

Classes

class  ManualListCrtl
 
class  ManualListCtrlPanel
 
class  ManualSelection
 

Functions

def closest (x, y, manlist)
 
def correctassignments (manlist, xdat, ydat)
 
def range_overlap (a_min, a_max, b_min, b_max)
 
def checkoverlap (l1, l2)
 
def detectoverlap (manlist)
 

Variables

string __author__ = 'Michael.Marty'
 

Function Documentation

def UniDec.unidec_modules.ManualSelectionWindow.checkoverlap (   l1,
  l2 
)
Check whether two lines of manual assignments are overlapping.
:param l1: Line 1 (1 x 5)
:param l2: Line 2 (1 x 5)
:return: True if overlapping, False if not.

Here is the call graph for this function:

Here is the caller graph for this function:

def UniDec.unidec_modules.ManualSelectionWindow.closest (   x,
  y,
  manlist 
)
For manlist of manual assignments and an (x,y) point, finds the nearest manual assignment.
Used in correcting overlapping rectanges.
:param x: Float
:param y: Float
:param manlist: Array of manual assignment for IMMS (N x 5)
:return: out, pos

out is the line in manlist that is closest.
pos is the position of the line in manlist.

Here is the caller graph for this function:

def UniDec.unidec_modules.ManualSelectionWindow.correctassignments (   manlist,
  xdat,
  ydat 
)
Correct the manual assignments so that they are not overlapping in IM-MS.
:param manlist: List of manual assignments in (N x 5) array.
:param xdat: x-axis (m/z)
:param ydat: y-axis (arrival time)
:return: manlist3, a new array of values corrected to eliminate overlap.

Here is the call graph for this function:

Here is the caller graph for this function:

def UniDec.unidec_modules.ManualSelectionWindow.detectoverlap (   manlist)
For a list of IM-MS manual assignments, check if any of the rectangles are overlapping.
:param manlist: Array of manual assignments (N x 5)
:return: True if overlapping, False if not.

Here is the call graph for this function:

Here is the caller graph for this function:

def UniDec.unidec_modules.ManualSelectionWindow.range_overlap (   a_min,
  a_max,
  b_min,
  b_max 
)
Checks whether two specific ranges of [a_min,a_max] and [b_min,b_max] overlap.
:param a_min:
:param a_max:
:param b_min:
:param b_max:
:return: True if overlapping, False if not.

Here is the caller graph for this function:

Variable Documentation

string UniDec.unidec_modules.ManualSelectionWindow.__author__ = 'Michael.Marty'