unidec.UniDecImporter.Agilent package

Submodules

unidec.UniDecImporter.Agilent.AgilentImporter module

class unidec.UniDecImporter.Agilent.AgilentImporter.AgilentImporter(path, **kwargs)

Bases: Importer

Imports Agilent data files.

Note: Agilent scans are 0 indexed, so the first scan is scan 0, not scan 1.

close()
get_all_scans()
get_avg_scan(scan_range=None, time_range=None, mzbins=None)

Returns merged 1D MS data from mzML import :return: merged data

get_ms_order(scan=1)
get_polarity(scan=1)
get_single_scan(scan, threshold=-1)
get_tic()
init_scans()

unidec.UniDecImporter.Agilent.MZFILE module

class unidec.UniDecImporter.Agilent.MZFILE.MZFile(datafile, **kwargs)

Bases: object

average_scan(scan_range, scans)
close()
cscan(index)

Calculates a centroided scan from profile-mode data. If a profile mode copy of the specified scan is not available, this raises an exception; in that case, you can use mzFile.scan() with mode = ‘centroid’ to return the machine-centroided scan.

headers()
scan(index, mode=None)

Returns a spectrum from the specified scan index, where type is controlled by mode argument; defaults to prioiritize Peak (Centroid) and then try Profile. If the requested mode is not present, an empty spectrum will be returned. Alternative modes are ‘profile’, ‘centroid’ or ‘profileElsePeak’.

scan_info(start_time=None, stop_time=None, start_mz=None, stop_mz=None)
scan_range()
time_range()
uv_trace()
xic(start_time=None, stop_time=None, start_mz=None, stop_mz=None, filter=None, UV=False)
unidec.UniDecImporter.Agilent.MZFILE.aggregate_points(pointlist, distance_function=None, MAX_WIDTH=0.025)

Given a list of points (which may be floats or tuples with the position-relevant value in the first position), returns a list of grouped points such that all points within a group are within MAX_WIDTH of each other.

unidec.UniDecImporter.Agilent.MZFILE.average(xs, weights=None)

Module contents