Skip to content
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

Read additional Infos from Raw Files (Status Log, Tune Method) etc. #62

Open
BerndMaier opened this issue Jul 27, 2020 · 10 comments
Open
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@BerndMaier
Copy link

Hi,
is there a possibility to access some additional information of the MS raw files.

Like the Status Log - containing the instrument read outs (voltages, temperature, pressure etc.) for every scan - accessible usually through Xcalibur -> view -> report -> status log

xcalibur_reports

Thank you very much,
Bernd

@tobiasko
Copy link
Collaborator

Hi Bernd,

yes, there is a lot of scan attributes already available through rawDiag, please check:

https://github.com/fgcz/rawDiag#343--how-to-get-all-scan-attributes-assosiated-to-each-scan

You should see a similar list in Freestyle when selecting Chromatogram ranges -> Detector type: MS Trending

Screenshot 2020-07-27 at 14 51 24

Best,
Tobi

@tobiasko tobiasko self-assigned this Jul 27, 2020
@tobiasko tobiasko added the question Further information is requested label Jul 27, 2020
@BerndMaier
Copy link
Author

Thanks Tobi,
I checked the parameters in read.raw(...., rawDiag =F) and read.raw.info with some Fusion Files

Any chance to obtain the information in Reports\Sample Information ? Couldn't find them in the long long list read.raw outputs and read.raw.info just has some of them.

I wanted to use them to store some meta data information (column, project, sample matrix etc.) and read them automated when samples are finished.
And it would be easier for the end-user if everything has its own column, than posting it comma separated in e.g. Comment

sample_information


test[["Sample Information"]]
$Sample name
[1] "SST"

$Sample id
NULL

$Sample type
[1] "Unknown"

$Sample comment
[1] "A04RCL18043"

$Sample vial
NULL

$Sample volume
[1] 0

$Sample injection volume
[1] 0

$Sample row number
[1] 1

$Sample dilution factor
[1] 1


Thank you very much again,
Bernd

@tobiasko
Copy link
Collaborator

tobiasko commented Aug 4, 2020

Hi Bernd,

not sure if I get your question correctly (comma separated in comment???) read.raw.info returns a nested list.

> info <- read.raw.info("HF_Buffer_A.raw")
> class(info)
[1] "list"
> str(info)
List of 4
 $ Number of instruments   : int 4
 $ General File Information:List of 18
  ..$ RAW file             : chr "HF_Buffer_A.raw"
  ..$ RAW file version     : int 66
  ..$ Creation date        : chr "7/16/2020 11:36:46 AM"
  ..$ Operator             : chr "TEDEVELP"
  ..$ Number of instruments: int 4
  ..$ Description          : NULL
  ..$ Instrument model     : chr "Q Exactive HF Orbitrap"
  ..$ Instrument name      : chr "Q Exactive HF Orbitrap"
  ..$ Serial number        : chr "Exactive Series slot"
  ..$ Software version     : chr "2.11-211101/2.11.0.3006"
  ..$ Firmware version     : chr "rev. 1"
  ..$ Units                : chr "None"
  ..$ Mass resolution      : num 0.5
  ..$ Number of scans      : int 24399
  ..$ Number of ms2 scans  : int 1037
  ..$ Scan range           : int [1:2] 1 24399
  ..$ Time range           : num [1:2] 0 59
  ..$ Mass range           : num [1:2] 50 8000
 $ Sample Information      :List of 9
  ..$ Sample name            : NULL
  ..$ Sample id              : chr "Eluent A"
  ..$ Sample type            : chr "Unknown"
  ..$ Sample comment         : chr "Eluent A"
  ..$ Sample vial            : chr "R:A1"
  ..$ Sample volume          : int 0
  ..$ Sample injection volume: int 10
  ..$ Sample row number      : int 0
  ..$ Sample dilution factor : int 1
 $ Filter Information      :List of 3
  ..$ Scan filter (first scan): chr "FTMS + p ESI Full ms [200.0000-2000.0000]"
  ..$ Scan filter (last scan) : chr "FTMS + p ESI Full ms [200.0000-2000.0000]"
  ..$ Total number of filters : int 147

Please also check ?read.raw.info. I am also not sure what you are missing. Since the nested lists are named you can even select list entries by name:

> info$`Sample Information`$`Sample id`
[1] "Eluent A"

@tobiasko
Copy link
Collaborator

tobiasko commented Aug 4, 2020

Does this help? You might find this helpful.

@BerndMaier
Copy link
Author

Sorry for the confusion.

Yeah, i know about the returned structure. (But funny - I'm going through AdrancedR at the moment :) )

I posted the returned Sample Information of our Velos above.

I'm missing some information like Laboratory, Company, Phone etc. that are accessible from QualBrowser and most likely Freestyle.


These are all Columns you could use at Xcalibur Sequence creation

Xcalibur_Columns


And we thought we could use the other columns for projects, columns, sample matrices, digestion enzymes etc. and gather the information through read.raw.info automatically (as users are lazy and will forget to upload their sequences manually)

The Comma Separation was just for a workaround if the Phone ... etc would not be accessible (as we could put the information above all into the Comment Field with , or ; and Split it afterwards with StringR) but it would be much nicer if everything would have its own column at sequence creating in Xcalibur.

Sorry again for the confusion and thanks for your help,
Bernd

@tobiasko
Copy link
Collaborator

tobiasko commented Aug 4, 2020

Ahhhh! ok. Now I get it! @cpanse Could we add the other variables (Laboratory, Company, Phone, ...). I assume we already have access, but didn't include them due to a lack of personal interest.

@tobiasko tobiasko added the enhancement New feature or request label Aug 4, 2020
@BerndMaier
Copy link
Author

Thanks - I also didn't care about these Xcalibur-Columns in the last 15 years - just now as we take "Data Topics" a bit more serious, we try to gather some additional information, to make statistics or just filter these criteria in Shiny and generate HTML-Reports for e.g. a specific column and or all 4h Tryptic digests etc. - thats where they now become useful for us.

@BerndMaier
Copy link
Author

Hi there, saw these columns accessible in rawrr 👍
Will this be added to rawDiag, too?

Not sure if this question makes sense here: Is rawDiag also still in development - or just rawrr ?

@cpanse
Copy link
Contributor

cpanse commented Feb 5, 2021

@BerndMaier in the future we will run rawrr under the hood of rawDiag. If we find a way to make you happy we will give it a try.

@BerndMaier
Copy link
Author

@cpanse oh - i'm already very happy to have now access through rawrr::readFileHeader - just wanted to understand how the two packages fit together - 🥇 thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants