Error running MSstat on R

109 views
Skip to first unread message

Melissa Vorster

unread,
Sep 8, 2022, 3:08:45 AM9/8/22
to MSstats
Good day

I am trying to view the intensity table of mzML data that was run through Fragpipe using MSfragger and IonQuant. I am trying to use R with the MSstat commands.
Could anyone perhaps assist with a solution to resolve this error:

R_error_MSstat.PNG

I'll attach the R commands I ran and the log of the errors as well. 
It would be great to hear back as soon as possible.

R_log (1).txt
MSstats.zip

Mateusz Staniak

unread,
Sep 8, 2022, 9:47:50 AM9/8/22
to MSstats
Hi,


this is a warning, not an error, no need to worry


Kind regards,
Mateusz

Melissa Vorster

unread,
Sep 8, 2022, 11:24:39 AM9/8/22
to MSstats
Yes, thank you I realized the warning message, but the subsequent downstream analysis I wanted to do then also did not work, and wondered if this was perhaps the reason?

I am trying to formulate an intensity table from the list "processedData"

using this code:

print("Preparing a protein-intensity table.")
x <- processedData$RunlevelData
y <- data.frame(matrix(nrow=length(unique(x$Protein)), ncol=length(unique(x$SUBJECT_NESTED)) + 1))
colnames(y) <- c("Protein", unique(as.character(x$SUBJECT_NESTED)))
y$Protein <- unique(x$Protein)
for (protein in y$Protein) {
  for (subject in unique(x$SUBJECT_NESTED)) {
    if (length(x[x$Protein == protein & x$SUBJECT_NESTED == subject,]$LogIntensities) > 0) {
      y[y$Protein == protein, match(subject, colnames(y))] <- x[x$Protein == protein & x$SUBJECT_NESTED == subject,]$LogIntensities
    }
  }
}
write_csv(y, str_c(rootDir, "MSstats_protein.csv"), na = "")



Any idea why this leaves me with a blank csv file?




Or do you perhaps have any alternative code to create an intensity table from the Fragpipe MSstat data?

Kind regards
Melissa

Mateusz Staniak

unread,
Sep 8, 2022, 1:07:03 PM9/8/22
to MSstats
Hi,
it's ProteinlevelData now, not RunlevelData. Please also make sure that the "SUBJECT_NESTED" column is actually in the output

Kind regards,
Mateusz

Melissa Vorster

unread,
Sep 12, 2022, 10:33:15 AM9/12/22
to MSstats
Hi, thank you for the reply.

Just want to double check, do you mean if that column is in the processedData variable yes?

Kind regards
Melissa

Mateusz Staniak

unread,
Sep 13, 2022, 8:29:21 PM9/13/22
to MSstats
Hi,

yes, at $ProteinlevelData element

Kind regards,
Mateusz
Reply all
Reply to author
Forward
0 new messages