R/parse_build.R

Defines functions parse_build

parse_build <- function(builds,
                        id,
                        verbose=TRUE){
    build <- if(length(builds)==1) {
        builds
    } else if (id %in% names(builds)){
        builds[[id]]
    }
    messager("Using build:",build,v=verbose)
    return(build)
}
neurogenomics/PeakyFinders documentation built on Oct. 14, 2024, 3:09 p.m.