IngallsLabUW / Ingalls_Standards

A repository containing the Ingalls Lab standards list, available for download.
0 stars 3 forks source link

Implementing Laura's manual retention times #11

Closed wkumler closed 3 years ago

wkumler commented 3 years ago

This pull request implements Laura's manual retention times, as obtained from Skyline. There are several steps I envision in this process:

  1. Add the Skyline .csv outputs and make sure they don't break existing code
  2. Read in the new files and mung
  3. Replace existing RTs as defined in the Ingalls_Standards_NEW.csv(?) file with these new manual ones

This code builds on the current state of the lintroll branch.

wkumler commented 3 years ago

The script is currently working with the new files! A few things came up during the process:

  1. The "polarity" parameter has been deprecated, in favor of the more specific filename matching. Since the Skyline output that Laura provided has specific details about RT and m/z per file, we can subset based on filename rather than needing to fiddle with polarity things.
  2. The above step also means that we should decide on a way to produce a single consensus MSMS spectrum from multiple files, as each compound now has separate MSMS spectra for each file in which it was observed.
  3. The consensus MSMS spectrum should account for the fact that different files are based on different Mixes, and we should merge the Ingalls.standards information to only use the correct mixes when creating the consensus MSMS.
  4. Using custom RT's dramatically improved our coverage, from ~25% initially to ~75% by my preliminary assessment. Woohoo!
wkumler commented 3 years ago

I'm still not sure what the issue with Git is, but it seems to be working okay on my ends still. f99968b was done using the code currently in the script, no problem at all.

R-Lionheart commented 3 years ago

I just resolved a mini merge conflict and I think we're ready to combine. I'm wondering if I can just blame Mac for Git not working on my end or if I have an issue with the way my file stream is set up. Either way I'm glad it's working for you and that it will probably work for Laura on her machine.

wkumler commented 3 years ago

Okay, the Git stuff seems to be working now - I had to specify both files wrt the working directory, and it complains if the folder hasn't been added to Git already but I think it'll work on other computers. @R-Lionheart can you give this branch a try?

R-Lionheart commented 3 years ago

Ok, I had to add one more line to add the tracked .mzML files and then it worked for me. I hope I didn't sync that folder to Github, it looks like I didn't but I'm little suspicious of it working. I'm going to update this branch, do you want to try it again on your end and see if everything is working correctly?

R-Lionheart commented 3 years ago

Ah, I was on the incorrect branch on the github desktop so it looked like it hadn't been added, but when I refreshed the page I see that the mzMLs were added. Yeah I'm definitely with you they shouldn't be synced. Adding them did fix the issues but this is not the way. Let me try again. I'm not concerned if they're working for you since that means they'll work for Laura.

wkumler commented 3 years ago

Great. I think it's ready to merge!

R-Lionheart commented 3 years ago

OK I actually fixed it this time, it's all working from my end! Merge whenever you're ready

R-Lionheart commented 3 years ago

Screw it on the error message, I just looked into trycatch and I don't want to mess with it. Before we fully finish/deploy it we should give Laura a heads up that if she gets that message its nbd.