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")
    }
})
sneumann/xcms-presvnbridge documentation built on May 30, 2019, 6:02 a.m.