Thank you for bringing this to our attention.
Quick question - could you clarify which version of MSstatsPTM you are using (i.e. the latest release is version 2.8.1)? For the first issue, I ran MSstatsPTM myself and got the phosphorylated position to be 8, not 34, for Q9Y3B9.
For the second issue, I noticed this issue occurs because group H100_Y0 exists in the PTM dataset, but has all NA values in the PROTEIN dataset after conversion to MSstatsPTM format, leading to that GROUP being missing later on after data processing. There's many missing values due to using the `use_unmod_peptides` parameter, where unmodified peptides in the PTM enriched dataset are used to construct the unmodified PROTEIN dataset. Instead of using the `use_unmod_peptides` feature, we generally recommend users to have 2 separate experiments, one PTM enriched experiment and one global proteome experiment, since PTM enriched datasets are prone to having many missing values for unmodified peptides as seen here. I wouldn't consider this a bug in the code. Since this dataset is only an example in our vignette, I'll adjust the dataset such that the groups in the PTM dataset match the groups in the PROTEIN dataset to ease downstream processing (I will likely remove the data associated with H100_Y0 group altogether).