spike.Interactive package¶
Submodules¶
spike.Interactive.FTICR_INTER copy module¶
spike.Interactive.FTICR_INTER module¶
A tool to display 2D FT-ICR data-sets
to be embedded in jupyter notebook
First version MAD jan 2019 preliminary and not fully tested !
-
class
spike.Interactive.FTICR_INTER.Calib(data)[source]¶ Bases:
objecta simple tool to show and modify calibration cste
-
class
spike.Interactive.FTICR_INTER.MR(name, report=True, Debug=False)[source]¶ Bases:
objectthis class handles multiresolution datasets
-
to_display(zoom=((0, 10000000.0), (0, 10000000.0)), verbose=False)[source]¶ computes and return which dataset to display at a given zoom and scale level” in: zoom = ((F1low, F1up), (F2low,F2up)) - in m/z
out: a tuple (data, zoomwindow), where data is a NPKData and zoomwindow an eventually recalibrated zoom window
so, if DATA is an MR() object and Zoom a defined window in m/z ((F1low, F1up), (F2low,F2up)) the sequence:
datasel, zz = DATA.to_display(Zoom) datasel.display(zoom=zz, scale=…)will display the selected zone with the best possible resolution
-
-
class
spike.Interactive.FTICR_INTER.MR2(name, figsize=None, report=True, show=True, Debug=False)[source]¶
-
class
spike.Interactive.FTICR_INTER.MR_interact(name, figsize=None, report=True, show=True, Debug=False)[source]¶ Bases:
spike.Interactive.FTICR_INTER.MR-
zoom¶
-
zoom_in(b, factor=1.44)[source]¶ - z_in: waft = wbef/factor => waft*factor = wbef
- dw = wbef/factor-wbef = wbef*(1-factor) dw = waft*factor*(1-factor)
-
-
class
spike.Interactive.FTICR_INTER.MSPeaker(npkd, pkname)[source]¶ Bases:
objecta peak-picker for MS experiments
spike.Interactive.INTER module¶
A set of utilities to use spike in NMR or FTMS within jupyter
First version MAD june 2017 preliminary and not fully tested !
-
class
spike.Interactive.INTER.AvProc1D(filename='')[source]¶ Bases:
objectDetailed 1D NMR Processing
-
class
spike.Interactive.INTER.FileChooser(base=None, filetype=['fid', 'ser'], mode='r', show=True)[source]¶ Bases:
objecta simple file chooser for Jupyter - obsolete - not used
-
basename¶ the basename of the chosen file
-
dirname¶ the final dirname containing the chosen file
-
file¶ the chosen complete filename
-
nmrname¶ the final dirname containing the chosen file for TopSpin files
-
-
class
spike.Interactive.INTER.NMRIntegrate(npkd)[source]¶ Bases:
objectan integrator for NMR experiments
-
zm¶ returns the zoom window in ppm
-
-
class
spike.Interactive.INTER.NMRPeaker(npkd)[source]¶ Bases:
objecta peak-picker for NMR experiments
-
zm¶ returns the zoom window in ppm
-
-
class
spike.Interactive.INTER.Phaser1D(data)[source]¶ Bases:
objectAn interactive phaser in 1D NMR
Phaser1D(spectrum)best when in %matplotlib inline
-
class
spike.Interactive.INTER.Phaser2D(data)[source]¶ Bases:
objectAn interactive phaser in 2D NMR
Phaser2D(spec)best when in %matplotlib inline
-
class
spike.Interactive.INTER.Show1D(data, title=None, figsize=None)[source]¶ Bases:
object- An interactive display, 1D NMR
- Show1D(spectrum)
to be developped for peaks and integrals
-
class
spike.Interactive.INTER.Show1Dplus(data, title=None)[source]¶ Bases:
object- An interactive display, 1D NMR
- Show1D(spectrum)
to be developped for peaks and integrals
-
zm¶ returns the zoom window in ppm
-
class
spike.Interactive.INTER.Show2D(data, title=None, figsize=None)[source]¶ Bases:
objectA display for 2D NMR with a scale cursor Show2D(spectrum) where spectrum is a NPKData object - special display for DOSY.
-
class
spike.Interactive.INTER.Show2Dplus(data, title=None)[source]¶ Bases:
object- A VERY preliminary minimimum interactive display for 2D NMR
- Show2D(spectrum)
-
class
spike.Interactive.INTER.SimpleZoom(**kwargs)[source]¶ Bases:
ipywidgets.widgets.widget_box.HBox-
zm¶ returns the zoom window in ppm
-
-
spike.Interactive.INTER.hidecode(initial='show', message=True)[source]¶ this func adds a button to hide/show the code on a jupyter page initial is either ‘show’ or ‘hide’ see: https://stackoverflow.com/questions/27934885/how-to-hide-code-from-cells-in-ipython-notebook-visualized-with-nbviewer/28073228#28073228
spike.Interactive.INTER_res module¶
A set of utilities to use spike in NMR or FTMS within jupyter
First version MAD june 2017 preliminary and not fully tested !
-
class
spike.Interactive.INTER_res.AvProc1D(filename='')[source]¶ Bases:
objectDetailed 1D NMR Processing
-
class
spike.Interactive.INTER_res.FileChooser(base=None, filetype=['fid', 'ser'], mode='r', show=True)[source]¶ Bases:
objecta simple file chooser for Jupyter - obsolete - not used
-
basename¶ the basename of the chosen file
-
dirname¶ the final dirname containing the chosen file
-
file¶ the chosen complete filename
-
nmrname¶ the final dirname containing the chosen file for TopSpin files
-
-
class
spike.Interactive.INTER_res.NMRIntegrate(npkd)[source]¶ Bases:
objectan integrator for NMR experiments
-
zm¶ returns the zoom window in ppm
-
-
class
spike.Interactive.INTER_res.NMRPeaker(npkd)[source]¶ Bases:
objecta peak-picker for NMR experiments
-
zm¶ returns the zoom window in ppm
-
-
class
spike.Interactive.INTER_res.Phaser1D(data)[source]¶ Bases:
objectAn interactive phaser in 1D NMR
Phaser1D(spectrum)best when in %matplotlib inline
-
zm¶ returns the zoom window in ppm
-
-
class
spike.Interactive.INTER_res.Phaser2D(data)[source]¶ Bases:
objectAn interactive phaser in 2D NMR
Phaser2D(spec)best when in %matplotlib inline
-
class
spike.Interactive.INTER_res.Show1D(data, title=None)[source]¶ Bases:
object- An interactive display, 1D NMR
- Show1D(spectrum)
to be developped for peaks and integrals
-
zm¶ returns the zoom window in ppm
-
class
spike.Interactive.INTER_res.Show2D(data, title=None)[source]¶ Bases:
objectA display for 2D NMR with a scale cursor Show2D(spectrum) where spectrum is a NPKData object
-
class
spike.Interactive.INTER_res.Show2Dplus(data, title=None)[source]¶ Bases:
object- A VERY preliminary minimimum interactive display for 2D NMR
- Show2D(spectrum)
-
class
spike.Interactive.INTER_res.SimpleZoom(**kwargs)[source]¶ Bases:
ipywidgets.widgets.widget_box.HBox-
zm¶ returns the zoom window in ppm
-
-
spike.Interactive.INTER_res.hidecode(initial='show', message=True)[source]¶ this func adds a button to hide/show the code on a jupyter page initial is either ‘show’ or ‘hide’ see: https://stackoverflow.com/questions/27934885/how-to-hide-code-from-cells-in-ipython-notebook-visualized-with-nbviewer/28073228#28073228
spike.Interactive.INTER_vrai module¶
A set of utilities to use spike in NMR or FTMS within jupyter
First version MAD june 2017 preliminary and not fully tested !
-
class
spike.Interactive.INTER_vrai.AvProc1D(filename='')[source]¶ Bases:
objectDetailed 1D NMR Processing
-
class
spike.Interactive.INTER_vrai.FileChooser(base=None, filetype=['fid', 'ser'], mode='r', show=True)[source]¶ Bases:
objecta simple file chooser for Jupyter - obsolete - not used
-
basename¶ the basename of the chosen file
-
dirname¶ the final dirname containing the chosen file
-
file¶ the chosen complete filename
-
nmrname¶ the final dirname containing the chosen file for TopSpin files
-
-
class
spike.Interactive.INTER_vrai.NMRIntegrate(npkd)[source]¶ Bases:
objectan integrator for NMR experiments
-
zm¶ returns the zoom window in ppm
-
-
class
spike.Interactive.INTER_vrai.NMRPeaker(npkd)[source]¶ Bases:
objecta peak-picker for NMR experiments
-
zm¶ returns the zoom window in ppm
-
-
class
spike.Interactive.INTER_vrai.Phaser1D(data)[source]¶ Bases:
objectAn interactive phaser in 1D NMR
Phaser1D(spectrum)best when in %matplotlib inline
-
zm¶ returns the zoom window in ppm
-
-
class
spike.Interactive.INTER_vrai.Phaser2D(data)[source]¶ Bases:
objectAn interactive phaser in 2D NMR
Phaser2D(spec)best when in %matplotlib inline
-
class
spike.Interactive.INTER_vrai.Show1D(data, title=None)[source]¶ Bases:
object- An interactive display, 1D NMR
- Show1D(spectrum)
to be developped for peaks and integrals
-
zm¶ returns the zoom window in ppm
-
class
spike.Interactive.INTER_vrai.Show2D(data, title=None)[source]¶ Bases:
objectA display for 2D NMR with a scale cursor Show2D(spectrum) where spectrum is a NPKData object - special display for DOSY.
-
class
spike.Interactive.INTER_vrai.Show2Dplus(data, title=None)[source]¶ Bases:
object- A VERY preliminary minimimum interactive display for 2D NMR
- Show2D(spectrum)
-
class
spike.Interactive.INTER_vrai.SimpleZoom(**kwargs)[source]¶ Bases:
ipywidgets.widgets.widget_box.HBox-
zm¶ returns the zoom window in ppm
-
-
spike.Interactive.INTER_vrai.hidecode(initial='show', message=True)[source]¶ this func adds a button to hide/show the code on a jupyter page initial is either ‘show’ or ‘hide’ see: https://stackoverflow.com/questions/27934885/how-to-hide-code-from-cells-in-ipython-notebook-visualized-with-nbviewer/28073228#28073228
spike.Interactive.ipyfilechooser module¶
-
class
spike.Interactive.ipyfilechooser.FileChooser(path='/Users/mad/spike/spike_make_sphinx', filename='', show_hidden=False, **kwargs)[source]¶ Bases:
ipywidgets.widgets.widget_box.VBox-
default¶ Get the default value
-
default_filename¶ Get the default_filename value
-
default_path¶ Get the default_path value
-
nmrname¶
-
rows¶ Get current number of rows
-
selected¶ Get selected value
-
selected_filename¶ Get the selected_filename
-
selected_path¶ Get selected_path value
Get current number of rows
-
-
spike.Interactive.ipyfilechooser.get_dir_contents(path, hidden=False)[source]¶ Get directory contents