Error using useNumProteinsColumn argument with PDtoMSstatsTMTFormat

39 views
Skip to first unread message

Kevin Murray

unread,
Sep 2, 2022, 12:22:04 PM9/2/22
to MSstats
I am encountering an issue using the PDtoMSstatsTMTFormat in the R-package (MSstatsTMT_2.2.7). 

I am starting my pipeline using this conversion function. When I use the function with the argument `useNumProteinsColumn = TRUE`, I always encounter an error. The log message is below:

> input.pd <- PDtoMSstatsTMTFormat(psm.input, study.information,
                             useNumProteinsColumn = TRUE)

INFO  [2022-09-02 11:13:14] ** Raw data from ProteomeDiscoverer imported successfully.
INFO  [2022-09-02 11:13:14] ** Raw data from ProteomeDiscoverer cleaned successfully.
INFO  [2022-09-02 11:13:14] ** Using provided annotation.
INFO  [2022-09-02 11:13:14] ** Run and Channel labels were standardized to remove symbols such as '.' or '%'.
INFO  [2022-09-02 11:13:14] ** The following options are used:
  - Features will be defined by the columns: PeptideSequence, PrecursorCharge
  - Shared peptides will be removed.
  - Proteins with single feature will not be removed.
  - Features with less than 3 measurements within each run will be removed.
INFO  [2022-09-02 11:13:14] ** Features with all missing measurements across channels within each run are removed.
INFO  [2022-09-02 11:13:14] ** Shared peptides are removed.
INFO  [2022-09-02 11:13:14] ** Features with one or two measurements across channels within each run are removed.
INFO  [2022-09-02 11:13:14] ** PSMs have been aggregated to peptide ions.
Error in .mergeAnnotation(input, annotation) :
  ** Please check the annotation file. The channel name must be matched with that in input data.  


However, when I use `useNumProteinsColumn = FALSE` I do not encounter any issues. I'm confused what about the option is causing an issue for me. None of the other arguments produce an issue for me. 

Has anyone else encountered this issue? I am thinking it could be dependency issue, but it strange that only this one operation would be impacted. All other MSstatsTMT functions work as expected for me. 

I attached the RData objects of a project for me. This includes the formatted Study Annotation input and a PSM object containing only one protein. Can anyone reproduce the issue?

Regards,

Kevin
MSstatsTMT_styduInformation.RData
MSstatsTMT_psmInput.RData

Mateusz Staniak

unread,
Sep 8, 2022, 9:51:24 AM9/8/22
to MSstats
Hi,

I know about this issue, it is caused by a change in column naming in PD, I will make sure to fix this in the next release, for now please just use the useNumProteinsColumn=FALSE option, if you need to filter some rows using this column, please do it before running the converter. Otherwise, it doesn't affect the rest of the workflow.


Kind regards,
Mateusz

Kevin Murray

unread,
Sep 8, 2022, 9:55:30 AM9/8/22
to MSstats
Thanks for the information. I will follow your suggestion until the issues is fixed. 

Best,

Kevin

Reply all
Reply to author
Forward
0 new messages