Documentation for MzmlWriter.py
¶
MzmlWriter
¶
This file provides a class for writing mzML output from simulation. For the actual generating of mzML file, the psims library is used.
MzmlWriter
¶
MzmlWriter(analysis_name, scans)
A class to write peak data to mzML file, typically called after running simulation.
Initialises the mzML writer class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
analysis_name
|
Name of the analysis. |
required | |
scans
|
dict where key is scan level, value is a list of Scans object for that level. |
required |
Source code in vimms/MzmlWriter.py
27 28 29 30 31 32 33 34 35 36 |
|
sort_filter
¶
sort_filter(all_scans, min_scan_id)
Filter scans according to certain criteria. Currently it filters by the minimum scan ID, as a workaround to IAPI which produces unwanted scans at low scan IDs.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
all_scans
|
the list of scans to filter |
required | |
min_scan_id
|
the minimum scan ID to filter |
required |
Returns: the list of filtered scans
Source code in vimms/MzmlWriter.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
|
write_mzML
¶
write_mzML(out_file)
Write mzMl to output file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
out_file
|
path to mzML file |
required |
Returns: None
Source code in vimms/MzmlWriter.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
|