Skip to content

Commit

Permalink
added default pData
Browse files Browse the repository at this point in the history
  • Loading branch information
vladpetyuk committed Feb 15, 2025
1 parent e33f593 commit 8cac2b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/read_FragPipe_TMT.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@ read_FragPipe_TMT <- function(path = NULL, org_to_retain = NULL, use_gene_as_pro
select(-c(colnames(.)[[1]]:ReferenceIntensity)) %>%
as.matrix()

p_data <- data.frame(sample_name = colnames(x_data),
row.names = colnames(x_data))

f_data <- df %>%
select(c(colnames(.)[[1]]:ReferenceIntensity))

m <- MSnSet(exprs = x_data, fData = f_data)
m <- MSnSet(exprs = x_data, fData = f_data, pData = p_data)

return(m)
}
Expand Down

0 comments on commit 8cac2b3

Please sign in to comment.