R/loadPlf.R

Defines functions loadPlf

Documented in loadPlf

#' Feeding BED: Load a probes platform
#'
#' Not exported to avoid unintended modifications of the DB.
#'
#' @param name the name of the platform
#' @param description a description of the platform
#' @param be the type of BE targeted by the platform
#'
loadPlf <- function(name, description, be){

    cql <- c(
        sprintf(
            'MATCH (bet:BEType {value:"%s"})',
            be
        ),
        sprintf(
            'MERGE (plf:Platform {name:"%s"})',
            name
        ),
        sprintf(
            'SET plf.description="%s"',
            description
        ),
        'MERGE (plf)-[:is_focused_on]->(bet)'
    )
    bedCall(f=neo2R::cypher, neo2R::prepCql(cql))

}

Try the BED package in your browser

Any scripts or data that you put into this service are public.

BED documentation built on March 7, 2023, 6:54 p.m.