Skip to content

Commit

Permalink
Update XcmsExperiment-functions.R
Browse files Browse the repository at this point in the history
  • Loading branch information
philouail committed Nov 20, 2024
1 parent cd7e00c commit 7b82ba4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/XcmsExperiment-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,8 @@
ids <- rep(rownames(pk), lengths(idx))
res <- sp[unlist(idx)]
res$peak_id <- ids
info <- pk[res$peak_id, peaksInfo]
colnames(info) <- paste("peak_", peaksInfo, sep = "")
res2@backend@spectraData <- cbind(res2@backend@spectraData, info)
res
},
Expand Down

0 comments on commit 7b82ba4

Please sign in to comment.