Hi,
I tried using the input file provided and I wasn't able to reproduce your error. Here's the code I used:
input = data.table::fread("Spectronaut_DIA_export.csv")
SpectronauttoMSstatsFormat(
input,
filter_with_Qvalue = TRUE,
qvalue_cutoff = 0.01,
removeProtein_with1Feature = TRUE,
removeFewMeasurements = FALSE
)
It appears the main difference is that I didn't set the `annot` parameter because the experimental design information is already in the Spectronaut input file. Let me know if you still encounter any problems.
Thanks,
Tony
P.S. I set `removeFewMeasurements` to FALSE because the file you gave me only has one MS run (if set to TRUE, it removes all peptides measured in only one MS run).