Closed csdaw closed 3 years ago
get_parsimony_pep2prot
is a quick hacky way to make sure the peptide to protein assignments are the same when samples have been analysed in separate batches in PD. For TMT, it should be possible to combine experiments in a 'multiconsensus' PD workflow. For LFQ, there are times where one only wants MBR (or whatever the PD equivalent is called) to be used for groups of samples, hence separate sample batches for PD. This is the current use case for the function
The input is just a list of the PD outfiles. For the LFQ use case, I've just used peptide level output, though without checking, I believe the function would work fine from PSM level output too if desired.
The updated mapping from peptide to protein uses an approximate parsimony approach. Hence the function also compares the updated mapping to the peptide to protein matching from PD.
' silac_psm_data is data.frame not MSnSet?' - This is possibly just due to my inability to work out how best to deal with SILAC in an MSnSet. For SILAC data, I tend to keep the data in a data.frame initially and only convert to MSnSet post ratio calculation but this is probably not ideal. Might be worth checking the documentation to see if there are any recommendations/functions for encoding SILAC data in MSnSets. One could just add the labelling information to pData
and expect their to be a column called e.g label for example. Would need to re-write functions for determining ratios etc but nothing difficult
' Understand what the functions in /R/combine_runs.R do and write tests for them.' - Let me know if there is a specific function(s) that needs a better explanation. Or is it all of them!
'Add some peptide level SILAC data' - From our conversation, I understand you have this in hand?
get_parsimony_pep2prot()
- thanks, the explanation is helpful
silac_psm_data
- this makes sense. I can do a little digging into MSnSet at some point.
combine_runs()
- I think I will have a handle on these once I've looked at them more closely.
Peptide level SILAC data - yep I've got some incorporation tests that I can use.
Also I'll close this issue as well once {ts}_test_test_test
is merged with master
.
Ask about the following:
get_parsimony_pep2prot()
?.rds
files in/data
generated?data.frame
notMSnSet
?Do the following:
/extdata
for testingestimate_incorporation()
. Also need this for getting 100% test coverage onparse_features()
..rds
files in/tests/testthat/
. Need to move them into their own folder to reduce clutter.Need help with the following:
/inst/extdata
to test some of the functions inptm.R
./R/combine_runs.R
do and write tests for them.restrict_features_per_protein()
.