to yeah MZ for mass spectrometry and data processing and yeah of course Parts like I didn't do this whole presentation on my own like some of the slides were lifted from some other people that's why you will also like see some of the same slides are there where I used yesterday so um first of all mass spectrometry I think it's really great because you can use it in such a variety of fields and uh yeah one of the fields that uh yeah I'm using it in and a lot of you are probably using it in
is uh the field of metabolomics and for example it's for yeah analyzing plants analyzing the microbiome some people even use it in space uh to analyze I don't know the topology on mass or something uh it it's used in food analysis and uh medical analysis and uh what's so great about m spectrometry is that you have a lot of different uh setups that you can use for different applications so uh for example you can use a GC you can use electron ionization you can use LC you can use uh yeah helic you can use multi
Imaging and uh with the new additions you can also use it with IM Mobility spectrometry which is yeah something I did a lot of work with and um One Challenge uh and also one common thing in mass spectrometry is that we acquire Mass Spectra and then in the end we try to make sense of the individual Spectra and um yeah since uh yeah we have so much data with highr resolution Mass spectrometers we have to use like some software for example to extract the ion chromatograms because otherwise it's just like way too much work uh
to do manually and uh one thing basically every Mass spectrometers have in common are these Spectra because on Multi Imaging you basically acquire one Spectra for one pixel and then end you can extract like iron images and uh which is also a thing that you can do in MZ mind so if anybody of you does multi Imaging as well um maybe MZ minus the right software for you and one thing that is really important is that for the raw data it can be in a profile mode which uh yeah basically explain or is shown with
uh yeah uh uh continuous data across every Peak shape or it can be already centroided uh which you can see here where you just have like basically One X and one Y coordinates on MZ and intensity and no distribution and uh one thing that really complicates the Spectra is the um yeah common or like the common occurrence of insource fragments and isotope patterns so um uh as you can see here it really adds a lot of redundancy to the data because uh on the left side here we have the um yeah isotopic pattern and all
these uh like the main information that we're looking for is maybe this small Peak because because it's a monot monoisotopic mass but all the other signals belong to the same molecule so um yeah during the processing we really want to scrunch that up and uh yeah reduce it to the monoisotopic mass of the of the feature and the same goes for the insource fragment so uh for example it can tell you something about the structure but on First Look it will just complicate your data so um it's ideal if we can make sense of what
ion addo it is so if it's an M plus age if it's an M plus sodium or if it's a a neutral loss of a water atom and um one thing that really helps with yeah structure elucidation is the acquisition of a tandem Mass Spectra which uh basically Works in a way that we uh first uh filter out one selected ion and throw away the rest which is us usually done by quadrupoles as alra uh mentioned yesterday and uh this ion is then fragmented and you get then the intensity of the individual fragment ions uh
in your MS2 Spectra or msms Spectra and from that you can probably tell if you have a structure that is um yeah that you think it could be then you can maybe yeah assign the fragment ions and uh I know this slide was already shown yesterday but uh who of you or like who can tell me which is the better hlc MS2 method do you really want a lot of MS2 Spectra all the time sorry yeah a is better why is a better yeah yeah so uh what's really important here is um that we want
to uh yeah get meaningful MS2 Spectra and we don't get want to get uh during our acquisition ms2s of the same compound all the time which may just be PL exercises so and you can also do this in MZ M I can show you later like how you can look into uh what you actually fragmented in a nice way and um yeah so uh first of all uh who of you has already used MZ mine for his data processing and uh if you still use MZ Mine 2 leave your hands up no one oh two
people still use three people still use mine 2 man uh you should change and I hope that um today I can uh yeah tell you why you should change and you can see that mzm 3 is just way better and um who of you uh uses other tools in mzm so for example Ms stle or xcms or so okay uh I hope uh that you uh in the end see some advantages of MZ mine maybe xcms or Ms dial is the better tool for you so um maybe uh do you do a lot of data
independent analysis if you use Ms stle yes and no yeah uh so uh probably for data independent we have like some tools in MZ mine but uh maybe Ms dial might still be the better tool but if you want to test it we are free for feedback or we are open for feedback so uh if you want to test our Dia workflow and it works please tell us if it doesn't work please also tell us um yeah so about the history of MZ mine it was uh first introduced as Maro in 2004 uh by Miko
katayama which was later then changed to the name of MZ mine in 2006 and uh in 2010 Tomas Tomas plal yeah he totally reworked the software and then it became MZ m 2 and in 2022 uh we were able to release mzm 3 and over that time MZ mine uh the development Community has really uh yeah picked it up and uh a lot of people have contributed to the code we also use uh the Google summer of code to uh get some new contributors so uh if anyone of you is a pi or trying to
become a pi or post talk or you know a student uh that would like to uh or you have a project and you have a student or you know a student that would like to work on data processing software uh please feel free to reach out to us uh we also have have like uh always ideas for new projects so if you know someone that can code or is a chemist with like a lot of interest in coding uh yeah please let us know and um yeah so uh to underline uh what I just said
uh you can see here like the lines of code written that we used for MZ mine uh by now and then you can see here in MZ Mine 2 there uh or since MZ 2 like a lot of additional uh tools have have been added uh which led to the release of mzm 3 and by now we even did a lot more changes to make the software even better and uh one thing that I would like to really highlight here is uh that MZ mine is really a community effort and we don't develop it MZ
mine alone so a lot of lot of Institutions have contributed code and uh it's really a community project so uh if you shouldn't be scared if you have like a really nice idea or so we can help you implement it if you if you don't know how to code we can um yeah uh probably also make something work if you have a student or so I'm just saying we can't do everything like every like every good idea it's not possible for us to implement but uh we're always open for new contributions and um one thing
that I would like uh to stress is uh MZ m is not a blackbox you don't put your raw data in and you don't get get out nature papers and Nobel prizes um but uh what MZ mine used to be is more like the the Swiss army knife so it's a tool for everything you can uh do everything you want with it but uh you have to or you had to know how to like really make use of it and uh which was also a problem why MZ M was uh maybe a bit complicated for
new for new users to get into and uh this is something that we also uh addressed in with MZ mine 3 we try to make it more usable and more user friendly with the mzmine wizard and which is also something that we are going to use today and um so what MZ mine is actually trying to do is uh we use our raw Spectra and uh be it from gcms lcms helic Ms uh MMS uh whatever you uh yeah throw at it um we are trying to apply some magic and extract the feature table that
you can make sense of so uh we are trying to extract the uh the Master charge ratios the retention times the peak shape tell you okay it might be this ion try to identify it and yeah same slide so uh looking at the uh the raw data so uh because I think it's really important for um yeah if you want to process the data it's really important important to know what the data actually looks like and looking at the regular lcms data set we basically have a threedimensional um data space we have the uh retention
time AIS we have the uh Mass to charge ratio AIS and we also have the intensity and uh from this data uh if we look at this at the data this way we can see the individual Mass Spectra so our Mass spectrometer is constantly acquiring uh yeah Mass Spectra looking at the data and if we look at it in the other direction we can extract the ion chromatograms and from these ion chromatograms later we want to basically just know okay the peak starts here and ends there and this this is our feature and uh how
it works MZ mind this is a really like broken down um yeah workflow you first import your data if the data is profile uh so um really a peak associated with every Master charge ratio then the data is centroided and then we filter out every signal that is just electronical noise or below a certain threshold then chromatograms are built so just the intensity over the retention time and these are have then to be resolved into individual features because uh those are basically not the same compound those are individual compounds that are being separated by the
hplc color and we want to like address every compound in uh yeah individually and across multiple samples we then align the compounds together and uh so you for example if you have a large study you can you directly see okay in this sample uh this compound is like really intense and or is it is less intense and um every of these individual steps in MZ mine is what we call a processing step or a module and uh you can configure everything but with uh the MZ M uh with MZ m 3 then we also added
the in Mobility spectrometry which just like is an extra processing step or an extra module and uh then you can do a lot of Downstream processing and the thing is it's basically if you look at the full workflow which might look like this it has a lot of steps and maybe because uh yeah I don't know if you tried MZ M before and you saw Ur man this is way too much stuff to configure um it might be a bit complicated which is uh yeah why we introduced the MZ mine wizard to uh really um
yeah get rid of a lot of the redundancy that we had in the data because basically in every step you had to Define an MZ tolerance but it was the same MZ tolerance all the time so we really Tred to simplify that and uh another great thing is um with MZ mine we are uh comparing to mzm 2 we are lot a lot faster you can process a lot more data sets on a lot less uh yeah system memory and I hope everybody uh has at least like eight or 16 gigabytes of RAM if you
don't then we just take a small subset of the data because we also have all the results uploaded so uh you don't have to do the full data set maybe if your laptop crashes or mzm crashes which might very well be uh then uh we can just down the results in the end for the next sessions so that shouldn't be a problem and um yeah after the MZ M workflow you get these uh yeah large feature tables that give you a lot of information and um yeah that we we can then use in the downstream
tools such as zeros nnps and so on for statistical analysis in the following sessions and uh just like looking at some video on MZ mine um we uh you can get you can explore the raw data you can look at the Bas PE chromatograms you can check okay at this time how did my Spectra look like uh you can investigate some uh yeah uh some uh data manually so you can do some like quick quality control or so and uh if you uh really want to get into the processing we have the uh the processing
wizard which uh basically plugs together like your um massr system does in uh in your lab so uh for example you can um select okay I used hlc I use GC and you get like presets for everything right away you can say okay you use the MDI I use the Tims and um this way you get a lot of presets that might might make sense for your data I'm not saying it will be perfect but uh you will already get like some results and uh from there uh we recommend to optimize um the settings for
your specific acquisition for your specific method and uh for that it's really nice that you can have individual presets for example you can say Okay um I don't know this data set was acquired with this mometer and I can just like save a preset and I can also load a preset for example if you have a c18 I know 13 minute 30 minute gradient you can say okay for this hlc method my Peaks are always this wide so I can say okay I don't need to optimize like I I optimize it once but I don't
need to optimize again then you can just like load the data in um yeah one thing uh for um I would like to stress for uh annotating your compounds there are a lot of public spectral libraries and uh they also uh work with MZ mine so um if you uh yeah are trying to get some spectral Library matches you can freely download the gmps Library you can download the massbank of North America library and the massbank EU Library um some of them are free to use but not free to download and some like nist are
um yeah not you have to buy them basically um but uh if you're looking for the MZ M compatible format of the download I listed it over here so um most of a time is ajacent format except for the massbank EU and uh if you um want to make your data data available for for example a paper or a project that you're working on with some collaborators um these are like some of the most used um yeah repositories where you can deposit your data set and uh after you published you can make it publicly available
so people can still use the data and maybe find some compounds of their own and your data and make more sense of it which really helps uh in a lot of studies so um do you have any questions so far otherwise we can uh directly get into the handson no yeah um so that would be a lot of manual analysis so uh there are like some tools in MZ that you can use for that but basically MZ is more tailored towards like automated data processing and um not like manual structure annotation or something like that
so um yeah you can export all the Spectra you can then use it in any other software or you can I don't know get find Spectra or like compounds that have like I know this specific neutral loss or so but it's not like uh measuring manually but uh I think that's probably something that we will maybe add in the future no promises on when but yeah might might be might be uh a good point um so talking briefly about the data set um so uh the data set we are going to use is uh dissolved
organic matter um basically what uh yeah was Daniel right yeah what uh Daniel did to uh get a data set was um sample uh seawater in a lot of different locations close to the uh I think it was laola sorry oh yeah San Diego Coastline nice and um for every data set uh it was acquired like 2018 data that we're going to use was sampled after a heavy rainfall so we will basically look at the uh shift in the uh yeah chemot type of um yeah the data after a lot of cobotics have been flooded
into the sea um yeah anything else that's important okay if you have any further questions for the data ask Daniel when he's here so um then let's uh go into the data set processing so uh I hope all of you have uh downloaded MZ mine and I hope it works for you so it's still sharing yeah so uh I'm just going to run the MZ mine uh doxer and uh yeah if you get this message on Windows you click on more information and you sit uh you say uh yeah run anyway and then it might
uh might take a couple of seconds to open the window everybody uh so far everybody have MZ mine open I I know guys that you have problems back there with the electricity we have an issue there's one computer that is giving a shortcut to the tensions and it's going to be very so if we try to figure out right now it will take a while and I don't want to interupt Sten more longer so dur the coffee break we will try to figure out who is the computer who is creating the shortcut and is shutting
down completely the back electricity it doesn't matter if I change it to another wall because if that computer plugs again it will shut down the also the walls in the sides so er please try to unplug all every all the computers who are connected to the extension in the back and uh let's try to see if this goes back or not okay I'm sorry for that but it's out of my hands we need to figure out which is the computer who is creating the shortcuts no okay no worries uh okay so if you have MZ
mine opened then uh we can um yeah first of all look at our data so I'm just going to pull up the data set and oops not this one so I will start in the samples folder you can basically pick any um file you want but I will pick this specific one here so the uh 19 uncore a because this is for me something I can uh show you some stuff on so to import a data you can do multiple things I just recommend to like drag and drop the file into the left uh side
of the MZ m window and then it will automatically uh import the data so I'm just going to wait a few seconds so uh what I did was I just uh yeah grabbed the data drag and dropped it into here and then uh it the data shows up in the MS data files tab everybody has the data imported not yet okay then we uh wait shortly do you have any problem [Music] or oh okay yeah okay so the person from electricity from the from the the PE the persons from the house that take care of
the electricity they are coming right now we need to find an strategy uh there's one computer it seems one computer when this computer plugs in is completely making a shortcut and shutting down the electricity in the back of the of the of the of the room so we need H what what we think is be the best right now is that all of you unplugged so he's able to switch in for