Closed ghost closed 2 years ago
Hi @maohi
Thank you for your interest in MSstatsPTM! The processing you did on the data so far looks correct from what I can see. It is hard to diagnose the problem because I'm not sure where the checkHT error is coming from. Would you be able to provide some small/example data that creates the same issue?
Devon
Hi @maohi,
After some additional testing I was actually able to create and fix this bug. There was a change in a dependency that caused one of the conversions to data.table to fail. I have implemented and pushed the bug fix to both github and Bioconductor. The Bioconductor fix will take a day or two to propagate. In the meantime feel free to install directly from the github master branch!
Best, Devon
Hi @devonjkohler Thank you so much for the fix. I will try it again.
Han-Yin
Hi @devonjkohler, Really appreciate your help. I downloaded the version 1.5.2 from GitHub directly, but I am still getting the same error
> quant.mstats = MSstatsPTM::dataSummarizationPTM_TMT(input.tmt) Error in checkHT(n, dx <- dim(x)) : invalid 'n' - must contain at least one non-missing element, got none.
I will try to make a test case using published data sets later, but wondering if you know which dependency (package or script) throw that error message. I want to double check if I also updated that dependency. Could you point that out to me?
Thank you! Best, Han-Yin
Hi @devonjkohler I think I know where the error occurred.
The resulting object from MSstatsConvert is a data.frame of class MSstatsValidated which can not be converted to data.table using data.table::as.data.table(), and as.data.table() is called in data conversion functions in MSstatsPTM
Example:
>ptm.data = MSstatTMT::PDtoMSstatsTMTFormat(input_filename) >as.data.table(ptm.data) Error in checkHT(n, dx <- dim(x)) : invalid 'n' - must contain at least one non-missing element, got none.
What I end up doing is to convert data.frame of class MSstatsValidated to just base::data.frame before passing the data to MSstatsPTM::dataSummarizationPTM_TMT()
Example:
>pro.data = MSstatTMT::PDtoMSstatsTMTFormat(pd_pro_input_filename) > pro.df = pro.data %>% data.frame() >ptm.data = MSstatTMT::PDtoMSstatsTMTFormat(pd_ptm_inputfilename) ... (some refomatting steps to add modification information in ProteinName)_ >ptm.df = ptm.data %>% data.frame() > input.tmt <-list(PTM = ptm.df, PROTEIN = pro.df) >MSstatsPTM::dataSummarizationPTM_TMT(input.tmt)
The dataSummarizationPTM_TMT step is done without error. I will use this result to try next step.
Best, Han-Yin
Hi MSstatsPTM developer, We are very excited about PTM analysis capability in MSstatsPTM package, and want to add it to our analysis workflow. I am getting an error when running MSstatsPTM::dataSummarizationPTM_TMT(). Could you provide some suggestions?
Errors:
I wonder if you know where this error message came from.
Could you point me to the R script and the code sections for this error? or Is there possible causes you can think off for this error? I wonder if there is any mistake I made when preparing the input data.
Here is more details
The data I used was from Proteome Discoverer, so I used the MSstatsTMT::PDtoMSstatsTMTFormat() data conversion functions with a little adjustment to create the PTM data.table as suggested in MSstatsPTM_TMT_Workflow.html
PTM data.table looks like below (I used some random string for protein names and modified peptide sequence )
The PROTEIN data.table is the table directly from MSstatsTMT::PDtoMSstatsTMTFormat()
Here is the data generation workflow The whole proteome experiment -> Proteome Discoverer -> export PSM file -> MSstatTMT::PDtoMSstatsTMTFormat() -> MSstatsPTM The PTM enrichement experiment -> Proteome Discoverer -> export PSM file -> MSstatTMT::PDtoMSstatsTMTFormat() -> MSstatsPTM
Combine PTM and PROTEIN: input.tmt <- list(PTM= ptm.data.table, PROTEIN = protein.data.table)
Is there something you think might be the reason for checkHT error?
Thank you!