Hi All,
Thanks to a lot of help from Alison Chaves, we came up with this workaround. I was unable to fix the original error by simply modifying the annotation file and instead also had to modify the DIA-NN output. It seems like this is caused by some syntax changes in the column headings of the DIANN output obtained from FragPipe. For reference, I'm running dplyr_1.1.3 diann_1.0.1 MSstats_4.10.0 BiocManager_1.30.22 MSstatsConvert_1.11.5.
diann_report <- diann_load("diann-output.tsv") %>%
dplyr::mutate(Run = sub("2022-02-09-KB-SY79-", "", Run)) %>%
group_by(Stripped.Sequence,
Modified.Sequence,
Q.Value,
Lib.Q.Value,
Lib.PG.Q.Value,
Protein.Group,
Precursor.Charge,
Fragment.Quant.Raw,
Run,
Genes.MaxLFQ) %>%
summarize() %>%
dplyr::mutate(Condition = str_extract(Run, "dilution|DIA"),
BioReplicate = str_extract(Run, "DMSO|DMSO|DMSO"),
FragmentIon = NA,
ProductCharge = NA,
IsotopeLabelType = "L") %>%
rename(StrippedSequence = Stripped.Sequence,
ModifiedSequence = Modified.Sequence,
ProteinNames = Protein.Group,
QValue = Q.Value,
LibQValue = Lib.Q.Value,
LibPGQValue = Lib.PG.Q.Value,
FragmentQuantCorrected = Fragment.Quant.Raw,
PrecursorCharge = Precursor.Charge,
Intensity = Genes.MaxLFQ)
annotation_file2 <- diann_report %>%
as.data.frame() %>%
dplyr::select(Run, BioReplicate, Condition) %>%
distinct()
```
This seems to work as a temporary workaround, but i wanted to share with you all in case others encounter this issue.
Best,
Keri