Hi Mateusz,
I'm having the same problem with my spectronaut file - was wondering if you had any insight?
command used
> quant <- SpectronauttoMSstatsFormat(input2,intensity = 'PeakArea',
+ filter_with_Qvalue = TRUE,
+ qvalue_cutoff = 0.01,
+ useUniquePeptide = TRUE,
+ fewMeasurements="remove",
+ removeProtein_with1Feature = FALSE,
+ summaryforMultipleRows=max)
INFO [2022-02-07 15:20:33] ** Raw data from Spectronaut imported successfully.
INFO [2022-02-07 15:22:47] ** Raw data from Spectronaut cleaned successfully.
INFO [2022-02-07 15:22:48] ** Using annotation extracted from quantification data.
INFO [2022-02-07 15:22:48] ** Run labels were standardized to remove symbols such as '.' or '%'.
INFO [2022-02-07 15:22:48] ** The following options are used:
- Features will be defined by the columns: PeptideSequence, PrecursorCharge, FragmentIon, ProductCharge
- Shared peptides will be removed.
- Proteins with single feature will not be removed.
- Features with less than 3 measurements across runs will be removed.
WARN [2022-02-07 15:22:48] ** PGQvalue not found in input columns.
INFO [2022-02-07 15:22:50] ** Intensities with values smaller than 0.01 in EGQvalue are replaced with 0
INFO [2022-02-07 15:23:06] ** Features with all missing measurements across runs are removed.
INFO [2022-02-07 15:23:29] ** Shared peptides are removed.
INFO [2022-02-07 15:23:44] ** Multiple measurements in a feature and a run are summarized by summaryforMultipleRows: max
INFO [2022-02-07 15:23:47] ** Features with one or two measurements across runs are removed.
INFO [2022-02-07 15:24:02] ** Run annotation merged with quantification data.
INFO [2022-02-07 15:24:07] ** Features with one or two measurements across runs are removed.
INFO [2022-02-07 15:24:07] ** Fractionation handled.
Error in setnames(x, value) :
Can't assign 4 names to a 0 column data.table
& here's the session info
> sessionInfo()
R version 4.1.1 (2021-08-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] MSstatsConvert_1.2.2 dplyr_1.0.7 MSstats_4.0.1
[4] BiocManager_1.30.16
loaded via a namespace (and not attached):
[1] gtools_3.9.2 tidyselect_1.1.1 xfun_0.27
[4] purrr_0.3.4 splines_4.1.1 lattice_0.20-45
[7] log4r_0.4.1 colorspace_2.0-2 vctrs_0.3.8
[10] generics_0.1.1 htmltools_0.5.2 yaml_2.2.1
[13] survival_3.2-13 utf8_1.2.2 marray_1.70.0
[16] rlang_0.4.12 pillar_1.6.4 nloptr_1.2.2.2
[19] glue_1.5.0 DBI_1.1.1 lifecycle_1.0.1
[22] munsell_0.5.0 gtable_0.3.0 caTools_1.18.2
[25] evaluate_0.14 knitr_1.36 fastmap_1.1.0
[28] fansi_0.5.0 preprocessCore_1.54.0 Rcpp_1.0.7
[31] KernSmooth_2.23-20 backports_1.3.0 checkmate_2.0.0
[34] scales_1.1.1 limma_3.48.3 lme4_1.1-27.1
[37] gplots_3.1.1 ggplot2_3.3.5 digest_0.6.28
[40] ggrepel_0.9.1 grid_4.1.1 tools_4.1.1
[43] bitops_1.0-7 magrittr_2.0.1 tibble_3.1.6
[46] crayon_1.4.2 pkgconfig_2.0.3 ellipsis_0.3.2
[49] MASS_7.3-54 Matrix_1.3-4 data.table_1.14.2
[52] assertthat_0.2.1 minqa_1.2.4 rmarkdown_2.11
[55] R6_2.5.1 boot_1.3-28 nlme_3.1-153
[58] compiler_4.1.1
column names
> names(input2)
[1] "R.Condition" "R.FileName"
[3] "R.Replicate" "PG.ProteinAccessions"
[5] "PG.ProteinGroups" "PG.Quantity"
[7] "PEP.GroupingKey" "PEP.StrippedSequence"
[9] "PEP.Quantity" "EG.iRTPredicted"
[11] "EG.Library" "EG.ModifiedSequence"
[13] "EG.PrecursorId" "EG.Qvalue"
[15] "FG.Charge" "FG.Id"
[17] "FG.PrecMz" "FG.Quantity"
[19] "F.Charge" "F.FrgIon"
[21] "F.FrgLossType" "F.FrgMz"
[23] "F.FrgNum" "F.FrgType"
[25] "F.ExcludedFromQuantification" "F.NormalizedPeakArea"
[27] "F.NormalizedPeakHeight" "F.PeakArea"
[29] "F.PeakHeight" "R.condition"
Thanks so much for your help!
Best
Alison