I'm using the mzml2mgf conversion function of Ursgal but I get the following error for some files:
Converting file:
mzml : /home/sschulze/analysis/PXD009116/WT_EXP1_botttom20.mzML
to
mgf : /home/sschulze/analysis/PXD009116/WT_EXP1_botttom20.mgf
Traceback (most recent call last):mzML : Processing spectrum 7523
File "do_it_all_folder_wide_single_validation.py", line 250, in
target_decoy_database = sys.argv[3],
File "do_it_all_folder_wide_single_validation.py", line 131, in main
engine='mzml2mgf_2_0_0',
File "/home/sschulze/analysis/ursgal/ucontroller.py", line 899, in convert
output_file_name = output_file_name
File "/home/sschulze/analysis/ursgal/ucontroller.py", line 351, in convert_to_mgf_and_update_rt_lookup
force, engine_name, answer
File "/home/sschulze/analysis/ursgal/ucontroller.py", line 2186, in run_unode_if_required
json_path = json_path,
File "/home/sschulze/analysis/ursgal/unode.py", line 1400, in run
report['execution'] = self._execute()
File "/home/sschulze/analysis/ursgal/wrappers/mzml2mgf_2_0_0.py", line 71, in _execute
precursor_max_charge = self.params['translations']['precursor_max_charge'],
File "/home/sschulze/analysis/ursgal/resources/platform_independent/arc_independent/mzml2mgf_2_0_0/mzml2mgf_2_0_0.py", line 115, in main
peaks_2_write = spec.peaks('centroided')
File "/home/sschulze/analysis/pymzml/spec.py", line 1032, in peaks
mz_params = self._get_encoding_parameters('m/z array')
File "/home/sschulze/analysis/pymzml/spec.py", line 237, in _get_encoding_parameters
ns=self.ns
AttributeError: 'NoneType' object has no attribute 'encode'
It seems like the corresponding spectrum (7523) is empty.
Probably, empty specs could be removed already during conversion from raw to mzml (I have converted them with ProteoWizard's msconvert) but it would still be a bit more convenient, if pymzml doesn't fail for these specs but just skips them or returns an empty peak list.
I'm using the mzml2mgf conversion function of Ursgal but I get the following error for some files:
It seems like the corresponding spectrum (7523) is empty.
Probably, empty specs could be removed already during conversion from raw to mzml (I have converted them with ProteoWizard's msconvert) but it would still be a bit more convenient, if pymzml doesn't fail for these specs but just skips them or returns an empty peak list.