jorainer / SpectraTutorials

These workshops and tutorials provide use cases and examples for mass spectrometry data handling and analysis using the Spectra Bioconductor package.
https://jorainer.github.io/SpectraTutorials
18 stars 2 forks source link

Filtering spectra within a particular RT range in each precursorMz? functions similar to `filterPrecursorMz`? #8

Open gmhhope opened 3 years ago

gmhhope commented 3 years ago

Could I easily implement filtering spectra within a particular RT range according to their character in the MS1 scan? Something similar to filterPrecursorMz?

Thanks, Minghao Gong

gmhhope commented 3 years ago

I don't know whether this is the right one? Could you briefly comment on this? Thanks very much!

filterRt(sps_ms2, rt = rt_range) # rt_range should be in the unit of seconds?

Best, Minghao

jorainer commented 3 years ago

Yes, exactly, filterRt is the function that lets you filter Spectra by a retention time range (independently if the spectrum is MS level 1 or 2).