R/xcmsSource.R

setMethod("xcmsSource", "character", function(object) {
    if (mzR:::netCDFIsFile(object)) {
        new("netCdfSource", object)
    } else if (mzR:::rampIsFile(object)) {
        new("rampSource", object)
    } else {
        stop("Could not determine file type")
    }
})
benjiec/xcms documentation built on May 12, 2019, 11:57 a.m.