Skip to content
Snippets Groups Projects
Commit 2fb4d656 authored by Todor Kondić's avatar Todor Kondić
Browse files

Functions empty_cgram_ms1 and empty_cgram_ms2 construct empty chromatograms.

parent 21c35118
No related branches found
No related tags found
No related merge requests found
...@@ -104,6 +104,26 @@ make_db_precursors <- function(m) { ...@@ -104,6 +104,26 @@ make_db_precursors <- function(m) {
} }
empty_cgram_ms1 <- function(n=0L) {
data.table(file=character(n),
cgmidx=integer(n),
precid=integer(n),
scan=integer(n),
rt=numeric(n),
intensity=numeric(n))
}
empty_cgram_ms2 <- function(n=0L) {
data.table(precid=integer(n),
ce=numeric(n),
scan=integer(n),
idx=integer(n),
rt=numeric(n),
intensity=numeric(n))
}
empty_spectra_table <- function() { empty_spectra_table <- function() {
r = data.table(precid=integer(0), r = data.table(precid=integer(0),
scan=character(0), scan=character(0),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment