unidec.UniDecImporter package¶
Subpackages¶
- unidec.UniDecImporter.Agilent package
- unidec.UniDecImporter.I2MS package
- unidec.UniDecImporter.MZML package
- Submodules
- unidec.UniDecImporter.MZML.mzML module
MZMLImporter
MZMLImporter.avg_safe()
MZMLImporter.close()
MZMLImporter.get_all_imms_scans()
MZMLImporter.get_all_scans()
MZMLImporter.get_avg_scan()
MZMLImporter.get_cdms_data()
MZMLImporter.get_inj_time_array()
MZMLImporter.get_isolation_mz_width()
MZMLImporter.get_ms_order()
MZMLImporter.get_polarity()
MZMLImporter.get_property()
MZMLImporter.get_single_scan()
MZMLImporter.get_tic()
MZMLImporter.init_scans()
MZMLImporter.reset_reader()
auto_gzip()
get_data_from_spectrum()
get_im_data_from_spectrum()
get_inj_time()
gzip_files()
search_by_id()
- Module contents
- unidec.UniDecImporter.MZXML package
- unidec.UniDecImporter.Thermo package
- Submodules
- unidec.UniDecImporter.Thermo.RawFileReader module
DotNetArrayToNPArray()
RawFileReader
RawFileReader.CalculateMassPrecision()
RawFileReader.Close()
RawFileReader.GetAverageSpectrum()
RawFileReader.GetCentroidArray()
RawFileReader.GetCentroidSpectrum()
RawFileReader.GetChromatogram()
RawFileReader.GetFilters()
RawFileReader.GetMSOrder()
RawFileReader.GetScanFilter()
RawFileReader.GetSeqInfo()
RawFileReader.GetSpectrum()
RawFileReader.Get_EIC()
RawFileReader.Get_Header_Item()
RawFileReader.ListTrailerExtraFields()
RawFileReader.PrintInfo()
RawFileReader.ReadScanInformation()
RawFileReader.get_scan_header()
RawFileReader.get_status_log()
RawFileReader.get_tune_data()
RawFileReader.scan_range()
RawFileReader.scan_time_from_scan_name()
RawFileReader.time_range()
- unidec.UniDecImporter.Thermo.Thermo module
ThermoImporter
ThermoImporter.close()
ThermoImporter.get_all_scans()
ThermoImporter.get_analog_voltage1()
ThermoImporter.get_analog_voltage2()
ThermoImporter.get_avg_scan()
ThermoImporter.get_cdms_data()
ThermoImporter.get_eic()
ThermoImporter.get_inj_time_array()
ThermoImporter.get_isolation_mz_width()
ThermoImporter.get_ms_order()
ThermoImporter.get_polarity()
ThermoImporter.get_single_scan()
ThermoImporter.get_tic()
ThermoImporter.grab_centroid_data()
ThermoImporter.init_scans()
- Module contents
- unidec.UniDecImporter.Waters package
- Submodules
- unidec.UniDecImporter.Waters.MassLynxLockMassProcessor module
- unidec.UniDecImporter.Waters.MassLynxRawChromatogramReader module
- unidec.UniDecImporter.Waters.MassLynxRawInfoReader module
MassLynxRawInfoReader
MassLynxRawInfoReader.CanLockMassCorrect()
MassLynxRawInfoReader.GetAcquisitionMassRange()
MassLynxRawInfoReader.GetAcquisitionTimeRange()
MassLynxRawInfoReader.GetDriftTime()
MassLynxRawInfoReader.GetFunctionType()
MassLynxRawInfoReader.GetFunctionTypeString()
MassLynxRawInfoReader.GetHeaderItem()
MassLynxRawInfoReader.GetHeaderItems()
MassLynxRawInfoReader.GetIonMode()
MassLynxRawInfoReader.GetIonModeString()
MassLynxRawInfoReader.GetItemsInFunction()
MassLynxRawInfoReader.GetNumberofFunctions()
MassLynxRawInfoReader.GetRetentionTime()
MassLynxRawInfoReader.GetScanItem()
MassLynxRawInfoReader.GetScanItemString()
MassLynxRawInfoReader.GetScanItems()
MassLynxRawInfoReader.GetScansInFunction()
MassLynxRawInfoReader.IsContinuum()
MassLynxRawInfoReader.IsLockMassCorrected()
- unidec.UniDecImporter.Waters.MassLynxRawReader module
MassLynxBaseType
MassLynxCodeHandler
MassLynxException
MassLynxHeaderItem
MassLynxHeaderItem.ACQUIRED_DATE
MassLynxHeaderItem.ACQUIRED_NAME
MassLynxHeaderItem.ACQUIRED_TIME
MassLynxHeaderItem.ANALOG_CH1_OFFSET
MassLynxHeaderItem.ANALOG_CH2_OFFSET
MassLynxHeaderItem.ANALOG_CH3_OFFSET
MassLynxHeaderItem.ANALOG_CH4_OFFSET
MassLynxHeaderItem.BOTTLE_NUMBER
MassLynxHeaderItem.CAL_DATE
MassLynxHeaderItem.CAL_MS1_DYNAMIC_PARAMS
MassLynxHeaderItem.CAL_MS1_FAST_PARAMS
MassLynxHeaderItem.CAL_MS1_STATIC
MassLynxHeaderItem.CAL_MS1_STATIC_PARAMS
MassLynxHeaderItem.CAL_MS2_DYNAMIC_PARAMS
MassLynxHeaderItem.CAL_MS2_FAST_PARAMS
MassLynxHeaderItem.CAL_MS2_STATIC
MassLynxHeaderItem.CAL_MS2_STATIC_PARAMS
MassLynxHeaderItem.CAL_TEMPERATURE
MassLynxHeaderItem.CAL_TIME
MassLynxHeaderItem.CONDITIONS
MassLynxHeaderItem.INLET_METHOD
MassLynxHeaderItem.INSTRUMENT
MassLynxHeaderItem.JOB_CODE
MassLynxHeaderItem.LAB_NAME
MassLynxHeaderItem.ML_VERSION
MassLynxHeaderItem.SAMPLE_DESCRIPTION
MassLynxHeaderItem.SAMPLE_ID
MassLynxHeaderItem.SOLVENT_DELAY
MassLynxHeaderItem.SPARE1
MassLynxHeaderItem.SPARE2
MassLynxHeaderItem.SPARE3
MassLynxHeaderItem.SPARE4
MassLynxHeaderItem.SPARE5
MassLynxHeaderItem.SUBMITTER
MassLynxHeaderItem.TASK_CODE
MassLynxHeaderItem.UNINITIALISED
MassLynxHeaderItem.USER_NAME
MassLynxProcessCodeHandler
MassLynxRawProcessor
MassLynxRawReader
MassLynxScanItem
MassLynxScanItem.ACCURATE_MASS
MassLynxScanItem.ACCURATE_MASS_FLAGS
MassLynxScanItem.ACC_VOLTAGE
MassLynxScanItem.BASE_PEAK_INTENSITY
MassLynxScanItem.BASE_PEAK_MASS
MassLynxScanItem.COLLISION_ENERGY
MassLynxScanItem.COLLISION_ENERGY2
MassLynxScanItem.COLLISION_RF
MassLynxScanItem.COUNTER_ELECTRODE_VOLTAGE
MassLynxScanItem.COURSE_LASER_CONTROL
MassLynxScanItem.DRE_TRANSMISSION
MassLynxScanItem.ENTRANCE
MassLynxScanItem.FAIMS_COMPENSATION_VOLTAGE
MassLynxScanItem.FINE_LASER_CONTROL
MassLynxScanItem.FOCUS
MassLynxScanItem.GUARD
MassLynxScanItem.HM_RESOLUTION
MassLynxScanItem.ION_ENERGY
MassLynxScanItem.LASERAIM_XPOS
MassLynxScanItem.LASERAIM_YPOS
MassLynxScanItem.LASER_REPETITION_RATE
MassLynxScanItem.LCMP_TFM_WELL
MassLynxScanItem.LINEAR_DETECTOR_VOLTAGE
MassLynxScanItem.LINEAR_SENSITIVITY
MassLynxScanItem.LM_RESOLUTION
MassLynxScanItem.LOCKMASS_CORRECTION
MassLynxScanItem.MAX_DRIFT_TIME_CHANNEL
MassLynxScanItem.MIN_DRIFT_TIME_CHANNEL
MassLynxScanItem.MULTIPLIER1
MassLynxScanItem.MULTIPLIER2
MassLynxScanItem.NEEDLE
MassLynxScanItem.NUM_SHOTS_PERFORMED
MassLynxScanItem.NUM_SHOTS_SUMMED
MassLynxScanItem.PEAKS_IN_SCAN
MassLynxScanItem.PROBE_TEMPERATURE
MassLynxScanItem.PSD_FACTOR_1
MassLynxScanItem.PSD_STEP_MAJOR
MassLynxScanItem.PSD_STEP_MINOR
MassLynxScanItem.QUAD_PEAK_WIDTH
MassLynxScanItem.QUAD_START_MASS
MassLynxScanItem.QUAD_STOP_MASS
MassLynxScanItem.RAW_EE_CE
MassLynxScanItem.RAW_EE_CV
MassLynxScanItem.RAW_STAT_SWAVE_NORMALISATION_FACTOR
MassLynxScanItem.REFERENCE_SCAN
MassLynxScanItem.REFLECTRON
MassLynxScanItem.REFLECTRON_DETECTOR_VOLTAGE
MassLynxScanItem.REFLECTRON_FIELD_LENGTH
MassLynxScanItem.REFLECTRON_FIELD_LENGTH_ALT
MassLynxScanItem.REFLECTRON_LENGTH
MassLynxScanItem.REFLECTRON_LENGTH_ALT
MassLynxScanItem.REFLECTRON_LENS_VOLTAGE
MassLynxScanItem.REFLECTRON_SENSITIVITY
MassLynxScanItem.REFLECTRON_VOLT
MassLynxScanItem.RF_VOLTAGE
MassLynxScanItem.SAMPLE_PLATE_VOLT
MassLynxScanItem.SAMPLING_CONE_VOLTAGE
MassLynxScanItem.SCAN_ERROR_FLAG
MassLynxScanItem.SCAN_PUSH_COUNT
MassLynxScanItem.SEGMENT_NUMBER
MassLynxScanItem.SEGMENT_TYPE
MassLynxScanItem.SET_MASS
MassLynxScanItem.SKIMMER
MassLynxScanItem.SKIMMER_LENS
MassLynxScanItem.SONAR_ENABLED
MassLynxScanItem.SOURCE_APERTURE
MassLynxScanItem.SOURCE_CODE
MassLynxScanItem.SOURCE_REGION1
MassLynxScanItem.SOURCE_REGION2
MassLynxScanItem.SOURCE_TEMPERATURE
MassLynxScanItem.STEERING
MassLynxScanItem.TEMP_COEFFICIENT
MassLynxScanItem.TEMP_CORRECTION
MassLynxScanItem.TIC_TRACE_A
MassLynxScanItem.TIC_TRACE_B
MassLynxScanItem.TOF
MassLynxScanItem.TOF_APERTURE
MassLynxScanItem.TOTAL_ION_CURRENT
MassLynxScanItem.TRANSPORTDC
MassLynxScanItem.TRANSPORT_RF
MassLynxScanItem.UNINITIALISED
MassLynxScanItem.USETEMP_CORRECTION
MassLynxScanItem.USE_LOCKMASS_CORRECTION
MassLynxStringHandler
- unidec.UniDecImporter.Waters.MassLynxRawScanReader module
- unidec.UniDecImporter.Waters.Waters module
WatersDataImporter
WatersDataImporter.close()
WatersDataImporter.get_all_imms_scans()
WatersDataImporter.get_all_scans()
WatersDataImporter.get_avg_scan()
WatersDataImporter.get_bpi()
WatersDataImporter.get_eic()
WatersDataImporter.get_imms_scan()
WatersDataImporter.get_ms_order()
WatersDataImporter.get_polarity()
WatersDataImporter.get_single_scan()
WatersDataImporter.get_stat_code()
WatersDataImporter.get_stat_name()
WatersDataImporter.get_stats()
WatersDataImporter.get_tic()
WatersDataImporter.init_scans()
- Module contents
Submodules¶
unidec.UniDecImporter.FileParser module¶
- unidec.UniDecImporter.FileParser.extract(file, directory, timestep=1.0, output='txt')¶
- unidec.UniDecImporter.FileParser.extract_scans(file, directory, scanbins=1, output='txt')¶
- unidec.UniDecImporter.FileParser.extract_scans_multiple_files(files, dirs, startscan=1.0, endscan=1.0, outputname='Combined', existing_path=None, vars=None, keys=None)¶
- unidec.UniDecImporter.FileParser.extract_timepoints(files, directories, starttp=None, endtp=None, timestep=1.0, outputname='Combined')¶
- unidec.UniDecImporter.FileParser.get_files(directory, timestep=1.0, output='txt')¶
- unidec.UniDecImporter.FileParser.parse(path, times, timestep, volts, outputheader, directory, output='txt')¶
- unidec.UniDecImporter.FileParser.parse_multiple(paths, timestep, newdir, starttp, endtp, voltsarr=None, outputname=None)¶
unidec.UniDecImporter.ImportTests module¶
- class unidec.UniDecImporter.ImportTests.ImporterTests(methodName='runTest')¶
Bases:
TestCase
- test_all_scans()¶
- test_avg_scan_norange()¶
- test_avg_scan_scanrange()¶
- test_avg_scan_timerange()¶
- test_avg_time_norange()¶
- test_check_centroided()¶
- test_full_avg_scan()¶
- test_get_cdms()¶
- test_get_imms_avg_scan()¶
- test_get_imms_scan()¶
- test_get_ms_order()¶
- test_get_polarity()¶
- test_get_scans_times()¶
- test_repeat_avg()¶
- test_single_scan()¶
- test_tic()¶
unidec.UniDecImporter.ImportTools module¶
- unidec.UniDecImporter.ImportTools.fit_line(x, a, b)¶
- unidec.UniDecImporter.ImportTools.get_longest_index(datalist)¶
- unidec.UniDecImporter.ImportTools.get_resolution(testdata)¶
Get the median resolution of 1D MS data. :param testdata: N x 2 data (mz, intensity) :return: Median resolution (float)
- unidec.UniDecImporter.ImportTools.get_resolution_im(data)¶
Get the median resolution of 1D MS data. :param testdata: N x 2 data (mz, intensity) :return: Median resolution (float)
- unidec.UniDecImporter.ImportTools.header_test(path, deletechars=None, delimiter=' |\t|,', strip_end_space=True)¶
A quick test of a file to remove any problems from the header.
If scans through each line of an input file specificed by path and count the number of lines that cannot be completely converted to floats. It breaks the loop on the first hit that is entirely floats, so any header lines blow that will not be counted. :param path: Path of file to be scanned :param deletechars: Characters to be removed from the file before scanning :param delimiter: Delimiter to be used in the file :param strip_end_space: Boolean to strip the end space from the line :return: Integer length of the number of header lines
- unidec.UniDecImporter.ImportTools.merge_im_spectra(datalist, mzbins=None, type='Integrate')¶
Merge together a list of ion mobility data. Interpolates each data set in the list to a new nonlinear axis with the median resolution of the first element. Optionally, allows mzbins to create a linear axis with each point spaced by mzbins. Then, adds the interpolated data together to get the merged data. :param datalist: M x N x 2 list of data sets :return: Merged N x 2 data set
- unidec.UniDecImporter.ImportTools.merge_spectra(datalist, mzbins=None, type='Interpolate')¶
Merge together a list of data. Interpolates each data set in the list to a new nonlinear axis with the median resolution of the first element. Optionally, allows mzbins to create a linear axis with each point spaced by mzbins. Then, adds the interpolated data together to get the merged data. :param datalist: M x N x 2 list of data sets :return: Merged N x 2 data set
- unidec.UniDecImporter.ImportTools.nonlinear_axis(start, end, res)¶
Creates a nonlinear axis with the m/z values spaced with a defined and constant resolution. :param start: Minimum m/z value :param end: Maximum m/z value :param res: Resolution of the axis ( m / delta m) :return: One dimensional array of the nonlinear axis.
unidec.UniDecImporter.Importer module¶
- class unidec.UniDecImporter.Importer.Importer(file_path, **kwargs)¶
Bases:
object
- avg_fast(scan_range=None, time_range=None)¶
- check_centroided()¶
- close()¶
- get_all_imms_scans()¶
- get_all_scans()¶
- get_avg_scan(scan_range=None, time_range=None)¶
- get_cdms_data(scan_range=None)¶
- get_imms_avg_scan(scan_range=None, time_range=None, mzbins=1)¶
- get_imms_scan(s)¶
- get_max_scan()¶
- get_max_time()¶
- get_ms_order(scan=None)¶
- get_polarity(scan=None)¶
- get_scan_index(scan)¶
- get_scan_time(scan)¶
- get_scans_from_times(time_range)¶
- get_single_scan(scan)¶
- get_tic()¶
- get_time_scan(time)¶
- get_times_from_scans(scan_range)¶
- scan_range_from_inputs(scan_range=None, time_range=None)¶
unidec.UniDecImporter.ImporterFactory module¶
To create importer for any of the 4 types, Simply use: importer_name = ImporterFactory.create_importer(file_path) To fetch all scans use importer_name.get_all_scans()
- class unidec.UniDecImporter.ImporterFactory.ImporterFactory¶
Bases:
object
- static create_importer(file_path, **kwargs)¶
- unidec.UniDecImporter.ImporterFactory.get_polarity(path)¶
unidec.UniDecImporter.SingleScanImporter module¶
- class unidec.UniDecImporter.SingleScanImporter.SingleScanImporter(filename, **kwargs)¶
Bases:
Importer
- get_all_imms_scans()¶
- get_all_scans()¶
- get_avg_scan(scan_range=None, time_range=None)¶
- get_cdms_data()¶
- get_imms_avg_scan(scan_range=None, time_range=None, mzbins=None)¶
- get_imms_scan(s)¶
- get_single_scan(scan=None)¶
- load_data()¶
unidec.UniDecImporter.reader_tester module¶
Module contents¶
- unidec.UniDecImporter.get_importer(file_path, **kwargs)¶