Skip to content

Commit

Permalink
Merge pull request #8 from PNNL-Comp-Mass-Spec/bugfix/convert_crossta…
Browse files Browse the repository at this point in the history
…b_to_matrix

Convert crosstab to matrix before constructing MSnSet
  • Loading branch information
vladpetyuk committed Jul 29, 2021
2 parents 2f5ec2e + 6d41583 commit e8db784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/create_msnset.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

create_msnset <- function(crosstab, samples) {

m <- MSnSet(crosstab)
m <- MSnSet(as.matrix(crosstab))

p <- as.data.frame(samples)
p <- p[!is.na(p$MeasurementName), ]
Expand Down

0 comments on commit e8db784

Please sign in to comment.