spike.Interactive package

Submodules

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: object

a simple tool to show and modify calibration cste

back(event)[source]
update(event)[source]
class spike.Interactive.FTICR_INTER.MR(name, report=True, Debug=False)[source]

Bases: object

this class handles multiresolution datasets

col(i)[source]

return a column with coordinate in index

colmz(i)[source]

return a column with coordinate in m/z

compute_absmax()[source]

computes largest point from smaller resolution, and propagates

load()[source]

load from file

report()[source]

report object content

row(i)[source]

return a row with coordinate in index

rowmz(i)[source]

return a row with coordinate in m/z

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]

Bases: spike.Interactive.FTICR_INTER.MR_interact

back(*arg)[source]
forw(*arg)[source]
class spike.Interactive.FTICR_INTER.MR_interact(name, figsize=None, report=True, show=True, Debug=False)[source]

Bases: spike.Interactive.FTICR_INTER.MR

I1D()[source]
back(*arg)[source]
bb(name, desc, action, layout=None, tooltip='')[source]

build button

check_fig()[source]
check_fig1D()[source]
display(zoom=None, scale=None, redraw=None)[source]
display1D()[source]
down(b, factor=1.44)[source]
ext_box()[source]
forw(*arg)[source]
fullzoom()[source]
left(b, factor=1.44)[source]
reset(b)[source]
reset_track()[source]
right(b, factor=1.44)[source]
scale1(b)[source]
scaledown(b)[source]
scaleup(b)[source]
show()[source]

actually show the graphical tool and the interactive spectrum

up(b, factor=1.44)[source]
update()[source]
zoom
zoom_box()[source]
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)
zoom_out(b, factor=1.44)[source]

z_in: dw = waft*factor*(1-factor) z_out:dw = wbef*(factor*(1-factor))

zoomwidth()[source]
class spike.Interactive.FTICR_INTER.MSPeaker(npkd, pkname)[source]

Bases: object

a peak-picker for MS experiments

display(event)[source]

interactive wrapper to peakpick

pickpeak(event)[source]

interactive wrapper to peakpick

pkexport(event)[source]

exports the peaklist to file

pklist()[source]

creates peaklist

pkprint(event)[source]
pp()[source]

do the peak-picking calling pp().centroid()

class spike.Interactive.FTICR_INTER.SpforSuper(i, name)[source]

Bases: object

a holder for SuperImpose

display()[source]
class spike.Interactive.FTICR_INTER.SuperImpose(base=None, filetype='*.msh5', N=None)[source]

Bases: object

a tool to superimpose spectra

Show()[source]
copy(event)[source]
display(event)[source]

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: object

Detailed 1D NMR Processing

apmin_select(e)[source]
apod()[source]
apod_select(e)[source]
display()[source]
load()[source]
process(e)[source]
show()[source]
show_apod(e)[source]
class spike.Interactive.INTER.FileChooser(base=None, filetype=['fid', 'ser'], mode='r', show=True)[source]

Bases: object

a simple file chooser for Jupyter

basename

the basename of the chosen file

dirlist()[source]
dirname

the final dirname containing the chosen file

file

the chosen complete filename

filelist()[source]
nmrname

the final dirname containing the chosen file for TopSpin files

setdir(e)[source]
show()[source]
updir(e)[source]
wob(e)[source]
class spike.Interactive.INTER.Phaser1D(data)[source]

Bases: object

An interactive phaser in 1D NMR

Phaser1D(spectrum)

best when in %matplotlib inline

ob(event)[source]

observe changes and start phasing

on_Apply(b)[source]
on_cancel(b)[source]
phase()[source]

apply phase and display

ppivot()[source]

converts from pivot values to centered ones

class spike.Interactive.INTER.Phaser2D(data)[source]

Bases: object

An interactive phaser in 2D NMR

Phaser2D(spec)

best when in %matplotlib inline

on_Apply(b)[source]
on_cancel(b)[source]
phase(scale, F1p0, F1p1, F2p0, F2p1)[source]
class spike.Interactive.INTER.Show(data)[source]

Bases: object

An interactive display, 1D or 2D NMR
Show(spectrum)
ob(event)[source]

observe events and display

on_done(b)[source]

Module contents