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