-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to extract pressure profiles as csv file in batch? #133
Comments
Hi @AnStaes, |
Hi again, https://gist.github.com/caetera/0921b33f0c6201a538436906cc965fff |
Hi @caetera - I am trying to use the gist you shared to do some processing of my own, but I am having trouble getting it to work. If I use Freestyle I can extract the pressure curves from the samples, so I know this information must be in the raw files. My process has been to convert the files to .mzML using the either the GUI or the command line version. I specify 'All Detectors' option (or I have tried modifying line 19 to include other accession numbers (based on these but to no avail. My setup is a QE with an Agilent 1290 LC stack. I have included a metadata file from the the sample I am testing if that is helpful. Any help would be greatly appreciated! |
Hi @wdwvt1, Thank you for using TRFP. |
Hi @caetera - thanks very much for the help! I did a little more digging and here's what I've found. I extracted the raw file using TRFP as follows (the logging level made no difference, just making sure) mono ThermoRawFileParser.exe -i /Users/wdwvt/Desktop/s001.raw -z -a -l 1 Using the I can't find any sign of the pressure data, though I can't be sure I am examining the right elements. If I just extract the tags of all elements I get (I've removed the prefix
I am guessing that you were right when you suggested the .raw file has the pressure information in it in a way that is not visible to either the parser or writer of TRFP. Could it be that the block of code on line 954 of
The detector and trace types of interest in Freestyle for the pump are as follows.
There are 10 Trace Types (all in the format above int - str). Thanks again for your help. I would be happy to contribute to the repo/create something to more flexibly parse these files if you can help me understand them. I can also send you the .raw file if that will help. |
Hi @wdwvt1, ThermoRawFileParser/Writer/MzMlSpectrumWriter.cs Lines 863 to 1004 in e338347
Basically, it checks the selection of Device types and then iterates through the channels (not all devices have them though) collecting all channels that make some sense.
It all might look too convoluted, but you can share a representative file with me using the link below and I will see what can be done https://filesender.deic.dk/?s=upload&vid=61fe1192-a050-6aac-e76a-9de9432058a0 To the best of my knowledge, FreeStyle uses the same "engine" as TRFP under the hood, thus, what is visible in FreeStyle should be (in principle) accessible for TRFP. |
I just uploaded the .raw file. I feel very stupid, but there is one thing I forgot to mention that is probably important. Using standard FreeStyle, we could not extract the pressure chromatograms (or anything) from the Agilent LC system. We could extract the PDA/UV information and MS information only. We had to purchase a "SII 3rd party license" from Thermo (the download was listed as I am unfamiliar with C#, but have begun messing around with the files. Am I correct in understanding that in the block you referenced, I should be modifying the catch-all on line 954 so that it will allow ThermoRawFileParser/Writer/MzMlSpectrumWriter.cs Lines 954 to 1007 in e338347
Thanks again for all your help! |
File received. The file you provided reports the following number of devices:
More information on the devices in
Thus, the include the pressure traces one need to obtain them from log entries by either of the two methods above (it is, however, to be determined which one is better), convert if necessary to two I will try to formulate all this into code in the future (still need to think how to do it in the least redundant and the most general way), but contributions are always welcome. Also need to check what sorts of chromatograms are allowed in the mzML format (i.e. is it possible to include other plottable items, such as flow rates and so on). Off-note, never seen |
Hi,
With the --allDetectors options I can get the pressure profile of a raw file into the mzML file, but what I need is actually a csv file with the pressure values per RT. Is it possible to extract this in batch?
Thank you!
The text was updated successfully, but these errors were encountered: