Generating a Manhatten plot with some alternative data, I encounter this issue:-
Error in $<-.data.frame(tmp, "protection", value = c(XXXXXXX_2 = 1, : replacement has 96 rows, data has 91
So from what I can gather, the issue is that the original data frame has 96 unique peptides, but the HdxStatsRes object, the function only sees 91. This is because in HdxStatsRes, the charge state is concatenated in; however, region = protein[, c("Start", "End")] does not take into account that you might have several peptides in the dataset with the same ID but different charge state. Is it as easy a fix as simply adding in "Charge" to that line of code? I haven't managed to get the Manhatten plot with my data, so haven't managed to test that out. (I'm getting some errors with that I haven't been able to resolve yet)
Generating a Manhatten plot with some alternative data, I encounter this issue:-
Error in$<-.data.frame(tmp, "protection", value = c(XXXXXXX_2 = 1, : replacement has 96 rows, data has 91So from what I can gather, the issue is that the original data frame has 96 unique peptides, but the HdxStatsRes object, the function only sees 91. This is because in HdxStatsRes, the charge state is concatenated in; however, region = protein[, c("Start", "End")] does not take into account that you might have several peptides in the dataset with the same ID but different charge state. Is it as easy a fix as simply adding in "Charge" to that line of code? I haven't managed to get the Manhatten plot with my data, so haven't managed to test that out. (I'm getting some errors with that I haven't been able to resolve yet)