Hi MSstatsTMT dev team,
I get the following error:
> input.pd <- MSstatsTMT::PDtoMSstatsTMTFormat(input = raw.pd, annotation = annotation.pd, verbose = TRUE)
INFO [2021-06-30 17:03:52] ** Raw data from ProteomeDiscoverer imported successfully.
INFO [2021-06-30 17:03:55] ** Raw data from ProteomeDiscoverer cleaned successfully.
INFO [2021-06-30 17:03:55] ** Using provided annotation.
INFO [2021-06-30 17:03:55] ** Run and Channel labels were standardized to remove symbols such as '.' or '%'.
INFO [2021-06-30 17:03:55] ** 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 [2021-06-30 17:03:55] ** Features with all missing measurements across channels within each run are removed.
INFO [2021-06-30 17:03:55] ** Shared peptides are removed.
INFO [2021-06-30 17:03:55] ** Features with one or two measurements across channels within each run are removed.
INFO [2021-06-30 17:03:55] ** 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.
But as far as I can judge they are matched:
> str(raw.pd)
'data.frame': 79949 obs. of 42 variables:
$
PSMs.Peptide.ID : int 190 2468088 4196087 4195766 4195756 4195603 2468222 4195485 4195296 2468382 ...
$ Checked : chr "False" "False" "False" "False" ...
$ Confidence : chr "High" "High" "High" "High" ...
$ Identifying.Node : chr "Sequest HT (A2)" "Sequest HT (A2)" "Sequest HT (A2)" "Sequest HT (A2)" ...
$ PSM.Ambiguity : chr "Unambiguous" "Unambiguous" "Unambiguous" "Unambiguous" ...
$ Annotated.Sequence : chr "[M].sSGAHGEEGSAR.[M]" "[R].LQAGEETASHYR.[M]" "[R].EmEENFALEAANYQDTIGR.[L]" "[R].LLLNNDNLLR.[E]" ...
$ Modifications : chr "N-Term(TMT6plex)" "" "M2(Oxidation)" "" ...
$ Number.of.Proteins : int 2 1 2 6 1 4 3 1 2 2 ...
$ Master.Protein.Accessions : chr "P43024" "Q9Z0E0" "P20152" "A0A0N4SVM0" ...
$ Protein.Accessions : chr "P43024; Q9DCW5" "Q9Z0E0" "A0A0A6YWC8; P20152" "P47753; Q5RKN9; A0A0N4SVM0; P47754; D6RCW7; A0A0G2JE27" ...
$ Number.of.Missed.Cleavages : int 0 0 0 0 0 0 0 0 0 0 ...
$ Charge : int 3 3 2 2 2 2 2 3 2 3 ...
$ Delta.Score : num 0.708 0.609 0.815 0.468 0.67 ...
$ Delta.Cn : num 0 0 0 0 0 0 0 0 0 0 ...
$ Rank : int 1 1 1 1 1 1 1 1 1 1 ...
$ Search.Engine.Rank : int 1 1 1 1 1 1 1 1 1 1 ...
$ mz.in.Da : num 459 455 1109 599 611 ...
$ MHplus.in.Da : num 1374 1362 2217 1198 1222 ...
$ Theo.MHplus.in.Da : num 1374 1362 2217 1198 1222 ...
$ Delta.M.in.ppm : num 1.59 -0.3 0.84 0.2 0.21 0.09 -0.23 -0.16 0.37 0.73 ...
$ Delta.mz.in.Da : num 0.00073 -0.00013 0.00093 0.00012 0.00013 0.00005 -0.00011 -0.0001 0.00025 0.0007 ...
$ Activation.Type : chr "HCD" "HCD" "HCD" "HCD" ...
$ MS.Order : chr "MS2" "MS2" "MS2" "MS2" ...
$ Isolation.Interference.in.Percent: num 1.9 19.2 0 11.2 18.3 ...
$ RT.in.min : num 13.9 26.1 75.3 75.2 75.2 ...
$ First.Scan : int 2136 6737 27027 26968 26967 26923 6757 26903 26849 6783 ...
$ Spectrum.File : chr "20200703_005_S219785_TMT-TAILS6plex_set1_post_1.raw" "20200703_027_S219787_TMT-TAILS6plex_set3_pre_2.raw" "20200703_031_S219788_TMT-TAILS6plex_set4_pre_3.raw" "20200703_031_S219788_TMT-TAILS6plex_set4_pre_3.raw" ...
$ File.ID : chr "F1.4" "F2.2" "F3.3" "F3.3" ...
$ Abundance.126 : num 104.8 23.9 NA 2.5 2.7 ...
$ Abundance.127 : num 129.1 33.4 NA NA NA ...
$ Abundance.128 : num 116 22.7 NA 3.4 NA 8.8 23.9 34.2 9.6 27.1 ...
$ Abundance.129 : num 154.2 37 NA 5.9 NA ...
$ Abundance.130 : num 109.9 26.4 NA 5 2.5 ...
$ Abundance.131 : num 156.4 54.3 NA 2.8 4.5 ...
$ Quan.Info : chr "" "NoQuanLabels" "NoQuanLabels" "NoQuanLabels" ...
$ XCorr : num 4.04 2.84 4.6 1.86 1.88 1.68 2.35 3.39 1.33 3.68 ...
$ Number.of.Protein.Groups : int 1 1 1 1 1 1 1 1 1 1 ...
$ Percolator.q.Value : num 2.12e-05 2.12e-05 2.12e-05 2.12e-05 2.12e-05 ...
$ Percolator.PEP : num 1.04e-08 5.56e-04 5.25e-09 3.90e-05 6.26e-04 ...
>
> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server 2012 R2 x64 (build 9600)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_1.0.6 tidyr_1.1.3 MSstatsTMT_2.0.1
loaded via a namespace (and not attached):
[1] MSstats_4.0.1 gtools_3.8.2 tidyselect_1.1.1 purrr_0.3.4
[5] splines_4.1.0 lmerTest_3.1-3 lattice_0.20-44 log4r_0.3.2
[9] colorspace_2.0-2 vctrs_0.3.8 generics_0.1.0 utf8_1.2.1
[13] survival_3.2-11 marray_1.70.0 rlang_0.4.11 nloptr_1.2.2.2
[17] pillar_1.6.1 glue_1.4.2 DBI_1.1.1 lifecycle_1.0.0
[21] munsell_0.5.0 gtable_0.3.0 caTools_1.18.2 fansi_0.5.0
[25] preprocessCore_1.54.0 Rcpp_1.0.6 KernSmooth_2.23-20 scales_1.1.1
[29] backports_1.2.1 checkmate_2.0.0 limma_3.48.1 lme4_1.1-27.1
[33] gplots_3.1.1 ggplot2_3.3.3 stringi_1.6.2 ggrepel_0.9.1
[37] numDeriv_2016.8-1.1 grid_4.1.0 MSstatsConvert_1.2.2 cli_2.5.0
[41] tools_4.1.0 bitops_1.0-7 magrittr_2.0.1 tibble_3.1.2
[45] crayon_1.4.1 pkgconfig_2.0.3 MASS_7.3-54 ellipsis_0.3.2
[49] Matrix_1.3-3 data.table_1.14.0 assertthat_0.2.1 minqa_1.2.4
[53] rstudioapi_0.13 R6_2.5.0 boot_1.3-28 nlme_3.1-152
[57] compiler_4.1.0
Is there a problem in the matching code?